source: https://plus.google.com/112218872649456413744/posts/dfydM2Cnepe
Dizzying but invisible depth
You just went to the Google home page.
Simple, isn't it?
What just actually happened?
#!/bin/bash | |
# +----------------------------------------------------------------------+ | |
# | | | |
# | Set up Mac OS X to store temporary files in RAM rather than on disk.| | |
# | | | |
# | By Philipp Klaus <http://blog.philippklaus.de> | | |
# | | | |
# | Originally by Ricardo Gameiro <http://blogs.nullvision.com/?p=357> | | |
# | Changes by Daniel Jenkins | |
#!/usr/bin/php | |
<?php | |
$SSID=trim(`/System/Library/PrivateFrameworks/Apple80211.framework/Versions/A/Resources/airport -I | awk -F: '/ SSID:/ {print $2}' | sed -e 's/.*SSID: //'`); | |
if ( $SSID == 'TELENETHOTSPOT' ) | |
{ | |
if (`curl --cookie-jar /tmp/cookiejar \ | |
--data "c=std&lang=nl&checkterms=1&userid=USERNAME&password=PASSWORD&remember=on&terms=on" \ | |
--cookie "TNLANG=nl&TN_HS_COOKIE_DETECT=HELLO" \ | |
--max-time 60 \ | |
--user-agent "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:20.0) Gecko/20100101 Firefox/20.0" \ |
#!/usr/bin/env bash | |
set -o errexit | |
set -o nounset | |
set -o pipefail | |
# Automatically update your CloudFlare DNS record to the IP, Dynamic DNS | |
# Can retrieve cloudflare Domain id and list zone's, because, lazy | |
# Place at: | |
# /usr/local/bin/cf-ddns.sh |
<?php | |
$url = 'http://www.reportr.io'; | |
$apikey = 'API KEY'; | |
// Create a model, you only need to do this once, check afterwards at: | |
// http://www.reportr.io/api/API-KEY/models | |
$data = array( | |
'namespace' => 'ping', | |
'event' => 'ping', | |
'name' => 'Ping', |
source: https://plus.google.com/112218872649456413744/posts/dfydM2Cnepe
Dizzying but invisible depth
You just went to the Google home page.
Simple, isn't it?
What just actually happened?
# get cpu temp | |
/opt/vc/bin/vcgencmd measure_temp | |
# get lists with most cpu-consuming processes | |
top -b -n 1 | head -n 12 | |
ps -eo pcpu,pid,user,args | sort -k 1 -r | head -6 |
#!/bin/sh | |
BASEDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | |
# get all files and folders in the folder where this script is | |
for dir in $(ls $BASEDIR); do # loop trough each of them | |
if [ -d $dir ]; then # the file is a folder | |
if [ -d ~/$dir ]; then # it exists in our home folder as well | |
echo "$dir" | |
if [ -L ~/$dir ]; then | |
echo " - $dir is already symlinked!" | |
else |
#!/usr/bin/env bash | |
if [ $# -eq 0 ]; then | |
echo "please supply a servername: bootstrap-server.sh node.example.com" | |
exit 1 | |
fi | |
username=`whoami` | |
# copy public rsa key to server for root user | |
read -r -p "Transfer ssh public keys to server for root? [y/N] " response | |
if [[ $response =~ ^([yY][eE][sS]|[yY])$ ]]; then |
I hereby claim:
To claim this, I am signing this object:
// ==UserScript== | |
// @name Vimgolf challenge duplicate filter | |
// @namespace http://lry.be | |
// @contact [email protected] | |
// @version 0.2 | |
// @description Filtering duplicate entries and displaying the total unique entries at vimgolf | |
// @include http://vimgolf.com/challenges/* | |
// @include http://www.vimgolf.com/challenges/* | |
// ==/UserScript== |