An introduction to curl
using GitHub's API.
Makes a basic GET request to the specifed URI
curl https://api.github.com/users/caspyin
An introduction to curl
using GitHub's API.
Makes a basic GET request to the specifed URI
curl https://api.github.com/users/caspyin
x220:/srv/www/greptweet$ cat foo.cgi | |
#!/bin/bash | |
exec 2>&1 | |
cat <<END | |
Cache-Control: no-cache | |
Content-Type: text/html | |
END | |
./foo-script.sh & disown |
worker_processes 1; | |
error_log logs/error.log; | |
events { | |
worker_connections 1024; | |
} | |
#!/usr/bin/env bash | |
# To run: | |
# $ brew uninstall s3cmd && brew install s3cmd --HEAD | |
# $ s3cmd --configure # fill in w/ amazon account vars | |
# $ cd path/to/local/static/site | |
# $ wget https://gist.githubusercontent.com/tomfuertes/9175005/raw/make-website.sh | |
# $ bash make-website.sh | |
# | |
# NOTE: cfcreate takes ~15 minutes to run on AWS. |
#GoPro HERO4 Black Wifi Hacking, ep 2
By Maelstrom Napalm, @odwdinc and Konrad Iturbe
###Status URL:
http://10.5.5.9/gp/gpControl/status
####Protune EV compensation: Value | URL
You got your hands on some data that was leaked from a social network and you want to help the poor people.
Luckily you know a government service to automatically block a list of credit cards.
The service is a little old school though and you have to upload a CSV file in the exact format. The upload fails if the CSV file contains invalid data.
The CSV files should have two columns, Name and Credit Card. Also, it must be named after the following pattern:
YYYYMMDD
.csv.
# You don't need Fog in Ruby or some other library to upload to S3 -- shell works perfectly fine | |
# This is how I upload my new Sol Trader builds (http://soltrader.net) | |
# Based on a modified script from here: http://tmont.com/blargh/2014/1/uploading-to-s3-in-bash | |
S3KEY="my aws key" | |
S3SECRET="my aws secret" # pass these in | |
function putS3 | |
{ | |
path=$1 |
This is free and unencumbered software released into the public domain. | |
Anyone is free to copy, modify, publish, use, compile, sell, or | |
distribute this software, either in source code form or as a compiled | |
binary, for any purpose, commercial or non-commercial, and by any | |
means. | |
In jurisdictions that recognize copyright laws, the author or authors | |
of this software dedicate any and all copyright interest in the | |
software to the public domain. We make this dedication for the benefit |
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial, and by any means.
In jurisdictions that recognize copyright laws, the author or authors of this software dedicate any and all copyright interest in the software to the public domain. We make this dedication for the benefit