Skip to content

Instantly share code, notes, and snippets.

View ncla's full-sized avatar
👨‍💻

ncla

👨‍💻
View GitHub Profile
@ncla
ncla / csgo.cfg
Last active March 17, 2017 15:35
// Network
net_graph 0
net_graphproportionalfont 0
net_graphheight 0
net_graphpos 2
cl_cmdrate "128"
cl_interp "0"
cl_interp_ratio "1"
cl_updaterate "128"
@ncla
ncla / musemuimage.js
Created September 30, 2016 18:11
Muse.mu image scraper
var request = require('request');
var cheerio = require('cheerio');
var url = require('url');
var async = require('async');
var _ = require('underscore');
var fs = require('fs');
function parseGalleriesList(htmlString) {
$ = cheerio.load(htmlString);
@ncla
ncla / apicem.css
Last active January 24, 2017 15:48
/*
Version 1.0.0
Apicem CSS Theme
By /u/Cereal_Addict
Stock photos via unsplash.com
Icons via icons8.com
==============================================================================*/
<?php
$page = 0;
$lastPage = false;
while ($lastPage === false) {
if ($page === 35) {
$page++;
continue;
}
@ncla
ncla / script.js
Last active August 10, 2016 14:37
SteamAnalyst Price List source code - stripped
$(document).ready(function() {
var page = $('input[type="hidden"][name="tablePage"]').val();
page = parseInt(page);
var throttled_next = $.debounce(500, true, function() {
var _0x56ca = ["\x76\x61\x6C", "\x69\x6E\x70\x75\x74\x5B\x74\x79\x70\x65\x3D\x22\x68\x69\x64\x64\x65\x6E\x22\x5D\x5B\x6E\x61\x6D\x65\x3D\x22\x74\x61\x62\x6C\x65\x50\x61\x67\x65\x22\x5D"];
page = $(_0x56ca[1])[_0x56ca[0]]();
page = parseInt(page);
@ncla
ncla / destroyer3000.js
Last active September 28, 2015 12:25
CSGOLounge Destroyer 3000 old user script
// ==UserScript==
// @name CS:GO Lounge Destroyer
// @namespace http://csgolounge.com/
// @version 0.6.7
// @description Spam the fuck out of the CS:GL queue system, because it's absolute crap
// @match http://csgolounge.com/*
// @match http://dota2lounge.com/*
// @updateURL http://ncla.me/csgl3000/csgl3000.meta.js
// @downloadURL http://ncla.me/csgl3000/oldshit.js
// @require http://code.jquery.com/jquery-2.1.1.js
@ncla
ncla / matchthread.js
Created November 16, 2014 09:44
Dirty script to generate match thread for r/csgobetting based on HLTV match page
// ==UserScript==
// @name Match thread creator from HLTV match pages
// @namespace http://ncla.me
// @version 0.1
// @description Generated markdown for match threads
// @author ncla
// @match http://www.hltv.org/match/*
// @require http://code.jquery.com/jquery-1.11.1.min.js
// @grant none
// ==/UserScript==
@ncla
ncla / gist:49ab9ac8271de33c29fb
Created October 1, 2014 09:40
CSRF for missing items on CSGOLounge
<!DOCTYPE html>
<html lang="en">
<head>
</head>
<body>
<form action="http://csgolounge.com/ajax/postTicket.php" target="topkek" method="post">
<input type="hidden" name="whatdo" value="2"/>
<input type="hidden" name="match" value="1001"/>
<input type="hidden" name="screenshot" value="http://i.imgur.com/g0n1OcA.png"/>
@ncla
ncla / background.js
Last active August 29, 2015 14:06
Chrome webRequest - Change 'Location' header
chrome.webRequest.onHeadersReceived.addListener(
function(details) {
var headers = details.responseHeaders,
blockingResponse = {};
var originalURL = details.url;
for(var i = 0, l = headers.length; i < l; ++i) {
/*
That's right.
I did it this way.
What you gonna do now?
@ncla
ncla / dob.phtml
Last active March 17, 2021 22:09
Magento Date of Birth drop down boxes
<?php
/**
* @author iamncla @ github.com
* @see Mage_Customer_Block_Widget_Dob
*/
?>
<label for="<?php echo $this->getFieldId('month')?>"<?php if ($this->isRequired()) { echo ' class="required"'; } ?>><?php echo $this->__('Birthday') ?></label>
<div class="customer-dob">
<div class="dob-month">
<select name="<?php echo $this->getFieldName('month'); ?>" id="<?php echo $this->getFieldId('month'); ?>">