-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
59 changed files
with
4,361 additions
and
449 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
## For Debian | ||
|
||
Install nodejs v10 for debian | ||
|
||
``` | ||
sudo apt-get install -y nodejs | ||
# with Nvm | ||
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.0/install.sh | bash | ||
# .nvm/* | ||
source ~/.bashrc | ||
export PS1="$ " | ||
nvm -v | ||
nvm install 10.17.0 | ||
nvm use 10.0 | ||
node -v | ||
nvm -v | ||
npm -v | ||
npm i -g npm | ||
npm i -g yarn | ||
sudo npm i --global optimist | ||
``` | ||
|
||
# /usr/local/lib/node_modules/ | ||
|
||
``` | ||
echo $USER | ||
ln -s /home/$USER/.nvm/versions/node/v10.0.0/lib/node_modules /usr/local/lib/node_modules | ||
ls /usr/local/lib/node_modules | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
## upgrade-your-ssh-key-to-ed25519 | ||
|
||
https://medium.com/risan/upgrade-your-ssh-key-to-ed25519-c6e8d60d3c54 | ||
|
||
``` | ||
export me = ? | ||
echo [email protected] | ||
echo $HOST | ||
echo $me | ||
ssh-keygen -t ed25519 -C "[email protected]" | ||
eval "$(ssh-agent -s)" | ||
ssh-add ~/.ssh/id_ed25519 | ||
nano ~/.ssh/config | ||
# file: | ||
Host * | ||
AddKeysToAgent yes | ||
IgnoreUnknown UseKeychain | ||
UseKeychain yes | ||
IdentityFile ~/.ssh/id_ed25519 | ||
IdentityFile ~/.ssh/id_rsa # Keep any old key files if you want | ||
cat ~/.ssh/id_ed25519 | ||
ssh-copy-id -f -i ~/.ssh/id_ed25519 $HOST -p 22 | ||
ssh -i ~/.ssh/id_ed25519 $HOST -p 22 -vv | ||
ssh $HOST cat ~/.ssh/authorized_keys | ||
``` | ||
|
||
Troubles | ||
1. ssh ed25519 Bad configuration option: usekeychain | ||
IgnoreUnknown UseKeychain | ||
|
||
2. Offering ED25519 public we sent a publickey packet, wait for reply ??? | ||
FIX : | ||
chmod 755 ~ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
{ | ||
// C:\Users\akris\AppData\Roaming\Code\User\settings.json | ||
"scm.alwaysShowActions": true, | ||
"scm.alwaysShowProviders": true, | ||
"workbench.view.alwaysShowHeaderActions": true, | ||
"workbench.startupEditor": "newUntitledFile", | ||
|
||
"debug.node.autoAttach": "on", | ||
"files.exclude": { | ||
"**/*.csproj.user": true, | ||
"**/*.exe": true, | ||
"**/*.zip": true, | ||
"**/bin/": true, | ||
"**/obj/": true, | ||
"**/node_modules/": true, | ||
"yarn.lock": true | ||
}, | ||
"terminal.integrated.shell.windows": "c:\\Program Files\\PowerShell\\6\\pwsh.exe", | ||
"terminal.integrated.rendererType": "dom", | ||
"explorer.confirmDelete": false, | ||
"git.confirmSync": false, | ||
|
||
"editor.fontFamily": "DejaVu Sans Mono for Powerline", | ||
"terminal.integrated.fontFamily": "DejaVu Sans Mono for Powerline", | ||
"terminal.integrated.shellArgs.linux": [ "zsh" ], | ||
"powershell.promptToUpdatePowerShell": false, | ||
|
||
"workbench.colorTheme": "Visual Studio Dark", | ||
"workbench.enableExperiments": false, | ||
"workbench.settings.enableNaturalLanguageSearch": false, | ||
"update.mode": "manual", | ||
"update.showReleaseNotes": false, | ||
"extensions.autoCheckUpdates": false, | ||
"extensions.autoUpdate": false, | ||
"git.autofetch": false, | ||
"telemetry.enableTelemetry": false, | ||
"extensions.showRecommendationsOnlyOnDemand": true, | ||
"extensions.ignoreRecommendations": true, | ||
|
||
"terminal.external.windowsExec": "powershell", | ||
"terminal.integrated.confirmOnExit": true, | ||
"terminal.integrated.splitCwd": "workspaceRoot", | ||
"[jsonc]": { | ||
}, | ||
"[json]": { | ||
}, | ||
"files.associations": { | ||
"*.json": "jsonc" | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/usr/bin/env bash | ||
# | ||
# https://dev.to/babak/how-to-run-vs-code-on-the-server-3c7h | ||
# ssh -N -L 0.0.0.0:8443:localhost:8443 login@your-server 2> /dev/null | ||
|
||
abs=$(realpath .) | ||
req=$1 | ||
|
||
if [[ ! $1 =~ ^\/ ]]; | ||
then | ||
req="$abs/$1" | ||
fi; | ||
|
||
if [[ ! -d $req ]]; | ||
then | ||
echo "ERROR: path does not exist" | ||
echo "$req" | ||
exit; | ||
fi; | ||
|
||
~/code-server/code-server $req --no-auth |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
|
||
sudo apt-get update | ||
sudo apt install -y dnsutils |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# This is Git's per-user configuration file. | ||
# cp gitconfig ~/.gitconfig | ||
[user] | ||
# Please adapt and uncomment the following lines: | ||
name = Andrius-K | ||
email = [email protected] |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/bin/zsh | ||
|
||
echo "Install links to ~" | ||
|
||
echo "~/.tmux.conf" | ||
ln -s -f ~/bin/debian9/.tmux.conf ~/.tmux.conf | ||
|
||
sudo apt-get install -y openvpn curl wget zsh net-tools dnsutils | ||
|
||
# https://github.com/http-party/http-server | ||
#!/usr/bin/env node | ||
|
||
# unsecure... | ||
sudo chown andriusk /usr/local/bin | ||
# curl https://raw.githubusercontent.com/http-party/http-server/master/bin/http-server > /usr/local/bin/http-server | ||
# chmod +x /usr/local/bin/http-server | ||
# http-server . -p 9099 | ||
|
||
ln -s ~/bin/http /usr/local/bin/http | ||
chmod +x /usr/local/bin/http | ||
# http -p 3001 | ||
# ssh -L 3000:localhost:3000 $ip sleep 1d & | ||
|
||
echo "chmod +x *.sh" > /usr/local/bin/chmod-sh | ||
chmod +x /usr/local/bin/chmod-sh | ||
|
||
echo "chmod +x *.sh" > /usr/local/bin/chmod-x | ||
chmod +x /usr/local/bin/chmod-x |
Oops, something went wrong.