Skip to content

Instantly share code, notes, and snippets.

View hkboujrida's full-sized avatar

Haithem BOUJRIDA hkboujrida

View GitHub Profile
@hkboujrida
hkboujrida / init-dev-env.sh
Last active December 9, 2022 08:40
install zsh on ubuntu
#!/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
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
@hkboujrida
hkboujrida / init-dev-env-ext.sh
Last active August 16, 2021 18:52
init dev env ubuntu
#!/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
#restore from file
Get-Content .\vscode.extensions | ForEach-Object {code --install-extension $_}
#backup to file
code --list-extensions > vscode.extensions
dotnet new console -o nexmo
cd nexmo
dotnet add package Nexmo.Csharp.Client
echo $null >> SmsSender.cs
echo $null >> appsettings.json
dotnet build
code .
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