Skip to content

Instantly share code, notes, and snippets.

View hrnn's full-sized avatar

Hernan Payrumani hrnn

View GitHub Profile
@padcom
padcom / install-git.sh
Created June 19, 2011 10:23
Automated install of Git host on Ubuntu 10.04 with authorization and web interface for browsing
#!/bin/sh
#
# install required packages
#
apt-get install apache2 git-core gitweb
#
# create folder to host the repositories
#
@shokai
shokai / drochan
Created June 24, 2011 14:09
use dropbox as a chat
#!/usr/bin/env ruby
# -*- coding: utf-8 -*-
## dropboxの共有フォルダでチャットするツールです
## drochan -> 発言表示
## drochan ほむほむ -> 「ほむほむ」と発言
DIR = "#{ENV['HOME']}/Dropbox/drochan"
user = ENV['USER']
# user = "your-name"
@erikh
erikh / hack.sh
Created March 31, 2012 07:02 — forked from DAddYE/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
#
@frp
frp / treap.cpp
Created May 29, 2012 17:38
Treap 2 by frp-m.blogspot.com, old variant
struct node
{
int x, y;
node *l, *r;
int cnt;
node(int _x, int _y) : x(_x), y(y), l(0), r(0), cnt(1) {}
};
// ... ... все дальнейшие функции - члены класса treap
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active October 19, 2024 21:38
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
/**
Victoria Wu
CS 352
Treap
An implementation of a binary search tree that incorporates properties of a heap,
preventing an overly imbalanced tree.
*/
@minrk
minrk / Retina Figures.ipynb
Created August 9, 2012 04:37
2x plots for Retina displays with matplotlib and the IPython Notebook
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@alex-sherwin
alex-sherwin / ExtJS_4_1_2.sublime-completions
Created October 16, 2012 17:01
Sublime Text 2 ExtJS Completions
{
"scope": "source.js -string -comment -constant",
"completions": [
{ "trigger": "customtrigger.allowBlank\tBoolean", "contents": "allowBlank: $1${2:,}" },
{ "trigger": "customtrigger.allowOnlyWhitespace\tBoolean", "contents": "allowOnlyWhitespace: $1${2:,}" },
{ "trigger": "customtrigger.blankText\tString", "contents": "blankText: '$1'${2:,}" },
{ "trigger": "customtrigger.checkChangeBuffer\tNumber", "contents": "checkChangeBuffer: $1${2:,}" },
{ "trigger": "customtrigger.checkChangeEvents\tString[]", "contents": "checkChangeEvents: ['$1']${2:,}" },
{ "trigger": "customtrigger.dirtyCls\tString", "contents": "dirtyCls: '$1'${2:,}" },
@P7h
P7h / IntelliJ_IDEA__Perf_Tuning.txt
Last active September 4, 2024 05:04
Performance tuning parameters for IntelliJ IDEA. Add these params in idea64.exe.vmoptions or idea.exe.vmoptions file in IntelliJ IDEA. If you are using JDK 8.x, please knock off PermSize and MaxPermSize parameters from the tuning configuration.
-server
-Xms2048m
-Xmx2048m
-XX:NewSize=512m
-XX:MaxNewSize=512m
-XX:PermSize=512m
-XX:MaxPermSize=512m
-XX:+UseParNewGC
-XX:ParallelGCThreads=4
-XX:MaxTenuringThreshold=1
@dergachev
dergachev / GIF-Screencast-OSX.md
Last active September 15, 2024 10:33
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: