Skip to content

Instantly share code, notes, and snippets.

View shark0der's full-sized avatar
HTTP 402 Payment Required


HTTP 402 Payment Required
View GitHub Profile
shark0der / gist:0b2b1b565c433d68a75d
Created May 18, 2015 02:37
Money indicator: Each morning you're given $1440, $1 for every minute of your life. Spend it wisely.
import appindicator, pynotify, gtk, os, sys
import threading
from datetime import datetime
from datetime import timedelta
import glib
# Ansible playbook: Webmin for Ubuntu v201501302302
# Louis T. Getterman IV (@LTGIV)
# /
# fork url:
# Example Usage:
# [user@host ~$] ansible-playbook /etc/ansible/playbooks/ubuntu-webmin.yml --extra-vars 'target=nameFromHostsFile'
shark0der / browser-sync.js
Last active June 20, 2018 17:54 — forked from axemclion/browser-sync.js
Using browser-sync with Cordova
// Browser-Sync support for Cordova projects
// To use this, add the following snippet as a after_run hook using something like
// <hook type="after_prepare" src="hooks/browser-sync.js" />
// Add under default-src ws: 'unsafe-inline' to the CSP in index.html
// Add under script-src * (you can whitelist the host for livereload, but this is a shortcut).
// Don't forget to remove them in prod!
// Then run: cordova run -- --live-reload
// Changing anything in www/ will live-reload the cordova app on emulator/device
module.exports = function(context) {
import React from 'react';
import pureRender from 'pure-render-decorator';
import classes from './Navbar.scss';
const REST = 'REST';

Keybase proof

I hereby claim:

  • I am shark0der on github.
  • I am shark0der ( on keybase.
  • I have a public key ASBNjFc1E1gw-AFZFrPqGSV9BZGvKA_zJGVVW8lxZMG3OAo

To claim this, I am signing this object:

shark0der / ubuntu14.04-command-line-install-android-sdk
Last active March 7, 2021 15:09 — forked from wenzhixin/ubuntu14.04-command-line-install-android-sdk
Ubuntu 14.04 command line install android sdk (platform & platform-tools only, no emulator)
# install java
apt-get install -y software-properties-common
apt-add-repository -y ppa:webupd8team/java
apt-get update
apt-get install -y oracle-java8-installer
# download latest android sdk
cd /opt
shark0der /
Last active January 22, 2022 16:28 — forked from conroyp/
Mailcatcher installation script for Ubuntu 16.04 (14.04 commands commented out)
# Install dependencies
# older ubuntus
#apt-get install build-essential libsqlite3-dev ruby1.9.1-dev
# xenial
apt install build-essential libsqlite3-dev ruby-dev
# Install the gem
gem install mailcatcher --no-ri --no-rdoc
shark0der /
Created November 14, 2022 09:09
Disable WhatsApp automatic emoji conversion

Disable WhatsApp automatic emoji conversion

The script works by patching the webpack chunks instead of manipulating the DOM.