This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# encoding: utf-8 | |
require 'nokogiri' | |
require 'open-uri' | |
require 'yaml' | |
################################################### | |
# ♥ http://habrahabr.ru/users/bupycnet/comments/ | |
NICK = unless ARGV.empty? then "#{ARGV.pop}" else |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Rename symbols in an ELF object file, for use with ocamlopt -pack. | |
Written by John F. Carr <[email protected]>, September 24 2002. | |
Do whatever you want with this program. | |
This program takes two arguments: the name of a file to modify, | |
and the prefix to prepend to external symbols. A symbol already | |
beginning with the prefix, or the prefix without a trailng "__", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# encoding: utf-8 | |
require 'nokogiri' | |
require 'open-uri' | |
require 'yaml' | |
################################################### | |
# ♥ http://habrahabr.ru/users/bupycnet/comments/ | |
NICK = unless ARGV.empty? then "#{ARGV.pop}" else |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
upstream thin { | |
server unix:/tmp/thin.0.sock; | |
server unix:/tmp/thin.1.sock; | |
} | |
server { | |
listen 80; | |
server_name domain.ru; | |
root /var/www/domain/public; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# Generate PRODUCT_COPY_FILES for the Android.mk files | |
# Usage: ./pcf_gen.rb <local_folder> <device_folder> | |
# (c) 2013 ROSA Lab | |
# Author: [email protected] | |
def show_help | |
puts "Usage:" | |
puts "./pcf_gen.rb <local_folder> <device_folder>" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ffmpeg -vframes 1 -vcodec rawvideo -f rawvideo -pix_fmt rgb32 -s 1024x768 -i initlogo.rle -vcodec png logo.png | |
ffmpeg -vcodec png -i logo.png -vframes 1 -vcodec rawvideo -f rawvideo -pix_fmt rgb32 initlogo.rle |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gisyangli | |
I build the qt 3.0.2- x11 free on ubuntu 12.04, and get some error: .... | |
peppe | |
are you aware that Qt 3.0.2 was released 11 years ago? | |
gisyangli | |
yes, I know | |
gisyangli |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
### BEGIN INIT INFO | |
# Provides: nginx | |
# Required-Start: $local_fs $remote_fs $network $syslog | |
# Required-Stop: $local_fs $remote_fs $network $syslog | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: starts the nginx web server | |
# Description: starts nginx using start-stop-daemon |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
John Carmack on shadow volumes... | |
I recieved this in email from John on May 23rd, 2000. | |
- Mark Kilgard | |
I solved this in a way that is so elegant you just won't believe it. Here | |
is a description that I posted to a private mailing list: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Just before switching jobs: | |
// Add one of these. | |
// Preferably into the same commit where you do a large merge. | |
// | |
// Contributors: @r2d2rigo, @joeldevahl, @msinilo, @_Humus_, | |
// @YuriyODonnell, @rygorous, @cmuratori, @mike_acton, @grumpygiant, | |
// @KarlHillesland, @rexguo, @tom_forsyth, @bkaradzic, @MikeNicolella | |
// and myself. | |