This file contains hidden or 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
Set-ExecutionPolicy Bypass -Scope Process -Force; | |
iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')) | |
#framework section | |
choco install dotnetcore-sdk -y | |
choco install nodejs -y | |
#softs | |
choco install googlechrome -y |
This file contains hidden or 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
dotnet new console -o nexmo | |
cd nexmo | |
dotnet add package Nexmo.Csharp.Client | |
echo $null >> SmsSender.cs | |
echo $null >> appsettings.json | |
dotnet build | |
code . |
This file contains hidden or 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
#restore from file | |
Get-Content .\vscode.extensions | ForEach-Object {code --install-extension $_} | |
#backup to file | |
code --list-extensions > vscode.extensions |
This file contains hidden or 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
#!/bin/bash | |
echo "updating system..." | |
sudo apt update && sudo apt upgrade -yy | |
curl -fsSL https://apt.releases.hashicorp.com/gpg | sudo apt-key add - | |
sudo apt-add-repository "deb [arch=$(dpkg --print-architecture)] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | |
echo "installing curl git zsh fonts-powerline terraform..." | |
sudo apt install curl git zsh fonts-powerline terraform -y |
This file contains hidden or 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
Set-ExecutionPolicy Bypass -Scope Process -Force; | |
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart | |
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart | |
wsl --set-default-version 2 | |
Invoke-WebRequest -Uri https://aka.ms/wslubuntu2004 -OutFile Ubuntu.appx -UseBasicParsing | |
Add-AppxPackage .\Ubuntu.appx |
This file contains hidden or 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
#!/bin/bash | |
echo "updating system..." | |
sudo apt update && sudo apt upgrade -yy | |
echo "installing curl git zsh fonts-powerline tmux xclip..." | |
sudo apt install curl git zsh fonts-powerline tmux xclip -y | |
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" | |
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k |
This file contains hidden or 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
# Set vi key bindings mode | |
set -g mode-keys vi | |
set -g status-keys vi | |
# Set new panes to open in current directory | |
bind c new-window -c "#{pane_current_path}" | |
bind '"' split-window -c "#{pane_current_path}" | |
bind % split-window -h -c "#{pane_current_path}" | |
This file contains hidden or 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
#!/bin/bash | |
# example : refresh_ftp_users.sh -t ftp | |
# This script is used to refresh the ftp users | |
# it reads the users in the "ftpusers group" | |
# and creates the users in the ftpusers file | |
# read ftp type variable form the command line with -t or --type | |
# if no variable is passed then set it to "ftp" | |
# set USERS variable from the ftpusers group | |
# if type equals ftps then FTP_USERFILE is /etc/vsftpd-ftps.userlist else /etc/vsftpd-ftp.userlist |
This file contains hidden or 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
#!/bin/bash | |
sudo apt update && sudo apt upgrade -y | |
sudo apt install zsh git curl wget build-essential fzf -y | |
export NONINTERACTIVE=1 | |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | |
(echo; echo 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"') >> $HOME/.profile | |
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" | |
brew install gcc |
This file contains hidden or 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
#!/bin/bash | |
WSL_COMMIT_REF=linux-msft-wsl-5.15.90.4 | |
apt update && apt install -y git build-essential flex bison libssl-dev libelf-dev bc dwarves | |
mkdir src | |
cd src | |
git init | |
git remote add origin https://github.com/microsoft/WSL2-Linux-Kernel.git | |
git config --local gc.auto 0 | |
git -c protocol.version=2 fetch --no-tags --prune --progress --no-recurse-submodules --depth=1 origin +${WSL_COMMIT_REF}:refs/remotes/origin/build/linux-msft-wsl-5.15.y |
OlderNewer