git init
or
<?php | |
header("Content-Type: application/rss+xml; charset=utf-8"); | |
error_reporting(E_ALL); | |
ini_set("display_errors", 0); | |
define('STEAM_USER', $_GET['u']); | |
define('LIST_URL', "http://steamcommunity.com/id/".STEAM_USER."/screenshots/?appid=0&sort=newestfirst&browsefilter=myfiles&view=grid"); | |
include('extlib/ganon/ganon.php'); |
Vagrant.configure(2) do |config| | |
config.vm.box = 'ubuntu/trusty64' | |
config.vm.provider 'virtualbox' do |v| | |
v.memory = 4096 | |
v.cpus = 8 | |
end | |
config.vm.network 'private_network', ip: '192.168.33.10' | |
config.vm.hostname = 'build.vagrant.stellar-ops.com' |
#!/bin/sh | |
# setup ~/.pgpass to allow passwordless connection to postgres | |
# keep last 30 executions for each job | |
KEEP=30 | |
cd /var/lib/rundeck/logs/rundeck | |
JOBS=`find . -maxdepth 3 -path "*/job/*" -type d` |
#!/bin/bash | |
## file to upload. | |
S3_UPLOAD_FILE=some/path/file.txt | |
## Specify the bucket name here. This can be found in the S3 console | |
S3_BUCKET=bucket name here | |
## The desired path relative to the root of the bucket. All folders must be forward slash '/' separated | |
S3_DESTINATION_FILE=folder/folder2/file.txt |
package main | |
import ( | |
"fmt" | |
"io" | |
"io/ioutil" | |
"net" | |
"os" | |
"strings" |
Simple guide for setting up OTG modes on the Raspberry Pi Zero - By Andrew Mulholland (gbaman).
The Raspberry Pi Zero (and model A and A+) support USB On The Go, given the processor is connected directly to the USB port, unlike on the B, B+ or Pi 2 B, which goes via a USB hub.
Because of this, if setup to, the Pi can act as a USB slave instead, providing virtual serial (a terminal), virtual ethernet, virtual mass storage device (pendrive) or even other virtual devices like HID, MIDI, or act as a virtual webcam!
It is important to note that, although the model A and A+ can support being a USB slave, they are missing the ID pin (is tied to ground internally) so are unable to dynamically switch between USB master/slave mode. As such, they default to USB master mode. There is no easy way to change this right now.
It is also important to note, that a USB to UART serial adapter is not needed for any of these guides, as may be documented elsewhere across the int
# npm using https for git | |
git config --global url."https://github.com/".insteadOf git@github.com: | |
git config --global url."https://".insteadOf git:// | |
# npm using git for https | |
git config --global url."git@github.com:".insteadOf https://github.com/ | |
git config --global url."git://".insteadOf https:// |
//Embed ... | |
type Embed struct { | |
*discordgo.MessageEmbed | |
} | |
// Constants for message embed character limits | |
const ( | |
EmbedLimitTitle = 256 | |
EmbedLimitDescription = 2048 | |
EmbedLimitFieldValue = 1024 |