Let's preface this by saying, that I'm indeed a very, very evil man, and the following does not correspond in any way shape or form to a real setup in the acutal realm of living breathing things. Nor should it. Ever.
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 | |
# Build the esp 8266 open-sdk and related tools in current directory. | |
# | |
# Tested on Ubuntu 16.04.1 and 14.04.4/5. | |
# It takes up to an hour to build and several GB of space, so be prepared! | |
# | |
# Use it with: | |
# wget -O esp-clone.sh https://gist.githubusercontent.com/con-f-use/d086ca941c2c80fbde6d8996b8a50761/raw && chmod +x esp-clone.sh && ./esp-clone.sh | |
# | |
# ToDo: Ask the user when install installing examples or checking for Ubuntu, make a -y option to proceed automatically |
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
Moved to https://github.com/con-f-use/img2ngrv |
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 | |
# Let's call this file 'mymodule.py' | |
# When run from the 'shell application' created by setuptools, | |
#+only doctests for `main()` get run, while `to_be_tested()` is | |
#+ignored `mymoduleapp -test`. | |
# Testing for both functions works, when run direcly as shell | |
# script, e.g. as `./mymodule.py --test` | |
# Used python version: Python 2.7.12 (setuptools 20.7.0) |
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/env bash | |
# Wrapper to use liquidprompt with bashit | |
# The path to this file should read '$BASH_IT/themes/liquidprompt/liquidprompt.theme.bash' | |
targetdir="$BASH_IT/themes/liquidprompt/liquidprompt" | |
gray="\[\e[1;90m\]" | |
# Get liquidprompt if not yet installed | |
cwd="$PWD" | |
if cd "$targetdir" &>/dev/null && git rev-parse --is-inside-work-tree &>/dev/null; then |
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/env bash | |
getbool() { | |
local in="${1:-no}" | |
if [[ "${in^^}" =~ ^(1|Y(ES)?|ON|T(RUE)?|ENABLE(ED)?)$ ]]; then | |
return 0 | |
fi | |
return 1 | |
} |
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
## Nodrama-Llama | |
$the_cow = <<EOC; | |
$thoughts | |
$thoughts | |
(\\/) | |
(_o | | |
/ | | |
\\ \\______ | |
\\ )o | |
/|----- | |
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
{ stdenv | |
, fetchFromGitHub | |
, python3 | |
, python3Packages | |
, wrapGAppsHook | |
, gobject-introspection | |
, gtk3 | |
, gdk-pixbuf | |
# Recommended Dependencies: | |
, unrar |
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
import urllib.parse | |
class Endpoint: | |
def __init__(self, uri, api): | |
self.m4ngl3 = dict(uri=uri, api=api) # prevent name collisions (with actual members called "uri" or "api", endpoints of these names couldn't be used - we can probably live without ones named "m4ngl3") | |
def __getitem__(self, name): | |
api, uri = self.m4ngl3["api"], self.m4ngl3["uri"] | |
key = api.canonize(uri, name) | |
return api._resources.setdefault(key, Endpoint(key, api)) |
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
--- a/paramiko/auth_handler.py 2022-04-26 15:37:37.433185610 +0200 | |
+++ b/paramiko/auth_handler.py 2022-04-26 15:37:25.083111811 +0200 | |
@@ -22,6 +22,7 @@ | |
import weakref | |
import time | |
+import re | |
from paramiko.common import ( | |
cMSG_SERVICE_REQUEST, |
OlderNewer