Skip to content

Instantly share code, notes, and snippets.

@k3n
k3n / ReapplyFlair.js
Last active August 29, 2015 05:37 — forked from TheLouisHong/ReapplyFlair.js
ReapplyFlair
// By /u/loolo78. Use at you will.
// Find the Flair ID by inspecting your flair selection box.
// This script unfortunatly is not very "user" friendly.
//
var $flairs = $('.flairselectbtn');
var config = { attributes: true, childList: true, characterData: true, subtree: true };
function wait(index){
var $flair = $flairs.eq(index),
var request = require("request");
var util = require('util');
//var WebSocket = require('ws');
var WebSocketClient = require('websocket').client;
var ws;
var message = "";
var i = 0;
var latex = {};
@k3n
k3n / whatever.ini
Created December 1, 2012 08:23
buy binds for cs:go
// save as C:\Program Files (x86)\Steam\steamapps\common\Counter-Strike Global Offensive\csgo\cfg\whatever.cfg
// then edit autoexec.cfg in that same directory and add: exec whatever.cfg
// for more info on what weps mean: http://www.hattongames.com/2012/06/how-to-create-custom-buy-binds-for-csgo/
echo "running custom config..."
// voice_scale .5 (mute all = 0)
// mm aka. match-making
// min. 50.000000 max. 350.000000 - Longest preferred ping to dedicated servers for games
"mm_dedicated_search_maxping" = "100"
@k3n
k3n / lint-all-files-recursive.php
Created February 16, 2012 16:26
Applies PHP's lint check to all PHP files in a directory.
<?php
/**
* Recurses each directory and runs PHP's lint function against each file
* to test for parse errors.
*
* @param string $dir the directory you would like to start from
* @return array the files that did not pass the test
*/
function lint( $dir = 'C:\dev\\' )