Skip to content

Instantly share code, notes, and snippets.

View akrami's full-sized avatar

Alireza Akrami akrami

View GitHub Profile
@akrami
akrami / .tmux.conf
Created October 7, 2021 14:26
my tmux configuration
# 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
@akrami
akrami / jekyll.sh
Last active October 7, 2021 14:33
run jekyll docker
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
@akrami
akrami / 01.js
Last active October 3, 2022 19:42
Code Signal Arcade - Intro level solutions (javascript)
/*
Write a function that returns the sum of two numbers.
*/
function add(param1, param2) {
return param1+param2;
}
@akrami
akrami / hex16gen.sh
Created May 4, 2019 16:43
generate 16 hex random characters
hexdump -n 8 -e '4/4 "%08X" 1 "\n"' /dev/urandom
@akrami
akrami / stackoverflow.py
Created December 21, 2018 00:51
scraping stackoverflow jobs
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
@author: alireza
"""
import requests
from bs4 import BeautifulSoup
import mysql.connector
import json