Skip to content

Instantly share code, notes, and snippets.

jadedgnome

Block or report user

Report or block jadedgnome

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@nonohry
nonohry / Link Download
Last active Dec 10, 2017
Link Download
View Link Download
@moshest
moshest / p2p-list.md
Last active Jan 27, 2019
A collection of peer-to-peer decentralized projects.
View p2p-list.md
@CrashenX
CrashenX / android-root.md
Last active Oct 11, 2018
Android Live Root Image
View android-root.md

Root Access to Android Device Without "Rooting" (The Hard Way)

Intro

N.B., This is for educational purposes only. If you want an easier method, compile an engineering build of the recovery.img and boot it: https://source.android.com/source/building.html

N.B., This is a work in progress. I'm updating for Nexus 5X and Android 6.0.0. Booting the modified recovery.img does not currently start adbd. I've created

@florianbeer
florianbeer / set-tmux-title
Created Apr 21, 2015
Set tmux pane title to short hostname on ssh connections
View set-tmux-title
ssh() {
if [ "$(ps -p $(ps -p $$ -o ppid=) -o comm=)" = "tmux" ]; then
tmux rename-window "$(echo $* | cut -d . -f 1)"
command ssh "$@"
tmux set-window-option automatic-rename "on" 1>/dev/null
else
command ssh "$@"
fi
}
@florianbeer
florianbeer / hostup
Created Apr 20, 2015
Alert if host is back up
View hostup
hostup() {
if (( $# != 1 )); then
echo "Usage: hostup HOSTNAME"
else
until $(which ping) -W1 -c1 ${1} > /dev/null; do sleep 5; done && $(which say) "${1} is up"
fi
}
@joepie91
joepie91 / README.md
Last active Oct 28, 2015
Uploading to curl.io without a browser (but with a progress bar!)
View README.md

Simply save the script in your home directory (as set-alias.sh or whatever else you want), and add the following to your .bashrc:

source ~/set-alias.sh

Don't forget to use the right filename if you've changed it!

Now you can just use the curlio command:

@pachacamac
pachacamac / tiler.rb
Last active Jul 29, 2017
simple tiling script
View tiler.rb
#!/usr/bin/env ruby
# DESCRIPTION:
# This is a script to rearrange your windows like this:
# _________________________ _________________________
# | _________ | x| | | major x| minor x|
# | | major x |__| | | | |____________|
# | | | |_____| | --> | | minor x|
# | |_________| | ______ | | |____________|
# | |______|| x|| | | minor x|
@jmiserez
jmiserez / export_google_music.js
Last active Sep 17, 2019
(fixed/updated 2016-05-10) Export your Google Music Library and Playlists (Google Play Music All Access) (see http://webapps.stackexchange.com/questions/50311/print-playlist-from-google-play-music for more)
View export_google_music.js
// Copyright 2016 Jeremie Miserez <jeremie@miserez.org>
//
// MIT License
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
// The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF O
@alganet
alganet / serve.sh
Last active Nov 19, 2018
Serve any folder as a web server with $ curl -L http://tinyurl.com/servesh1 | sh
View serve.sh
#!/usr/bin/env sh
# serve.sh
# Modular version: https://gist.github.com/alganet/a22a1373dcee7c175d1e
# Expansion on zsh
command -v setopt 2>&1 >/dev/null && setopt SH_WORD_SPLIT
# POSIX on bash
export POSIXLY_CORRECT=1
# Lists files and folders as HTML
@mildred
mildred / download.sh
Created Oct 20, 2014
Download from archive.org Wayback Machine
View download.sh
#!/bin/bash
url=http://redefininggod.com
webarchive=https://web.archive.org
wget="wget -e robots=off -nv"
tab="$(printf '\t')"
additional_url=url.list
# Construct listing.txt from url.list
# The list of archived pages, including some wildcard url
You can’t perform that action at this time.