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
| i386 : iPhone Simulator | |
| x86_64 : iPhone Simulator | |
| arm64 : iPhone Simulator | |
| iPhone1,1 : iPhone | |
| iPhone1,2 : iPhone 3G | |
| iPhone2,1 : iPhone 3GS | |
| iPhone3,1 : iPhone 4 | |
| iPhone3,2 : iPhone 4 GSM Rev A | |
| iPhone3,3 : iPhone 4 CDMA | |
| iPhone4,1 : iPhone 4S |
| #!/bin/sh | |
| # | |
| # Usage: whenever.sh [pattern] [command] | |
| # | |
| # Executes a command whenever files matching the pattern are closed in write | |
| # mode. "{}" in the command is replaced with the matching filename (via xargs). | |
| # Requires inotifywait from inotify-tools. | |
| # | |
| # For example, |
Steps to get Rails 4 saving its output to Syslog via Rsyslog. This assumes you are on CentOS, but should be pretty adaptable to any other distribution. Ruby 2.0+ is also required.
lograge and logstash-event to your Gemfile. Feel free to remove from production if you'd like to test it in development as well or something.production.rb with the lograge settings and set the logger to Syslog::Logger.conf files to /etc/rsyslog.d/. /etc/rsyslog.conf should have $IncludeConfig /etc/rsyslog.d/*.conf enabled, so it will load any additional configs from /etc/rsyslog.conf.One file for each domain, both www.example.com and example.com need separate files:
{
"applinks": {
"apps": [],
"details": {
"9JA89QQLNQ.com.apple.wwdc": {| ssh-keygen -t rsa -b 4096 -m PEM -f jwtRS256.key | |
| # Don't add passphrase | |
| openssl rsa -in jwtRS256.key -pubout -outform PEM -out jwtRS256.key.pub | |
| cat jwtRS256.key | |
| cat jwtRS256.key.pub |
| # base58_to_int and int_to_base58 loosely based on base58 gem by Douglas F. Shearer | |
| # https://github.com/dougal/base58 | |
| ALPHABET = "123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ".chars | |
| BASE = ALPHABET.size | |
| def base58_to_int(base58_val) | |
| base58_val.chars | |
| .reverse_each.with_index | |
| .reduce(0) do |int_val, (char, index)| |
| var bigint = require( 'big-integer' ) | |
| var lower = 'abcdefghijklmnopqrstuvwxyz'; | |
| var upper = lower.toUpperCase(); | |
| var numbers = '0123456789' | |
| var ig_alphabet = upper + lower + numbers + '-_' | |
| var bigint_alphabet = numbers + lower | |
| function toShortcode( longid ) |
Call this program with -s N to set a specific CPU.
Without -s, the thread will have the default affinity.
This program will print out the main threads CPU, the child threads CPU and the child threads affinity after optionally setting it.