Skip to content

Instantly share code, notes, and snippets.

View silvansky's full-sized avatar

Valentine Silvansky silvansky

  • Songsterr
  • Moscow
View GitHub Profile
@silvansky
silvansky / get_iLBC.sh
Created March 6, 2012 13:35
Script to get iLBC sources and build them in a static lib
#!/bin/sh
ILBC_DIR="iLBC"
RFC_URL="http://www.ietf.org/rfc"
RFC_FILENAME="rfc3951.txt"
ES_URL="http://www.ilbcfreeware.org/documentation"
ES_FILENAME="extract-cfile.txt"
ES_MV_FILENAME="extract-cfile.awk"
PRO_FILE="iLBC.pro"
@silvansky
silvansky / renew_pjsip.sh
Created March 6, 2012 14:00
PJProject renew script
#!/bin/sh
if [ "$1" == "--last" ]
then
PJ_REPO="svn+ssh://<your-url-here>/pjsip_mod"
PJ_DIR="pjsip_mod"
CONFIG_DEFINES=""
else
PJ_REPO="http://svn.pjsip.org/repos/pjproject/tags/2.0-beta"
PJ_DIR="pjproject-2.0b"
@silvansky
silvansky / get_pjsip_deps.sh
Created March 16, 2012 11:02
Script for getting and building pjsip dependencies [Mac OS X]
#!/bin/sh
# constants
SCRIPT_VER="1.1"
HELP_MSG="get_pjsip_deps.sh, version: ${SCRIPT_VER}
Usage: get_pjsip_deps.sh [options]
Options:
--no-264 Disable build of x264 codec
--no-ffmpeg Disable build of ffmpeg
@silvansky
silvansky / hack.sh
Created May 5, 2012 15:19 — forked from erikh/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
#
@silvansky
silvansky / весна.txt
Created July 19, 2012 17:48
Весна
A
Горе выпил до дна
A
Завтра будет война
Dm
Отпевая весну
A
Сын ушёл на войну
Gm
/*
* NSImage+NinePartDrawing.h
*
* Copyright (c) 2011 Noel R. Cower
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
@silvansky
silvansky / labyrus-patch-osx.diff
Created April 24, 2013 10:04
Labyrus patch for build on OS X
diff --git a/Client/Client.pro b/Client/Client.pro
index b05a8fa..978a42b 100644
--- a/Client/Client.pro
+++ b/Client/Client.pro
@@ -12,7 +12,8 @@ QT += opengl
LIBS += -L/usr/lib/qt
-unix: LIBS += -lGLU
+unix:!macx: LIBS += -lGLU
// Just before switching jobs:
// Add one of these.
// Preferably into the same commit where you do a large merge.
//
// This started as a tweet with a joke of "C++ pro-tip: #define private public",
// and then it quickly escalated into more and more evil suggestions.
// I've tried to capture interesting suggestions here.
//
// Contributors: @r2d2rigo, @joeldevahl, @msinilo, @_Humus_,
// @YuriyODonnell, @rygorous, @cmuratori, @mike_acton, @grumpygiant,
@silvansky
silvansky / sample.json
Last active August 29, 2015 13:57
sample.json
{
"firstName": "John",
"lastName": "Smith",
"age": 25,
"address": {
"streetAddress": "21 2nd Street",
"city": "New York",
"state": "NY",
"postalCode": "10021"
},
@silvansky
silvansky / RACSupport.swift
Created December 8, 2014 13:28
My ReactiveCocoa Swift support. Optionals in blocks.
//
// RACSupport.swift
//
// Created by Valentine on 19.11.14.
// Copyright (c) 2014 silvansky. All rights reserved.
//
import Foundation
// RAC