Skip to content

Instantly share code, notes, and snippets.

Avatar

arief nur andono goldalworming

View GitHub Profile
View how-to-view-source-of-chrome-extension.md

Option 1: Command-line download extension as zip and extract

extension_id=jifpbeccnghkjeaalbbjmodiffmgedin   # change this ID
curl -L -o "$extension_id.zip" "https://clients2.google.com/service/update2/crx?response=redirect&os=mac&arch=x86-64&nacl_arch=x86-64&prod=chromecrx&prodchannel=stable&prodversion=44.0.2403.130&x=id%3D$extension_id%26uc" 
unzip -d "$extension_id-source" "$extension_id.zip"

Thx to crxviewer for the magic download URL.

View fbdialog.html
<div class="_4t2a"><div style="opacity: 1;"><div><div class="_4-i0"><div class="clearfix"><div class="_51-u rfloat _ohf"><a class="_42ft _5upp _50zy layerCancel _51-t _50-0 _50z-" role="button" href="#" title="Close" tabindex="0">Close</a></div><div><h3 id="u_2l_0" class="_52c9">Message Sent</h3></div></div></div><div class="_4-i2 _pig _50f4">Your message was successfully sent.</div></div></div></div>
@goldalworming
goldalworming / cobalt2.json
Created Oct 1, 2017
make cobalt2 vscode similar to cobalt sublime text
View cobalt2.json
{
"$schema": "vscode://schemas/color-theme",
"name": "Cobalt",
"type": "dark",
"colors": {
// activityBar
"activityBar.background": "#122738",
"activityBar.border": "#0d3a58",
"activityBar.dropBackground": "#0d3a58",
"activityBar.foreground": "#fff",
@goldalworming
goldalworming / GoogleMapDownloader.py
Created May 25, 2016 — forked from eskriett/GoogleMapDownloader.py
A python script to download high resolution Google map images given a longitude, latitude and zoom level.
View GoogleMapDownloader.py
#!/usr/bin/python
# GoogleMapDownloader.py
# Created by Hayden Eskriett [http://eskriett.com]
#
# A script which when given a longitude, latitude and zoom level downloads a
# high resolution google map
# Find the associated blog post at: http://blog.eskriett.com/2013/07/19/downloading-google-maps/
import urllib
import Image
View imacros-cheatsheet.js
// iMacro CheatSheet - Command Reference
// http://wiki.imacros.net/Command_Reference
// iMacros supports 3 types of variables:
// * The macro variables !VAR0 thru !VAR9. They can be used with the SET and ADD command inside a macro.
// * Built-in variables. They contain certain values set by iMacros.
// * User-defined variables. They are defined in-macro using the SET command.
View python-icon-icns.sh
#!/usr/bin/env bash
# -----------------------------------------------------------------------------
# 1. Download SVG
if [ ! -f logo.svg ]; then
curl https://www.python.org/static/community_logos/python-logo-inkscape.svg > logo.svg
fi
# -----------------------------------------------------------------------------
View gist:056307304b55ba79b3524e141d8f7269
http://themeforest.net/item/electric-admin-panel-dashboard-angular-js-template/14879635?s_rank=5
http://codepen.io/shye0000/pen/oXKBgY (add to cart effect angularjs)
https://github.com/pierrre/imageserver
@goldalworming
goldalworming / check.go
Created Apr 11, 2016 — forked from mattes/check.go
Check if file or directory exists in Golang
View check.go
if _, err := os.Stat("/path/to/whatever"); os.IsNotExist(err) {
// path/to/whatever does not exist
}
if _, err := os.Stat("/path/to/whatever"); err == nil {
// path/to/whatever exists
}
@goldalworming
goldalworming / setup_howto.txt
Created Mar 31, 2016 — forked from kosiara/setup_howto.txt
Setup Facebook React-native sample (empty) project on Ubuntu
View setup_howto.txt
# author:
# @Bartosz Kosarzycki
#
sudo apt-get install npm
sudo npm install -g react-native-cli
sudo ln -s /usr/bin/nodejs /usr/bin/node
cd /home/user/your/project/path
react-native init AwesomeProject
cd AwesomeProject
@goldalworming
goldalworming / client.py
Created Mar 30, 2016 — forked from nephics/client.py
Test of experimental Tornado feature for a streaming request body handler
View client.py
#
# Test of experimental Tornado feature for a streaming request body handler, see
# https://github.com/nephics/tornado/commit/1bd964488926aac9ef6b52170d5bec76b36df8a6
#
#
# Client sending file to server
#
import tornado.httpclient as httpclient
You can’t perform that action at this time.