This file contains hidden or 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
[ | |
{"from": 1, "to": 2}, | |
{"from": 1, "to": 3}, | |
{"from": 2, "to": 4}, | |
{"from": 2, "to": 5} | |
] |
This file contains hidden or 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
pi@pi-top ~ $ wget https://s3-us-west-2.amazonaws.com/pi-top/pt-battery-fw-update_v2 | |
--2016-04-19 07:43:27-- https://s3-us-west-2.amazonaws.com/pi-top/pt-battery-fw-update_v2 | |
Resolving s3-us-west-2.amazonaws.com (s3-us-west-2.amazonaws.com)... 54.231.168.46 | |
Connecting to s3-us-west-2.amazonaws.com (s3-us-west-2.amazonaws.com)|54.231.168.46|:443... connected. | |
HTTP request sent, awaiting response... 200 OK | |
Length: 57760 (56K) [application/octet-stream] | |
Saving to: `pt-battery-fw-update_v2' | |
100%[==============================================================================================================================>] 57,760 70.7K/s in 0.8s |
I hereby claim:
- I am mojoaxel on github.
- I am wunschik (https://keybase.io/wunschik) on keybase.
- I have a public key whose fingerprint is 68D7 252B 3D5A 0C27 FA35 64E5 6B87 D9D3 813D AA42
To claim this, I am signing this object:
This file contains hidden or 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 | |
# Download image from AirCam | |
curl --insecure -o image.jpg https://XXX.XXX.XXX.XXX/snapshot.cgi?chan=1 | |
# create folder archive if it doesn't already exist | |
mkdir -p archive | |
# save image to archive | |
cp image.jpg archive/webcam_$(date +"%Y%m%d-%H%M").jpg |
This file contains hidden or 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
SET foreign_key_checks = 0; |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Flot-Events Example</title> | |
<!-- required --> | |
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.2/jquery.min.js" ></script> | |
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/flot/0.8.3/jquery.flot.min.js"></script> | |
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/flot/0.8.3/jquery.flot.selection.min.js"></script> |
This file contains hidden or 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
<?xml version="1.0" encoding="UTF-8"?> | |
<scriptfile> | |
<settings program="actiona" version="3.9.1" scriptVersion="1.1.0" os="GNU/Linux"/> | |
<actions> | |
<action name="ActionClick" version="1.0.0"/> | |
<action name="ActionLoop" version="1.0.0"/> | |
<action name="ActionWriteText" version="1.0.0"/> | |
<action name="ActionKey" version="1.0.0"/> | |
<action name="ActionOpenURL" version="1.0.0"/> | |
<action name="ActionVariable" version="1.0.0"/> |
This file contains hidden or 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 | |
ps -ef | grep $1 | grep -v grep | awk '{print $2}' | xargs kill -9 |
This file contains hidden or 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
/* | |
* Retina Images using Handlebars.js | |
* | |
* Created by [Makis Tracend](@tracend) | |
* Released under the [MIT license](http://makesites.org/licenses/MIT) | |
* | |
* Usage: <img src="{{retina 'http://mydoma.in/path/to/image.jpg'}}"> | |
*/ | |
Handlebars.registerHelper('retina', function( src ) { | |