1.json
contains data retrieved from the Instagram API.data
is an array of media matching the query posted to Instagram's REST API, in a JSON array.- Each media element contains metadata for a photo/video posted to Instagram
.data[]
loops over each media object in the JSON file, letting us process each element|
works like a regular *nix pipe, taking the output of the previous operator and passing it on to the next one.select()
filters through objects depending on the rule passed to it..tags[]
returns an array of tags for each media.contains()
returns true if the current object passed to it contains the string passed as a parameter..tags[] | contains("100happydays")
iterates over all the tags associated with the media object and returns true if the current tag matches the string100happydays
..select( .tags[] | contains("100happydays") )
filters all media objects that contain the tag100happydays
.images.standard_resolution.url
now
This file contains 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
Credits to: | |
# Airtel specific | |
https://github.com/paambaati/airtel-usage | |
https://gist.github.com/r4um/3414116 | |
# General Bash help | |
StackOverflow | |
nixCraft/Vivek Gite |
This file contains 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
# Harry Potter comes to your bash | |
# All ye muggles, make life a little magical | |
accio() { | |
# Bring files here (to $CWD) | |
mv $@ .; | |
}; | |
stupefy() { | |
# Temporarily stop processes |
This file contains 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
<TaskerData sr="" dvi="1" tv="4.8u5m"> | |
<Task sr="task49"> | |
<cdate>1470858510504</cdate> | |
<edate>1470869694940</edate> | |
<id>49</id> | |
<nme>Notification Sms Cleanup</nme> | |
<pri>100</pri> | |
<Action sr="act0" ve="7"> | |
<code>355</code> | |
<Str sr="arg0" ve="3">%sms_retention_rules</Str> |
This file contains 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
;; A demo of Extempore (https://github.com/digego/extempore) | |
;; Based on tutorials from http://benswift.me/extempore-docs/index.html | |
;; and tutorials from the source (https://github.com/digego/extempore/tree/master/examples) | |
;; Step 1 - Fetch source and compile | |
;; Step 2 - Configure the editor and get a hang of the keyboard shortcuts | |
;; Step 3 - Evaluate the following code samples one block at a time | |
;; extempore basics | |
;; What is the time now |
This file contains 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
echo '1 | |
2 | |
3 | |
4 | |
5' | awk '{sum += $0} END {print sum}' |
This file contains 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
##################### Elasticsearch Configuration Example ##################### | |
# This file contains an overview of various configuration settings, | |
# targeted at operations staff. Application developers should | |
# consult the guide at <http://elasticsearch.org/guide>. | |
# | |
# The installation procedure is covered at | |
# <http://elasticsearch.org/guide/en/elasticsearch/reference/current/setup.html>. | |
# | |
# Elasticsearch comes with reasonable defaults for most settings, |
This file contains 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
%: | |
convert postit-blank.png -draw "text 25, 60 $(filter-out $@,$(MAKECMDGOALS))" -pointsize 40 | lp |
This file contains 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
$ ln -s /var/www/wordpress /path/to/wordpress/directory |
This file contains 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
$ locate [expression] |
NewerOlder