docker build -t node-redirector .
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title></title> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<style> | |
/* http://meyerweb.com/eric/tools/css/reset/ | |
v2.0 | 20110126 | |
License: none (public domain) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
SLEEPTIME=5 | |
RUNTIME_IN_SECONDS=28800 | |
COUNTER=0 | |
DAYSTAMP=$(date +%Y-%m-%d) | |
while [ "$COUNTER" -lt "$RUNTIME_IN_SECONDS" ] | |
do | |
TIMESTAMP=$(date +%Y-%m-%d-%H-%M-%S) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
buffer = "" | |
buffer += "<some xmls stuff>" | |
buffer += " <more xml stuff>" | |
for i in (1,2,3,4): | |
buffer += " <tag " + i | |
buffer += "<end xml stuff" | |
print(buffer) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
onion | |
sweet potato | |
ginger | |
garlic | |
chili | |
lentils | |
coriander | |
cilantro | |
cumin seeds | |
fennel seeds |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
from Tkinter import * | |
import sys | |
answer = "" | |
def center(toplevel): | |
toplevel.update_idletasks() | |
w = toplevel.winfo_screenwidth() | |
h = toplevel.winfo_screenheight() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#---------------------------------------------------------------- | |
w_metadata python27 dlls \ | |
title="Python Interpreter, version 2.7.10" \ | |
publisher="Python Software Foundaton" \ | |
year="2009" \ | |
media="download" \ | |
file1="python-2.7.10.msi" \ | |
installed_exe1="c:/Python27/python.exe" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
main() { | |
date | |
countdown | |
#check adb server running | |
ps aux | grep '^ro[o]t.*adb .*server' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# sudo mkdir -p /docker-services/smb/data | |
# sudo chmod -R 777 /docker-services/smb | |
# cat /etc/init/docker-smb.conf | |
start on filesystem and started docker | |
stop on runlevel [!2345] | |
respawn | |
script | |
/usr/bin/docker stop smb-server-container || true | |
/usr/bin/docker rm smb-server-container || true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Base Image: | |
docker.nanofab.utah.edu/opencoral-utah:1.2.2 | |
docker pull docker.nanofab.utah.edu/opencoral-utah:1.2.2 | |
mkdir /tmp/keys | |
cp ~/.ssh/id_rsa.pub /tmp/keys | |
docker run -d --name opencoral-utah-container -p 2233:22 \ | |
-v /tmp/keys:/coral_public_key/ \ |