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?
// we have an array, with items | |
const items = [ | |
'ethan', | |
'larry', | |
'katrijn', | |
'janice' | |
]; | |
// To go and print all of them | |
/* Regular, old way of doing it */ console.log("\n\n 1") |
# https://stackoverflow.com/questions/2668678/importing-csv-with-line-breaks-in-excel-2007 | |
gawk -v RS='"' 'NR % 2 == 0 { gsub(/\n/, "") } { printf("%s%s", $0, RT) }' input.csv > output.fixed.csv |
const common = require('./common') | |
module.exports.add = (e) => common.add(e) | |
module.exports.get = () => common.get() |
#!/bin/bash | |
# Auto suspend and wake-up script | |
# | |
# Puts the computer on standby and automatically wakes it up at specified time | |
# | |
# Written by Romke van der Meulen <redge.online@gmail.com> | |
# Minor mods fossfreedom for AskUbuntu | |
# | |
# Takes a 24hour time HH:MM as its argument |
# List distributed by iblocklist.com | |
Malicious:1.192.128.23-1.192.128.23 | |
Malicious:5.12.220.33-5.12.220.33 | |
Malicious:5.101.168.211-5.101.168.211 | |
Malicious:5.178.68.196-5.178.68.196 | |
Malicious:5.189.133.185-5.189.133.185 | |
Malicious:5.189.143.31-5.189.143.31 | |
Malicious:5.189.146.159-5.189.146.159 | |
Malicious:5.196.242.78-5.196.242.78 |
// Let's say we have an array of candy | |
var all_candy = [ | |
{ | |
name: 'Mars', | |
price: 1, | |
category: 'chocolate' | |
}, | |
{ | |
name: 'Snickers', |
# 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 |
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?
<?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', |
#!/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" \ |