Skip to content

Instantly share code, notes, and snippets.

Kirill A. Shabordin donkaban

Block or report user

Report or block donkaban

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View CMake gen
#!/usr/bin/env python
import sys
import os
import re
include_dirs = set()
source_files = set()
def _search(path):
View trial.sh
!/bin/sh
cp -n /Library/Application\ Support/Syncrosoft\ Soft-eLicenser/SeLicenser.sel ~/Desktop/SeLicenser.bak
rm /Library/Application\ Support/Syncrosoft\ Soft-eLicenser/SeLicenser.sel
sudo systemsetup -setusingnetworktime off
sudo systemsetup -setdate 12:31:2100
/Library/Application\ Support/eLicenser/pos/Synsopos.app/Contents/MacOS/Synsopos -RegSeL
View gist:2902ffcff7bb54466c56
import sys
import datetime
class logger(object):
instance = None
def __init__(self, tag):
self.tag = str(tag)
View gist:fbf7ea458cdf5409cab4
# -*- mode: ruby -*-
# vi: set ft=ruby :
ENV['VAGRANT_DEFAULT_PROVIDER'] = 'parallels'
#ENV['VAGRANT_DEFAULT_PROVIDER'] = 'virtualbox'
Vagrant.configure(2) do |config|
config.vm.define "zoddy_dev"
config.vm.box = "parallels/ubuntu-14.04"
View preprocessor_fun.h
// 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,
View gist:a0cf0545a2adca1d28b3
#!/bin/bash
rm -rf /Volumes/ramdisk
if [[ $(mount | awk '$3 == "/Volumes/ramdisk" {print $3}') != "" ]]; then
echo /Volumes/ramdisk is mounted
else
diskutil erasevolume HFS+ "ramdisk" `hdiutil attach -nomount ram://8475854`
fi
View osx-for-hackers.sh
#!/bin/sh
# Alot of these configs have been taken from the various places
# on the web, most from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
red='\033[0;31m'
View osx-for-hackers.sh
#!/bin/sh
# Alot of these configs have been taken from the various places
# on the web, most from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
red='\033[0;31m'
View gist:1213849a8b5eb1fbb02c
#!/bin/bash
VERSION="5.0 (ubuntu 14.04 x86_64 LTS)"
ERR_COLOR="\033[31m"
WRN_COLOR="\033[33m"
NFO_COLOR="\033[32m"
SCRIPT_NAME=`basename $0`
ARCH=$(uname -i)
View gist:727a174139591ceb65ae
function collect(...)
local args = {...}
local numArgs = #args
local lambda = args[numArgs]
local result = {}
local finisher = 1
if(numArgs < 2) then Log.error("[QP] You must have minimum 2 params in collect()") return end
for i=1,numArgs-1 do
args[i](function(...)
if(#{...})==1 then
You can’t perform that action at this time.