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
# Change default shell to zsh | |
set -g default-shell /bin/zsh | |
# Enable mouse with m | |
set -g mouse on | |
# Replace C-b with C-a | |
unbind C-b | |
set-option -g prefix C-a | |
bind-key C-a send-prefix |
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
docker run --port 4000:4000/tcp --volume /path/to/dir:/srv/jekyll -it jekyll/jekyll bundler exec jekyll serve --host 0.0.0.0 --force_polling |
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
/* | |
Write a function that returns the sum of two numbers. | |
*/ | |
function add(param1, param2) { | |
return param1+param2; | |
} |
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
hexdump -n 8 -e '4/4 "%08X" 1 "\n"' /dev/urandom |
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
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
""" | |
@author: alireza | |
""" | |
import requests | |
from bs4 import BeautifulSoup | |
import mysql.connector | |
import json |