Skip to content

Instantly share code, notes, and snippets.

View bikalbasnet's full-sized avatar
🎯
Focusing

Bikal Basnet bikalbasnet

🎯
Focusing
View GitHub Profile
@bikalbasnet
bikalbasnet / homestead-nginx-setup.sh
Created May 17, 2016 04:31
Setup script to configure nginx for homestead vagrant box
#!/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",
@bikalbasnet
bikalbasnet / zshgit.md
Created July 14, 2016 02:17 — forked from AdamMarsden/zshgit.md
Oh My Zsh - Git Cheat Sheet

#Oh My Zsh - Git Cheat Sheet

ggit

gstgit status

glgit pull

gupgit 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;
}
@bikalbasnet
bikalbasnet / ubuntu_agnoster_install.md
Last active October 3, 2018 08:41 — forked from renshuki/ubuntu_agnoster_install.md
Ubuntu 14.04 + Terminator + Oh My ZSH with Agnoster Theme

Install Terminator (shell)

sudo add-apt-repository ppa:gnome-terminator
sudo apt-get update
sudo apt-get install terminator

Terminator should be setup as default now. Restart your terminal (shortcut: "Ctrl+Alt+T").

Install ZSH

#!/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
@bikalbasnet
bikalbasnet / gitflow-breakdown.md
Created May 8, 2017 03:00 — forked from JamesMGreene/gitflow-breakdown.md
A comparison of using `git flow` commands versus raw `git` commands.

Initialize

gitflow git
git flow init git init
git commit --allow-empty -m "Initial commit"
git checkout -b develop master

Connect to the remote repository

@bikalbasnet
bikalbasnet / installing-software-ubuntu-from-tgz.txt
Last active December 19, 2018 09:55
Installing/Updating and making JetBrains software searchable as application on ubunutu
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
@bikalbasnet
bikalbasnet / new ubuntu setup
Last active November 19, 2018 06:45
codes that I run to setup my new ubuntu laptop
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 &&\