Skip to content

Instantly share code, notes, and snippets.

View kuntau's full-sized avatar
💭
I may be slow to respond.

Nizamuddin Sulieman kuntau

💭
I may be slow to respond.
View GitHub Profile
// Scraping Made Easy with jQuery and SelectorGadget
// (http://blog.dtrejo.com/scraping-made-easy-with-jquery-and-selectorga)
// by David Trejo
//
// Install node.js and npm:
// http://joyeur.com/2010/12/10/installing-node-and-npm/
// Then run
// npm install jsdom jquery http-agent
// node numresults.js
//
@kuntau
kuntau / 0_reuse_code.js
Created October 12, 2013 00:48
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@kuntau
kuntau / set_permission.sh
Created October 14, 2013 08:50
How to set chmod for a folder and all of its subfolders and files in Linux Ubuntu Terminal?
# The other answers are correct, in that chmod -R 755 will set this as permissions to all files and folders in the tree. But why on earth would you want to? It might make sense for the directories, but why set the execute bit on all the files?
# I suspect what you really want to do is set the directories to 755 and either leave the files alone or set them to 644. For this, you can use the find command. For example:
# To change all the directories to 755 (-rwxr-xr-x):
find /opt/lampp/htdocs -type d -exec chmod 755 {} \;
# To change all the files to 644 (-rw-r--r--):
/*
On Tue, Sep 30, 2008 at 6:52 AM, Austin English <austinenglish at gmail.com> wrote:
> On Mon, Sep 29, 2008 at 3:39 PM, Mark Wagner <carnildo at gmail.com> wrote:
>> What's the best way for an application to detect that it's running under Wine?
>>
>> As part of the installation process, under Windows our program does a
>> full-disk search of all local hard drives, but ignoring network drives
>> and removable media. Under Wine, this doesn't work too well, as
>> there's not a one-to-one mapping between disks and drive letters, and
>> there's usually at least one way to access the entire *nix filesystem.

Keybase proof

I hereby claim:

  • I am kuntau on github.
  • I am kuntau (https://keybase.io/kuntau) on keybase.
  • I have a public key ASB3kc-9o1lh1sXHVKgG9ODzw-N3HfrwQB_r7W-T-dA0Uwo

To claim this, I am signing this object:

@kuntau
kuntau / GAME_MASTER_v0_1.protobuf
Created August 15, 2016 17:32 — forked from anonymous/GAME_MASTER_v0_1.protobuf
Pokemon Go decoded GAME_MASTER protobuf file v0.1
Result: 1
Items {
TemplateId: "BADGE_BATTLE_ATTACK_WON"
Badge {
BadgeType: BADGE_BATTLE_ATTACK_WON
BadgeRanks: 4
Targets: "\nd\350\007"
}
}
Items {
@kuntau
kuntau / pokeradar_fixed.js
Last active September 8, 2016 08:48
A fix and cleanup for pokeradar.io
// ==UserScript==
// @name PokeRadar.io fixed
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://www.pokeradar.io/
// @grant GM_addStyle
// @grant GM_log
// @grant unsafeWindow
@kuntau
kuntau / popout.js
Last active October 27, 2016 06:23
Browser Popup
angular.module("trackerApp").directive("stream", ["$sce", "$rootScope", function(a, b) {
return {
restrict: "E",
templateUrl: "views/match_stream.html",
scope: !1,
transclude: !1,
controller: ["$scope", function(c) {
c.trustTwitchSrc = function(b) {
return a.trustAsResourceUrl("http://twitch.tv/" + b + "/embed")
}
@kuntau
kuntau / TrainStation.ahk
Created November 9, 2016 13:37
TS AutoClick v2.0
#NoEnv
SetWorkingDir %A_ScriptDir%
CoordMode, Mouse, Client
SendMode Input
#SingleInstance Force
SetTitleMatchMode 2
#WinActivateForce
SetControlDelay 1
SetWinDelay 0
SetKeyDelay -1
@kuntau
kuntau / discord.js
Last active April 6, 2017 09:25
Hide Discordapp channel sidebar
//ref: http://andrewhfarmer.com/hide-discord-sidebar/
document.addEventListener('keydown', function(event) {
if (event.metaKey && event.keyCode === 220) {
// Toggle visibility of the channel and guilds columns
var channelWrap = $('.flex-vertical.channels-wrap');
var guildsWrap = $('.guilds-wrapper');
var titleWrap = $('.title-wrap');
if (channelWrap.getAttribute('style') === 'display: none') {
channelWrap.setAttribute('style', '');
guildsWrap.setAttribute('style', '');