Put this shell script somewhere in your path and run it by feeding it value/label pairs like this:
$ bars
10 one
20 two
30 three
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc | |
. ~/.bashrc | |
mkdir ~/local | |
mkdir ~/node-latest-install | |
cd ~/node-latest-install | |
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1 | |
./configure --prefix=~/local | |
make install # ok, fine, this step probably takes more than 30 seconds... | |
curl https://www.npmjs.org/install.sh | sh |
#!/usr/bin/env python | |
from __future__ import print_function | |
import sys | |
import subprocess | |
import argparse | |
import textwrap | |
import signal | |
stations = { |
#!/usr/bin/env bash | |
GIT_DIR_SAVE=$GIT_DIR ; unset GIT_DIR | |
GIT_WORK_TREE_SAVE=$GIT_WORK_TREE ; unset GIT_WORK_TREE | |
if [ ! -f "${OPENSHIFT_DATA_DIR}composer/bin/composer" ]; then | |
export COMPOSER_HOME="${OPENSHIFT_DATA_DIR}.composer" | |
echo $COMPOSER_HOME > ${OPENSHIFT_HOMEDIR}.env/user_vars/COMPOSER_HOME | |
echo "Installing composer" | |
curl -s https://getcomposer.org/installer | env - PATH="/usr/bin:$PATH" php -- --install-dir=$OPENSHIFT_DATA_DIR >/dev/null |
<?xml version="1.0" encoding="UTF-8"?> | |
<persistence xmlns="http://java.sun.com/xml/ns/persistence" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence | |
http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd" | |
version="1.0"> | |
<!-- derby --> |
import java.util.Random; | |
public class GC { | |
static class Foo { | |
byte[] raw; | |
public Foo(int n) { | |
raw = new byte[n]; | |
} | |
} |
The documentation online can be confusing, especially with config paths from old files floating around. | |
1. Download an image file for RetroPi (Ideally 2.5+) | |
2. Unzip the image file, plug in your SD card (likely /dev/sdb) | |
3. dd if=retropi.img of=/dev/sdb (this will erase your entire SD card) | |
4. Optional: increase the size of the new partition with gparted | |
System Setup | |
1. Add your ROMs to ~/RetroPi/roms/snes (which will cause your EmulationStation to now show the system in the menu). Be sure to unzip them. | |
2. (Not needed in RetroPie 2.5) Update your controller config, either by running ~/retropi_setup/retropi_setup.sh, or copying a known config to /opt/retropie/emulators/RetroArch/USB,2-axis8-buttongamepad.cfg |
First and foremost, this is not a document on how to create an environment for developing applications targeting Kubernetes as its runtime. This document is to outline the steps required to create an environment for contributing to Kubernetes based on recently setting up both Linux and Mac development environments. This document is written as if you will be creating your development enivonment on OS X but just know that things are basically the same when on other OSes. Of course, the installation and configuration of these tools will changed based on which OS you're on, and possibly other things, but the gist is that in this guide when you see that tool X is required, you follow whatever steps to install tool X on your OS.
[Desktop Entry] | |
Name=Visual Studio Code | |
Comment=Programming Text Editor | |
Exec=/usr/local/src/VSCode-linux-x64/code | |
Icon=/usr/local/src/VSCode-linux-x64/resources/app/resources/linux/code.png | |
Terminal=false | |
Type=Application | |
Categories=Programming; |
#!/bin/bash | |
set -e | |
command -v jq >/dev/null 2>&1 || { echo >&2 "I require jq but it's not installed (see: https://stedolan.github.io/jq/). Aborting."; exit 1; } | |
command -v curl >/dev/null 2>&1 || { echo >&2 "I require curl but it's not installed (see: https://curl.haxx.se/). Aborting."; exit 1; } | |
# Auth API Notes: http://forum.micasaverde.com/index.php/topic,24942.45.html | |
# New Server domains listing: http://forum.micasaverde.com/index.php/topic,25859.0.html | |
# Example implementations: | |
# https://github.com/rickbassham/vera/blob/master/vera_test.py | |
# https://github.com/amg0/ALTUI/blob/master/Remote/VeraloginAction.php |