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 / moyka.txt
Created November 12, 2022 08:41
Фёдоров - Мойка
Вступление: рифф на трёх нотах вокруг септаккорда до (до си-бемоль соль)
C
Хоть что-то
Чтоб не зря
Хоть чуть
Bb5-
Чтоб по за про
A
Жить пользой День
@silvansky
silvansky / important_code
Created January 27, 2017 17:21
Some really important code
(77589847 89948 768 7 8999 758 7485 4456 8690 868 7465 868)
@silvansky
silvansky / print_names.sh
Created October 9, 2015 09:13
Print name and description of .mobileprovision files
#!/bin/sh
echo
echo $1
/usr/libexec/PlistBuddy -c 'Print TeamName' /dev/stdin <<< $(security cms -D -i ${1})
/usr/libexec/PlistBuddy -c 'Print :Entitlements:application-identifier' /dev/stdin <<< $(security cms -D -i ${1})
- (void)performVKLogin
{
@weakify(self);
id conf = @{
LMAVkontakteSDKClientId : __YOUR_APP_ID__,
LMAVkontakteSDKScope : @[ VK_PER_WALL, VK_PER_STATUS, VK_PER_EMAIL ],
LMAVkontakteSDKRevokeAccess : @NO,
LMAVkontakteSDKForceOAuth : @YES,
LMAVkontakteSDKAuthorizeInApp : @YES
@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
@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"
},
// 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 / 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
/*
* 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 / весна.txt
Created July 19, 2012 17:48
Весна
A
Горе выпил до дна
A
Завтра будет война
Dm
Отпевая весну
A
Сын ушёл на войну
Gm