Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
BASTION_IP=1.2.3.4
HOST_IP=10.0.2.235
SSH_KEY=~/.ssh/id_rsa
REMOTE_PORT=9990
LOCAL_PORT=9990
SSH_PROXY_PORT=2222
function ctrl_c() {
kill $TUNNEL_PID
@jam13
jam13 / hook.sh
Last active March 1, 2017 11:40
letsencrypt.sh hook for AWS Route53
#!/bin/bash
function deploy_challenge {
local DOMAIN="${1}" TOKEN_FILENAME="${2}" TOKEN_VALUE="${3}"
# This hook is called once for every domain that needs to be
# validated, including any alternative names you may have listed.
#
# Parameters:
# - DOMAIN
@jam13
jam13 / README.md
Last active April 25, 2016 09:22
SilverStripe lorempixel

SilverStripe lorempixel

Requires SilverStripe 3.3 (may work with other 3.x versions)

Usage

/thumbs/100/100 - Random 100 pixel square image /thumbs/100/100/faces - Random image from the faces folder /thumbs/100/100/faces/bo - Image called bo (Title) from the faces folder

@jam13
jam13 / update_skus.php
Last active August 29, 2015 14:23
Magento update skus + add barcodes
<?php
require_once 'abstract.php';
class Mage_Shell_Updateskus extends Mage_Shell_Abstract
{
/**
* Run script
*
*/
public function run()