Skip to content

Instantly share code, notes, and snippets.


Andy Shevchenko ur4ltz

View GitHub Profile
ap / httpd-cgit.conf
Created Mar 31, 2009
cgit clean URLs Apache config
View httpd-cgit.conf
# cgit setup for Apache that results in completely clean URLs, ie.
# visiting will produce the cgit index page
<VirtualHost *>
# this part is stand fare
DocumentRoot /var/www/htdocs/cgit/
<Directory "/var/www/htdocs/cgit/">
AllowOverride None
Options ExecCGI
Order allow,deny

GitHub OAuth Busy Developer's Guide

This is a quick guide to OAuth2 support in GitHub for developers. This is still experimental and could change at any moment. This Gist will serve as a living document until it becomes finalized at

OAuth2 is a protocol that lets external apps request authorization to private details in your GitHub account without getting your password. All developers need to register their application before getting started.

Web Application Flow

  • Redirect to this link to request GitHub access:
#!/usr/bin/env bash
# Run this script inside a SVN checkout of the project
authors=$(svn log -q | grep -e '^r' | awk 'BEGIN { FS = "|" } ; { print $2 }' | sort | uniq)
for author in ${authors}; do
echo "${author} = NAME <USER@DOMAIN>";
jcaraballo /
Created Mar 6, 2012
How to fork a github repository in bitbucket

#Create bitbucket branch

##Create local branch

$ git checkout -b sync
Switched to a new branch 'sync'
$ git branch
* sync
perky / ProFi.lua
Created May 30, 2012
ProFi, a simple lua profiler that works with LuaJIT and prints a pretty report file in columns.
View ProFi.lua
ProFi v1.3, by Luke Perkin 2012. MIT Licence
ProFi = require 'ProFi'
coroutine.resume( some_coroutine )


A ZSH theme optimized for people who use:

  • Solarized
  • Git
  • Unicode-compatible fonts and terminals (I use iTerm2 + Menlo)

For Mac users, I highly recommend iTerm 2 + Solarized Dark

areina /
Created Oct 12, 2012
Manage your email in emacs with mu4e

Manage your gmail account in emacs with mu4e

There're a lot of combinations to manage your email with emacs, but this works for me. I've a backup and I can manage my daily email.

The stack:

  • emacs
  • offlineimap
  • mu
  • mu4e
alexott / minimial-cedet-config.el
Created Oct 22, 2012
Working configuration for CEDET from bzr & GNU Emacs (with working C++ & Java name completion)
View minimial-cedet-config.el
;;; minimial-cedet-config.el --- Working configuration for CEDET from bzr
;; Copyright (C) Alex Ott
;; Author: Alex Ott <>
;; Keywords: cedet, C++, Java
;; Requirements: CEDET from bzr (
;; Do checkout of fresh CEDET, and use this config (don't forget to change path below)
Deco / socketlanes.lua
Created Nov 6, 2012
Multi-threaded LuaSocket with Lua Lanes example
View socketlanes.lua
--[[ socketlanes.lua
Multi-threaded LuaSocket with Lua Lanes example
Depends on the following LuaSocket 2.0.2 patch:
(provided at end of file)
tylerneylon / learn.lua
Last active Aug 1, 2021
Learn Lua quickly with this short yet comprehensive and friendly script. It's written as both an introduction and a quick reference. It's also a valid Lua script so you can verify that the code does what it says, and learn more by modifying and running this script in your Lua interpreter.
View learn.lua
-- Two dashes start a one-line comment.
Adding two ['s and ]'s makes it a
multi-line comment.
-- 1. Variables and flow control.