This file contains 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
function Prompt(){ | |
$W = Split-Path -leaf -path (Get-Location) | |
$prompt = Write-Prompt "$($env:UserName)@$($env:ComputerName):" -ForegroundColor Green | |
$prompt += Write-Prompt $W -ForegroundColor DarkCyan | |
$prompt += Write-Prompt '>' | |
return ' ' | |
} | |
function Remove-StoppedContainers { | |
docker container rm $(docker container ls -q) |
This file contains 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/python | |
import BaseHTTPServer, SimpleHTTPServer, ssl, argparse, re | |
from tempfile import mkdtemp | |
from shutil import rmtree | |
from contextlib import contextmanager | |
from OpenSSL import crypto | |
from os.path import exists, join, abspath | |
@contextmanager | |
def TemporaryDirectory(): |
This file contains 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/python | |
import re | |
import urllib2 | |
# Configuration: | |
# Enter the local IP address of your WeMo in the parentheses of the ip variable below. | |
# You may have to check your router to see what local IP is assigned to the WeMo. | |
# It is recommended that you assign a static local IP to the WeMo to ensure the WeMo is always at that address. | |
# Uncomment one of the triggers at the end of this script. |
This file contains 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 | |
# KIOSK generator for Scientific Linux and CentOS (versions 5; 6 and 7) | |
# Created using Scientific Linux | |
# Wasn't made and never tested on different distros than SL/CentOS/EL! | |
# Version 1.4 for i386 and x86_64 | |
# | |
# Feel free to contact me: [email protected] | |
# www.marcinwilk.eu | |
# Marcin Wilk |