#Oh My Zsh - Git Cheat Sheet
g
– git
gst
– git status
gl
– git pull
gup
– git pull --rebase
#!/bin/bash | |
echo "Provisioning virtual machine..." | |
echo "Configuring Nginx" | |
sudo apt-get update | |
cp /var/www/provision/config/nginx_vhost /etc/nginx/sites-available/nginx_vhost > /dev/null |
Preference > User setting | |
Install Material Theme for sublime text 3, first by installing package control | |
ctrl shift p > colorsublime package > facebook theme | |
fonts -- | |
https://github.com/tonsky/FiraCode > download > install > "font_face": "Fira Code", |
#Oh My Zsh - Git Cheat Sheet
g
– git
gst
– git status
gl
– git pull
gup
– git pull --rebase
public function sluggify($string, $separator = '-', $maxLength = 96) | |
{ | |
$title = iconv('UTF-8', 'ASCII//TRANSLIT', $string); | |
$title = preg_replace("%[^-/+|\w ]%", '', $title); | |
$title = strtolower(trim(substr($title, 0, $maxLength), '-')); | |
$title = preg_replace("/[\/_|+ -]+/", $separator, $title); | |
return $title; | |
} |
#!/bin/bash | |
FONT_NAME="SourceCodePro" | |
URL="https://github.com/adobe-fonts/source-code-pro/archive/1.017R.zip" | |
mkdir /tmp/adodefont | |
cd /tmp/adodefont | |
wget ${URL} -O ${FONT_NAME}.zip | |
unzip -o -j ${FONT_NAME}.zip | |
mkdir -p ~/.fonts | |
cp *.otf ~/.fonts |
1) Download PHPSTORM/WebStorm/Goland ... whatever | |
2) `sudo tar xfz ~/Downloads/goland-2018.1.tar.gz -C /opt/` | |
3) `vi ~/.local/share/applications/< App Name>.desktop` | |
4) Add the application shortcut `vi ~/.local/share/applications/jetbrains-goland.desktop` | |
``` | |
[Desktop Entry] | |
Version=1.0 | |
Type=Application | |
Name=Goland | |
Icon=/opt/GoLand-2018.1/bin/goland.png |
#!/bin/bash | |
for i in $(curl "https://api.github.com/orgs/[ORGANIZATION]/repos?access_token=[TOKEN]&per_page=200" | sed '/[ ]*"ssh_url":/!d;s/[^:]*: "//;s/",$//'); do | |
git clone $i | |
done |
sudo apt-get install -y curl git zsh vim &&\ | |
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb &&\ | |
sudo dpkg -i google-chrome-stable_current_amd64.deb &&\ | |
rm google-chrome-stable_current_amd64.deb | |
sudo apt-get install terminator &&\ | |
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" &&\ | |
wget https://github.com/powerline/powerline/raw/develop/font/PowerlineSymbols.otf &&\ | |
wget https://github.com/powerline/powerline/raw/develop/font/10-powerline-symbols.conf &&\ |