Bash function for OS X to convert a .mov file into a .gif but in a reasonable quality.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
h=() | |
if [[ -r ~/.ssh/config ]]; then | |
h=($h ${${${(@M)${(f)"$(cat ~/.ssh/config)"}:#Host *}#Host }:#*[*?]*}) | |
fi | |
if [[ -r ~/.ssh/known_hosts ]]; then | |
h=($h ${${${(f)"$(cat ~/.ssh/known_hosts{,2} || true)"}%%\ *}%%,*}) 2>/dev/null | |
fi | |
if [[ $#h -gt 0 ]]; then | |
zstyle ':completion:*:ssh:*' hosts $h | |
zstyle ':completion:*:slogin:*' hosts $h |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
### BEGIN INIT INFO | |
# Provides: gogs | |
# Required-Start: $remote_fs $syslog | |
# Required-Stop: $remote_fs $syslog | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: Git repository manager Gogs | |
# Description: Starts and stops the self-hosted git repository manager Gogs | |
### END INIT INFO |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name DogeCoin beautifier | |
// @version 0.2 | |
// @author frdmn | |
// @description Such ComicSans. Wow. | |
// @match *://*/* | |
// ==/UserScript== | |
function addGlobalStyle(css) { | |
var head, style; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# MPOS Hostname | |
config_host="miningpool.org" | |
# MPOS API token (Login -> Edit Account -> API Key) | |
config_api="0123456789abcdefghijklmnopqrstuvwxyzaaabacadaeafagahaiajakalaman" | |
json=$(curl -s "http://${config_host}/index.php?page=api&action=getuserstatus&api_key=${config_api}" | python -m json.tool) | |
parse_hashrate=$(echo "$json" | python -m json.tool | grep "hashrate" | awk '{ print $2 }' | sed 's/,//g') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# In case you run 10.9, there is no maven3 on board by default, and "brew install maven" will fail, so here's a workaround: | |
brew install https://raw.github.com/Homebrew/homebrew-versions/master/maven30.rb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Variables | |
# [reason] = Motivo del baneo y el silenciamiento. | |
# [player] = Nombre del jugador. | |
# [ip] = IP baneada. | |
# [actor] = Aquél que baneo o silenció a un jugador. | |
# [expires] = Tiempo de duración de un baneo o silenciamiento. | |
# NOTA: ban y mute no tienen una traducción y/o al menos no una traducción muy exacta al español. Puede que la traducción en este archivo no sea 100% precisa. | |
messages: | |
duplicateIP: '&cAdvertencia: [player] tiene la misma IP que los siguientes jugadores baneados:\n&6[players]' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ul> | |
<?php | |
# Subreddit HTML export | |
# | |
# Log into Reddit and browse to "http://www.reddit.com/reddits.json" | |
# Save the content with the filename "reddits.json" and place it besides | |
# this file in the same directory. | |
$json = file_get_contents("./reddits.json"); | |
$json = json_decode($json, true); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
### BEGIN INIT INFO | |
# Provides: cloudbot | |
# Required-Start: $remote_fs $syslog | |
# Required-Stop: $remote_fs $syslog | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: SysVinit start up daemon for CloudBot | |
# Description: Start up daemon for CloudBot |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vagrant@vagrant-ubuntu-trusty-64:~$ sudo su | |
root@vagrant-ubuntu-trusty-64:/home/vagrant# apt-get -y update | |
Ign http://archive.ubuntu.com trusty InRelease | |
Get:1 http://security.ubuntu.com trusty-security InRelease [64.4 kB] | |
Get:2 http://archive.ubuntu.com trusty-updates InRelease [64.4 kB] | |
Get:3 http://security.ubuntu.com trusty-security/main Sources [101 kB] | |
Get:4 http://archive.ubuntu.com trusty-backports InRelease [64.5 kB] | |
Hit http://archive.ubuntu.com trusty Release.gpg | |
Get:5 http://security.ubuntu.com trusty-security/universe Sources [31.9 kB] | |
Get:6 http://security.ubuntu.com trusty-security/main amd64 Packages [396 kB] |