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
@nouphet
nouphet / facebook-app-template.rb
Created August 21, 2012 17:18 — forked from chsh/facebook-app-template.rb
Rails3 template to generate facebook app.
# facebootstrap: Rails3 template
app_h_name = app_name.gsub(/_/, '-')
app_c_name = app_name.classify
ruby_version = '1.9.3-p194' # Specify your ruby version.
# Specify your git repo path
repository_path = "[email protected]:chsh/#{app_h_name}.git"
target_branch = 'master' # or develop or ...
deploy_server = 'Specify your deploy server FQDN.'
target_mode = 'staging' # or 'live' or ...
@overbalance
overbalance / adamluikart.zsh-theme
Created August 21, 2012 17:24 — forked from adamesque/adamluikart.zsh-theme
My totally awesome oh-my-zsh theme.
local user_host='%{$fg[green]%}%n@%m%{$reset_color%}'
local current_dir='%{$fg[yellow]%} %~%{$reset_color%}'
local git_branch='$(git_prompt_info)%{$reset_color%}'
PROMPT="
${user_host}${current_dir} ${git_branch}
⑆ "
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[yellow]%}("
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
@greggyNapalm
greggyNapalm / mac_os_10_8_apps
Created August 21, 2012 17:43
mac os mountain lion apps
Xcode
MacPorts
SourceTree
iTerm2
Sublime
pgAdmin3
MySQLWorkbench
SQLite Database Browser 2
VirtualBox
Adium
@ernestom
ernestom / connectvpn.applescript
Created August 21, 2012 17:45
Connect VPN applescript
tell application "System Events"
tell current location of network preferences
set VPNService to service "SVPN"
if exists VPNService then
connect VPNService
end if
end tell
end tell
@codeswimmer
codeswimmer / defconvid-downloader.sh
Created August 21, 2012 17:47 — forked from Famicoman/defconvid-downloader.sh
Def Con Video Downloader
#!/bin/bash
#Usage: ./defconvid-downloader.sh $id
#Where $id is the conference number
wget -c -nc -e robots=off --wait 5 -i -- `curl "http://defcon.org/html/links/dc-archives/dc-$1-archive.html" | grep -o "https.*\.m4v" | sed 's/ \+/%20/g'`
@ianoxley
ianoxley / smokeonthewater.py
Created August 21, 2012 17:56
Smoke on the Water for Lego Mindstorms
#!/usr/bin/env python
#
# Smoke on the water by Deep Purple, for the Lego Mindstorms
#
# Note frequencies worked out as follows:
# A = 440
# Notes above A = A * (1.059463)^ no. of steps above A
# Notes below A = A * (1.059463)^ -no. of steps below A
#
@NickJosevski
NickJosevski / site_create.ps1
Created August 22, 2012 12:51
Multiple IIS site creation, via PowerShell
Write-Host "Remember to run in an x86 Powershell"
Import-Module WebAdministration
$start_dir = Get-Location
CD IIS:\
New-Item AppPools\test.pool
Set-ItemProperty IIS:\AppPools\test.pool -name "enable32BitAppOnWin64" -Value "true"
@gglanzani
gglanzani / gist:3435030
Created August 23, 2012 10:05
my vimrc
set nocompatible
filetype off
set rtp+=~/.vim/bundle/vundle
call vundle#rc()
Bundle 'gmarik/vundle'
" My Bundles here:
"
@ChrisLundquist
ChrisLundquist / gist:3435159
Created August 23, 2012 10:14
valgrind output on Mountain Lion
=46255==
==46255== HEAP SUMMARY:
==46255== in use at exit: 63,867 bytes in 354 blocks
==46255== total heap usage: 1,459 allocs, 1,105 frees, 162,223 bytes allocated
==46255==
==46255== 16 bytes in 1 blocks are definitely lost in loss record 7 of 84
==46255== at 0xC8E6: malloc_zone_malloc (vg_replace_malloc.c:276)
==46255== by 0x4F1413: recursive_mutex_init (in /usr/lib/libobjc.A.dylib)
==46255== by 0x4F0025: _objc_init (in /usr/lib/libobjc.A.dylib)
==46255== by 0x134B27: libSystem_initializer (in /usr/lib/libSystem.B.dylib)
@GarPit
GarPit / xml_me.rb
Created August 23, 2012 10:19
simple xml generation
def xml
@xml_string << "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
end
def tag(tag, attrs={}, &block)
@xml_string << "<#{tag}"
text = attrs.delete(:text)
@xml_string << " " if not attrs.empty?
attrs.each_pair do |key, value|
@xml_string << "#{key.to_s}=\"#{value.to_s}\""