Skip to content

Instantly share code, notes, and snippets.

View ArmanMirzaei's full-sized avatar
👨‍💻
Programming

Arman Mirzaei ArmanMirzaei

👨‍💻
Programming
View GitHub Profile
@diegorodrigo90
diegorodrigo90 / gnome-openbsd
Created August 29, 2021 01:46
install gnome in OpenBSD
As root:
# pkg_add gnome
# rcctl disable xenodm
# rcctl enable multicast messagebus avahi_daemon gdm
# reboot
@HerrLevin
HerrLevin / gist:50651c11f39fc817e1e1e29638a25cb9
Last active October 16, 2023 07:02
ASCII Periodic Table
| | | | | | | | | | | | | | | | | | |
| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 |
| | | | | | | | | | | | | | | | | | |
-----+-----------------+
@lamarmarshall
lamarmarshall / background.py
Created January 17, 2018 02:47
python multiprocess run in background
import multiprocessing
from time import sleep
def func():
name = multiprocessing.current_process().name
print("starting of process named: ", name)
sleep(2)
print("exiting process")
if __name__ == '__main__':
@nitred
nitred / ssh_utils.md
Last active July 30, 2025 09:56
SSH Tunneling (port forwarding + reverse port forwarding + SOCK5)

About

SSH tunneling and port forwarding snippets and utils

Table of Contents

  • SOCK5 tunnel everything: Link
  • Local port forwarding: Link
  • Remote port forwarding: Link
@tuxfight3r
tuxfight3r / vim-shortcuts.md
Last active November 29, 2025 02:20
VIM SHORTCUTS

VIM KEYBOARD SHORTCUTS

MOVEMENT

h        -   Move left
j        -   Move down
k        -   Move up
l        -   Move right
$        -   Move to end of line
0        -   Move to beginning of line (including whitespace)
@acg
acg / csv2tsv
Created April 4, 2013 17:14
Convert csv to tsv with optional escaping.
#!/usr/bin/env perl
use Text::CSV;
use Getopt::Long qw/ GetOptionsFromArray :config pass_through /;
use warnings;
use strict;
my $usage = "usage: $0 [-e] < file.csv\n";
exit main( @ARGV );
@klange
klange / image-to-ansi.py
Created January 27, 2012 06:29 — forked from MicahElliott/colortrans.py
Convert images to ANSI escape sequences
#! /usr/bin/env python
""" Convert an image (argv[1]) to an ANSI text string (xterm-256color)
Original readme from colortrans.py follows:
Nice long listing of all 256 colors and their codes. Useful for
developing console color themes, or even script output schemes.
Resources:
@herczy
herczy / containment.py
Created July 10, 2011 20:10
Create a self-compressed Python script
'''Python self-contained module maker
Creates a small Python script containing the neccessary complete
modules in a tar.bz2 archive. The generated script unpacks this
and it can be used as a stand-alone script without explicitly
installing the whole module.'''
import os
import sys
import os.path