Skip to content

Instantly share code, notes, and snippets.

View himanshugarg's full-sized avatar

Himanshu himanshugarg

  • India
View GitHub Profile
awesomebytes /
Last active May 7, 2024 11:50
How to create a simple debian repository with minimal dependences

Simple debian repository

How to have a simple debian repository to offer your packages.


You probably have them already installed

  • Python (I used 2.7).
  • dpkg-scanpackages: sudo apt-get install dpkg-dev
  • gzip: sudo apt-get install gzip
kristopolous / hn_seach.js
Last active July 24, 2023 04:12
hn job query search
// Usage:
// Copy and paste all of this into a debug console window of the "Who is Hiring?" comment thread
// then use as follows:
// query(term | [term, term, ...], term | [term, term, ...], ...)
// When arguments are in an array then that means an "or" and when they are seperate that means "and"
// Term is of the format:
// ((-)text/RegExp) ( '-' means negation )
DmitrySoshnikov / Recursive-descent-backtracking.js
Last active January 3, 2024 17:15
Recursive descent parser with simple backtracking
* = Recursive descent parser =
* MIT Style License
* By Dmitry Soshnikov <>
* In this short lecture we'll cover the basic (non-predictive, backtracking)
* recursive descent parsing algorithm.
* Recursive descent is an LL parser: scan from left to right, doing
Hellowlol / whatthefork
Last active November 21, 2022 07:55
Check all forked branches if they are ahead of master/self open in browser
#!/usr/bin/env python
# -*- coding: utf-8 -*-
Dirty script to check if any forks in ahead of master and open that branch commitlist
Warning: Uses alot of api calls
import requests
from requests.auth import HTTPBasicAuth
bortzmeyer / gist:1284249
Created October 13, 2011 13:42
The only simple way to do SSH in Python today is to use subprocess + OpenSSH...
# All SSH libraries for Python are junk (2011-10-13).
# Too low-level (libssh2), too buggy (paramiko), too complicated
# (both), too poor in features (no use of the agent, for instance)
# Here is the right solution today:
import subprocess
import sys