Skip to content

Instantly share code, notes, and snippets.

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

shark0der

💵
HTTP 402 Payment Required
View GitHub Profile
@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) {
@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
---
#
# 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 / 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