Skip to content

Instantly share code, notes, and snippets.

@shark0der
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.
#!/usr/bin/python
import appindicator, pynotify, gtk, os, sys
import threading
from datetime import datetime
from datetime import timedelta
try:
import glib
except:
---
#
# Ansible playbook: Webmin for Ubuntu v201501302302
# Louis T. Getterman IV (@LTGIV)
# www.GotGetLLC.com / www.opensour.cc
# fork url: https://gist.github.com/shark0der/2a8e69d3a6c4c8c49b53
#
# Example Usage:
# [user@host ~$] ansible-playbook /etc/ansible/playbooks/ubuntu-webmin.yml --extra-vars 'target=nameFromHostsFile'
#
@shark0der
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';
const MEASURE = 'MEASURE';
const PREPARE = 'PREPARE';
const ANIMATE = 'ANIMATE';

Keybase proof

I hereby claim:

  • I am shark0der on github.
  • I am shark0der (https://keybase.io/shark0der) on keybase.
  • I have a public key ASBNjFc1E1gw-AFZFrPqGSV9BZGvKA_zJGVVW8lxZMG3OAo

To claim this, I am signing this object:

@shark0der
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
# http://developer.android.com/sdk/index.html#Other
cd /opt
wget http://dl.google.com/android/android-sdk_r24.4.1-linux.tgz
@shark0der
shark0der / setup_mailcatcher.sh
Last active January 22, 2022 16:28 — forked from conroyp/setup_mailcatcher.sh
Mailcatcher installation script for Ubuntu 16.04 (14.04 commands commented out)
#!/bin/bash
# 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
shark0der / README.md
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.