I hereby claim:
- I am frdmn on github.
- I am frdmn (https://keybase.io/frdmn) on keybase.
- I have a public key whose fingerprint is 5920 54EF EE01 1552 6476 4EC9 B6E3 14FB D713 FC95
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
Due to the high usage of this guide and the lack of comfort in Gist's commenting area, I decided to make a blog post out of this which you can find here:
http://blog.frd.mn/install-os-x-10-10-yosemite-in-virtualbox/
-- Moved to https://github.com/frdmn/PIA |
#!/bin/bash | |
############################################################### | |
# LiveConfig mail path lookup by Jonas Friedmann (iWelt AG) # | |
# j@frd.mn # | |
# http://frd.mn # | |
# http://twitter.com/frdmn # | |
############################################################### | |
STRING=${1} |
#!/bin/bash | |
# Description: MOTD for Debian/Ubuntu | |
# 2013/07/15 @ysaotome | |
# 2014/05/29 @frdmn | |
BIN_DATE='/bin/date' | |
BIN_FIGLET='/usr/bin/figlet' | |
BIN_HOSTNAME='/bin/hostname' | |
BIN_IP='/sbin/ip' | |
BIN_GREP='/bin/grep' |
// ==UserScript== | |
// @name Reddit outage refresher | |
// @version 0.1 | |
// @author frdmn | |
// @match http://www.reddit.com/* | |
// ==/UserScript== | |
var xpathResult = document.evaluate("(//text()[contains(., 'try again and hopefully we will be fast enough this time.')])[1]", document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null); | |
var node=xpathResult.singleNodeValue; | |
if (node!=null) { |
#!/usr/bin/python | |
import subprocess | |
import re | |
# Get process info | |
ps = subprocess.Popen(['ps', '-caxm', '-orss,comm'], stdout=subprocess.PIPE).communicate()[0] | |
vm = subprocess.Popen(['vm_stat'], stdout=subprocess.PIPE).communicate()[0] | |
# Iterate processes |
// ==UserScript== | |
// @name DogeCoin beautifier | |
// @version 0.2 | |
// @author frdmn | |
// @description Such ComicSans. Wow. | |
// @match *://*/* | |
// ==/UserScript== | |
function addGlobalStyle(css) { | |
var head, style; |
#!/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') |
alias nginx.start='sudo launchctl load /Library/LaunchDaemons/homebrew.mxcl.nginx.plist' | |
alias nginx.stop='sudo launchctl unload /Library/LaunchDaemons/homebrew.mxcl.nginx.plist' | |
alias nginx.restart='nginx.stop && nginx.start' | |
alias php-fpm.start="launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.php56.plist" | |
alias php-fpm.stop="launchctl unload -w ~/Library/LaunchAgents/homebrew.mxcl.php56.plist" | |
alias php-fpm.restart='php-fpm.stop && php-fpm.start' | |
alias mysql.start="launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist" | |
alias mysql.stop="launchctl unload -w ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist" | |
alias mysql.restart='mysql.stop && mysql.start' | |
alias nginx.logs.error='tail -250f /usr/local/etc/nginx/logs/error.log' |