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
View GitHub Profile
@richo
richo / hopper.zsh
Created May 18, 2014 21:01
Open files in hopper from a shell
function ,hopper() {
local path
case "$1" in
/*)
path="$1" ;;
*)
path="$(pwd)/$1" ;;
esac
/usr/bin/osascript <<EOM
tell application "Hopper Disassembler v3"
@chomy
chomy / httpclient.c
Created October 2, 2014 07:27
HTTP Client in C
#include <stdio.h>
#include <string.h>
#include <sys/types.h>
#include <unistd.h>
#include <sys/socket.h>
#include <netdb.h>
#include <errno.h>
#define GNU_SOURCE
#include <signal.h>
@mwbrooks
mwbrooks / UntitledAppDelegate.m
Created January 28, 2011 18:18
Load a PhoneGap-iPhone app from a custom start page.
//
// UntitledAppDelegate.m
// Untitled
//
// Created by Michael Brooks on 11-01-28.
// Copyright __MyCompanyName__ 2011. All rights reserved.
//
#import "UntitledAppDelegate.h"
#import "PhoneGapViewController.h"
require 'rubygems'
require 'em-proxy'
require 'http_tools'
require 'uuid'
# > ruby em-proxy-http.rb
# > curl --proxy localhost:8080 www.google.com
host = "0.0.0.0"
port = 8080
@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:
@yao2030
yao2030 / Gemfile
Created August 21, 2012 10:48 — forked from croaky/Gemfile
Twitter authentication
gem "omniauth-twitter"
@hunt3ri
hunt3ri / backup-sqlazuredb.ps1
Created August 21, 2012 12:16
Powershell script for backing up SQL Azure db
###############################################################################
# Description: Backup Script for Sql Azure DB
# Author: Iain Hunter
# Date: 21/08/12
###############################################################################
$today = Get-Date
$todayStr = $today.ToString("yyyyMMdd")
$backupFile = "your-db" + $todayStr + ".bacpac"
echo "Exporting backup to: $backupFile"
@adanmayer
adanmayer / gist:3415227
Created August 21, 2012 13:04 — forked from saetia/gist:1623487
Clean Install – Mountain Lion OS X 10.8
@holydevil
holydevil / hack.sh
Created August 21, 2012 14:20 — forked from erikh/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#
@moritz
moritz / ncurses.p6
Created August 21, 2012 15:48
Basic ncurses example
use v6;
use NativeCall;
constant lib = 'libncurses.so.5';
sub initscr() is native(lib) { * }
sub endwin() is native(lib) { * }
sub printw(Str) is native(lib) { * }
sub update() is native(lib) is symbol<refresh> { * }