Skip to content

Instantly share code, notes, and snippets.

@seven1m
seven1m / build_winexe.sh
Created February 24, 2011 22:45
Install winexe on Ubuntu
# This works as of Feb 2011 on Ubuntu Maverick
sudo apt-get install build-essential autoconf checkinstall
svn co http://dev.zenoss.org/svn/trunk/wmi/Samba/source
cd source
wget https://gist.github.com/raw/843062/5bb87c4fa13688f65ca8b1e54fc42676aee42e5a/fix_winexe_service.diff
patch -p0 -i fix_winexe_service.diff
./autogen.sh
./configure
make proto bin/winexe
@wallymathieu
wallymathieu / CSharp_loose.flt
Created November 18, 2011 12:12
Winmerge filter (svn + git)
## This is a directory/file filter for WinMerge
## This filter suppresses various binaries found in Visual C# source trees
name: Visual C# loose
desc: Suppresses various binaries found in Visual C# source trees
## This is an inclusive (loose) filter
## (it lets through everything not specified)
def: include
## Filters for filenames begin with f:
@mbostock
mbostock / .block
Last active February 9, 2016 01:02
Quicksort
license: gpl-3.0
@aemkei
aemkei / LICENSE.txt
Last active June 4, 2024 07:51 — forked from 140bytes/LICENSE.txt
Binary Tetris - 140byt.es
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
#https://developers.facebook.com/tools/explorer/145634995501895/?method=GET&path=1686802955
accesstoken=`cat authkey.txt`
curl "https://graph.facebook.com/fql?q=SELECT%20uid%2C%20name%2C%20online_presence%20FROM%20user%20%20WHERE%20online_presence%20IN%20('active'%2C%20'idle')%20AND%20uid%20IN%20(SELECT%20uid2%20FROM%20friend%20WHERE%20uid1%20%3D%20me())&access_token=$accesstoken" > tmp.txt
if grep -q Error < tmp.txt; then
echo "Error"
notify-send "Update the auth key"
fi
date >> log.txt
cat tmp.txt >> log.txt
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active July 24, 2024 17:56
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@mslinn
mslinn / update.sh
Last active March 11, 2024 17:09
Bash Script to Update all Git Directories Below Specified Directories
#!/bin/bash
# Update all git directories below specified directories
# Skips directories that contain a file called .ignore
# See https://stackoverflow.com/a/61207488/553865
HIGHLIGHT="\e[01;34m"
NORMAL='\e[00m'
export PATH=${PATH/':./:'/:}
@victorb
victorb / gist:4181764
Last active May 7, 2017 10:09 — forked from davatron5000/gist:2254924
Static Site Generators

This is an updated fork of the gist located here: https://gist.github.com/2254924

Backstory: I decided to crowdsource static site generator recommendations, so the following are actual real world suggested-to-me results. I then took those and sorted them by language/server and, just for a decent relative metric, their Github Watcher count. If you want a heap of other projects (including other languages like Haskell and Python) Nanoc has the mother of all site generator lists. If you recommend another one, by all means add a comment.

Ruby

@wadewegner
wadewegner / QueryBuilder.reg
Created October 21, 2013 18:02
Enable Query Builder in Outlook 2013
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\Office\15.0\Outlook\QueryBuilder]
@cingraham
cingraham / README.md
Last active January 1, 2016 23:08 — forked from kevinschaul/README.md
Whiskey flavor profiles