133.11.240.193
1?: [LOCALHOST] pmtu 1500
1: gateway 1.652ms
public class trimShell | |
{ | |
public static void doShowTrim(String s, String regex) { | |
System.out.println("in: '"+s+"' out: '" +s.replaceAll(regex,"_").toLowerCase()); | |
} | |
public static void main (String[] args) | |
{ | |
String regex = "[^A-Za-z0-9_]"; | |
System.out.println("Regex used: '"+regex+"'"); |
docker run -it --name=qt5 -v $(pwd):/quassel ubuntu:14.04 | |
1 apt-get install libssl-dev | |
2 mkdir qt5 | |
3 cd qt5/ | |
4 apt-key update && apt-get update && apt-get install -y build-essential perl python git | |
5 cd .. | |
6 cd qt5/ | |
7 git clone git://code.qt.io/qt/qt5.git | |
8 cd qt5/ |
import datetime, sys | |
if len(sys.argv) != 3: | |
print "usage: ", sys.argv[0], "<in> <out>" | |
exit() | |
instr="00:01:57.640" | |
instr=sys.argv[1] | |
ints=datetime.datetime.strptime(instr, "%H:%M:%S.%f") |
path pre_shared_key "/etc/racoon/psk.txt"; | |
path certificate "/etc/racoon/certs"; | |
timer { | |
# NOTE: varies between carriers | |
natt_keepalive 45 sec; | |
} | |
listen { | |
isakmp 78.47.68.26[500]; | |
isakmp_natt 78.47.68.26[4500]; |
import logging | |
import os | |
import sys | |
from django.core.wsgi import get_wsgi_application | |
from django.conf import settings | |
from wsgiref.simple_server import make_server | |
from werkzeug.wsgi import SharedDataMiddleware,DispatcherMiddleware | |
from werkzeug.exceptions import NotFound | |
from werkzeug.utils import redirect |
#!/bin/sh | |
# Author: bri | |
# Will add all interfaces in state DOWN to /etc/network/interfaces.d/auto.cfg | |
# with option dhcp | |
## for iface in `ls /sys/class/net/`; do | |
/sbin/ip -br l | awk '/DOWN/{print $1}' | | |
while read dev | |
do |
#!/usr/bin/env python | |
import paho.mqtt.client as mqtt | |
import json | |
import time | |
import requests | |
nodename="sonoff" | |
apikey="--xx--" | |
url="https://emoncms.org/input/post" |
#!/usr/bin/python3 | |
# | |
# Simple Bloom filter implementation in Python 3 | |
# Copyright 2017 Hector Martin "marcan" <marcan@marcan.st> | |
# Licensed under the terms of the MIT license | |
# | |
# Written to be used with the Have I been pwned? password list: | |
# https://haveibeenpwned.com/passwords | |
# | |
# Download the pre-computed filter here (968MB, k=11, false positive p=0.0005): |