Skip to content

Instantly share code, notes, and snippets.

View WingsLikeEagles's full-sized avatar
💭
No2FA

WingsLikeEagles

💭
No2FA
View GitHub Profile
@WingsLikeEagles
WingsLikeEagles / profile.ps1
Created November 12, 2020 21:24 — forked from sixeyed/profile.ps1
PowerShell profile with a Linux-style prompt and aliases for common Docker commands
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)
@WingsLikeEagles
WingsLikeEagles / webserver
Created November 3, 2020 21:49 — forked from toonetown/webserver
A quick-and-dirty python web server that also handles SSL and client certificate authentication
#!/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():
@WingsLikeEagles
WingsLikeEagles / WeMo.py
Created June 29, 2020 02:15 — forked from pruppert/WeMo.py
This is a python script that can control a local WeMo switch as long as you know the local IP of the WeMo. The script is a fork of pdumoulin's blinky: https://github.com/pdumoulin/blinky.
#!/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.
@WingsLikeEagles
WingsLikeEagles / make-kiosk.sh
Created August 1, 2019 22:49 — forked from voor/make-kiosk.sh
Configuring Kiosk Mode on CentOS
#!/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: marcin@marcinwilk.eu
# www.marcinwilk.eu
# Marcin Wilk