Skip to content

Instantly share code, notes, and snippets.

View kost's full-sized avatar
💭
I'm upto something

kost kost

💭
I'm upto something
  • Diverto
  • Zagreb, Croatia
  • X @k0st
View GitHub Profile
@CocoaBeans
CocoaBeans / gdbinit
Created February 21, 2012 21:58
.gdbinit - A user-friendly gdb configuration file
# INSTALL INSTRUCTIONS: save as ~/.gdbinit
#
# DESCRIPTION: A user-friendly gdb configuration file.
#
# REVISION : 7.3 (16/04/2010)
#
# CONTRIBUTORS: mammon_, elaine, pusillus, mong, zhang le, l0kit,
# truthix the cyberpunk, fG!, gln
#
# FEEDBACK: https://www.reverse-engineering.net
@sj26
sj26 / enumerator_thread_pooling.rb
Last active January 27, 2017 03:42
Process an enumerator using a simple thread pool
require "etc"
require "thread"
Enumerator.class_eval do
# Process an enumerator using a simple thread pool
#
# `of:` is pool size, defaults to detecting number of CPUs
#
# Caveat: Enumerator#map may yield results out of order. Work is processed in
# order, but apparently #map concatenates the results however it likes. This
@rubiojr
rubiojr / munin-graphite.conf
Created May 17, 2012 10:57
Munin Graphite Bridge
# Ubuntu Upstart service file
description "munin-graphite"
start on (filesystem and net-device-up)
stop on runlevel [!2345]
env DAEMON=/usr/local/bin/munin-graphite
expect fork
respawn
@btoews
btoews / merger.py
Created May 17, 2012 16:55
Merging Nessus Files
# file: merger.py
# based off: http://cmikavac.net/2011/07/09/merging-multiple-nessus-scans-python-script/
# by: mastahyeti
import xml.etree.ElementTree as etree
import shutil
import os
first = 1
for fileName in os.listdir("."):
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active August 4, 2025 14:30
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@rodw
rodw / backup-github.sh
Last active July 22, 2025 01:36
A simple script to backup an organization's GitHub repositories, wikis and issues.
#!/bin/bash
# A simple script to backup an organization's GitHub repositories.
#-------------------------------------------------------------------------------
# NOTES:
#-------------------------------------------------------------------------------
# * User @jimklimov (and probably some others called out in the long comment
# thread below) have modified this script to make it more robust and keep
# up with various changes in the GitHub API and response format at:
# https://github.com/jimklimov/github-scripts
@jessieay
jessieay / ActiveRecord Cheat Sheet v1
Created July 17, 2012 19:55
Active Record cheat sheet with examples of queries I've needed most so far
ActiveRecord cheat sheet / EXAMPLES
INSTALL
=======
$ gem install activerecord
in GEMFILE: gem ‘activerecord’
REQUIRE
=======
require ‘active_record’
@willk
willk / hack.sh
Created August 20, 2012 23:45 — forked from DAddYE/hack.sh
OSX For Hackers
#!/bin/sh
##
# This is a script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# Run in interactive mode with:
# $ sh -c "$(curl -sL https://raw.github.com/gist/2108403/hack.sh)"
#
# or run it without prompt questions:
@jamiely
jamiely / new_machine.sh
Last active August 18, 2021 17:13
New OSX Machine Script
# install xcode via App Store first! It takes awhile
# install the command-line tools as well
# install growl from App Store
# Used for git config and ssh keygen
NAME="First Last"
EMAIL="[email protected]"
# The main directory where you will keep your code
CODE_DIR=~/code
@yao2030
yao2030 / Gemfile
Created August 21, 2012 10:48 — forked from croaky/Gemfile
Twitter authentication
gem "omniauth-twitter"