Skip to content

Instantly share code, notes, and snippets.

View Pent's full-sized avatar
🧲
magnetizing

Pent

🧲
magnetizing
View GitHub Profile
@ndarville
ndarville / business-models.md
Last active January 3, 2026 06:27
Business models based on the compiled list at http://news.ycombinator.com/item?id=4924647. I find the link very hard to browse, so I made a simple version in Markdown instead.

Business Models

Advertising

Models Examples
Display ads Yahoo!
Search ads Google
@dergachev
dergachev / GIF-Screencast-OSX.md
Last active March 18, 2026 20:19
OS X Screencast to animated GIF

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

@archagon
archagon / gdc-encoder.py
Last active March 10, 2023 13:44
A quick and dirty script to convert GDC Vault videos to a pleasant mobile viewing format.
# This script continues the work of gdc-downloader.py and actually combines the video and audio
# into a single video file. The underlay.png file specifies the dimensions of the video.
# Personally, I use an all-black 1024x768 rectangle for optimal iPad viewing.
# As with gdc-downloader.py, code quality is crappy and quickly assembled to work for my
# nefarious purposes.
# Usage is as follows:
#
# gdc-encoder.py [video name] [video path] [output name] [GDC name]
@matb33
matb33 / gist:5322002
Last active December 15, 2015 20:58
Automated server installation for Meteor 0.6.0+ on a fresh AWS EC2 Ubuntu Server 12.10 installation. Although MongoDB is installed, I only tested against having my database remotely on MongoHQ. Let me know if you have issues with a local DB. Moved: https://github.com/matb33/meteor-ec2-install
MOVED: https://github.com/matb33/meteor-ec2-install
#!/usr/bin/env casperjs
#
# Example: ./github-users.coffee Greenville
#
{Casper} = require 'casper'
class GitHubUserScraper extends Casper
USER_AGENT: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_5) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.64 Safari/537.11'
// On the client AND the server
Rooms = new Meteor.Collection('rooms');
Messages = new Meteor.Collection('messages');
// On the server
Meteor.publish('chatRoom', function(roomId) {
return Messages.find({ roomId: roomId });
});
// On the client
@mikesmullin
mikesmullin / x86-assembly-notes.md
Last active March 30, 2026 19:47
Notes on x86-64 Assembly and Machine Code

Mike's x86-64 Assembly (ASM) Notes

Assembling Binary Machine Code

Operating Modes:

These determine the assumed/default size of instruction operands, and restricts which opcodes are available, and how they are used.

Modern operating systems, booted inside Real mode,

@seyDoggy
seyDoggy / config for vim 7.4 with lua on ubuntu 13.04
Last active December 24, 2015 05:09
I was having trouble getting lua support while rolling my own vim 7.4 on ubuntu 13.04.
sudo apt-get install liblua5.1-dev
sudo mkdir /usr/include/lua5.1/include/
sudo cp /usr/include/lua5.1/* /usr/include/lua5.1/include/
sudo ln -s /usr/lib/x86_64-linux-gnu/liblua5.1.so /usr/local/lib/liblua.so
hg clone https://code.google.com/p/vim/
cd vim
./configure --with-features=huge \
--enable-perlinterp \
--enable-rubyinterp \
--enable-pythoninterp=yes \
@Pusungwi
Pusungwi / gist:7212599
Last active March 7, 2023 14:53
A List of Javascript Emulator