The popular open-source contract for web professionals by Stuff & Nonsense
- Originally published: 23rd December 2008
- Revised date: March 15th 2016
- Original post
# Open and Join Hangout automatically on Mac OS X + Google Chrome :) | |
# It's good to join standup every day automatically with Automator. | |
open "https://plus.google.com/hangouts/_/domain.com/user?authuser=<email_to_join_with>" | |
osascript -e " | |
tell application \"Google Chrome\" | |
execute front window's active tab javascript \"!function(){function e(e){var t=document.createElement('script');t.setAttribute('src','https://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js'),t.addEventListener('load',function(){var t=document.createElement('script');t.textContent='('+e.toString()+')();',document.body.appendChild(t)},!1),document.body.appendChild(t)}function t(){function e(e,t){evt=document.createEvent('MouseEvents'),evt.initMouseEvent(t,!0,!0,document.defaultView,0,0,0,0,0,!1,!1,!1,!1,0,e),e.dispatchEvent(evt)}function n(t){e(t,'mouseover'),e(t,'mousedown'),e(t,'mouseup'),e(t,'mouseout')}var o=30;\$('div[role=button]').each(function(e,t){0>=o||\$(t).html().indexOf('Join')>=0&&(n(t),o=0)}),o-- >0&&setTimeout |
sudo apt-get install software-properties-common | |
sudo add-apt-repository ppa:openjdk-r/ppa -y | |
sudo apt-get update | |
sudo apt-get install openjdk-8-jdk -y | |
sudo update-alternatives --config java | |
sudo update-alternatives --config javac | |
# git credit | |
git commit --amend --author "Author <email>" -C HEAD | |
# git rebase for branch | |
git rebase -i {base-branch} |
This simple script will take a picture of a whiteboard and use parts of the ImageMagick library with sane defaults to clean it up tremendously.
The script is here:
#!/bin/bash
convert "$1" -morphology Convolve DoG:15,100,0 -negate -normalize -blur 0x1 -channel RBG -level 60%,91%,0.1 "$2"
Latency Comparison Numbers | |
-------------------------- | |
L1 cache reference 0.5 ns | |
Branch mispredict 5 ns | |
L2 cache reference 7 ns 14x L1 cache | |
Mutex lock/unlock 25 ns | |
Main memory reference 100 ns 20x L2 cache, 200x L1 cache | |
Compress 1K bytes with Zippy 3,000 ns 3 us | |
Send 1K bytes over 1 Gbps network 10,000 ns 10 us | |
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD |
ror, scala, jetty, erlang, thrift, mongrel, comet server, my-sql, memchached, varnish, kestrel(mq), starling, gizzard, cassandra, hadoop, vertica, munin, nagios, awstats
#!/usr/bin/env bash | |
# bash 4.1.5(1) Linux Ubuntu 10.04 Date : 2013-07-11 | |
# | |
# _______________| netspeed : check download speed via command line. | |
# | |
# Usage: netspeed [tokyo, london, usw, use, east, west, URL] | |
# ^default U.S. west coast. | |
# [ -speed_KB/sec ] | |
# ^negation activates the Mbps converter. | |
# |