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
plugins: | |
debug: | |
shortCut: Shift-D | |
description: kubectl debug | |
scopes: | |
- pods | |
command: bash | |
background: false | |
args: | |
- -c |
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
version: "3.7" | |
services: | |
hello: | |
image: hypriot/rpi-busybox-httpd | |
ports: | |
- "4000:80" | |
deploy: | |
replicas: 1 | |
restart_policy: |
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 | |
which gfind || brew install findutils | |
gfind ~/Applications/ ~/Library/ /usr/local/ -type l -lname '/opt/homebrew-cask/*' -printf "ln -vsf '%l' '%p'\n" |\ | |
sed s,/opt/homebrew-cask/,/usr/local/, |\ | |
bash | |
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
diff --git a/Products/LDAPUserFolder/LDAPUserFolder.py b/Products/LDAPUserFolder/LDAPUserFolder.py | |
index 8402da3..60f9634 100644 | |
--- Products/LDAPUserFolder/LDAPUserFolder.py | |
+++ Products/LDAPUserFolder/LDAPUserFolder.py | |
@@ -19,6 +19,7 @@ $Id$ | |
import logging | |
import os | |
import random | |
+import re | |
try: |
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
[buildout] | |
... | |
parts = | |
... | |
patches | |
... | |
[patches] | |
recipe = collective.recipe.patch |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>KeepAlive</key> | |
<true/> | |
<key>Label</key> | |
<string>com.devpi.devpi-server</string> | |
<key>ProgramArguments</key> | |
<array> |
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
from pytest import fixture, Class | |
@fixture(scope="session", autouse=True) | |
def sort_tests_by_class_name(request): | |
session = request.node | |
key = lambda item: item.getparent(Class).obj.__name__ | |
session.items[:] = sorted(session.items, key=key) |
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
from operator import attrgetter | |
def counter(): | |
count = 0 | |
while True: | |
yield count | |
count += 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
from tribaspace.router import Router | |
path = '/foo/bar' | |
newreq = Request.blank(path=path, base_url=request.application_url) | |
newreq.registry = registry | |
markup = Router(registry).handle_request(newreq) | |
print markup.body |
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 | |
from socket import socket, gethostbyname, AF_INET, SOCK_STREAM | |
from sys import argv, exit | |
from time import sleep | |
def waitfor(*ports, **kw): | |
timeout = kw.get('timeout', 30) | |
host = kw.get('host', 'localhost') |
NewerOlder