This file contains hidden or 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/env python3 | |
import json | |
import sys | |
def get_streams(): | |
if len(sys.argv) == 1: | |
yield sys.stdin | |
return |
This file contains hidden or 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/awk -f | |
function red(s) { | |
return "\033[1;31m" s "\033[0m " | |
} | |
/idle_age=.,/ { $0 = red($0) } | |
{ print } |
This file contains hidden or 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 | |
git init | |
git config receive.denyCurrentBranch ignore | |
touch .git/hooks/post-receive | |
chmod +x .git/hooks/post-receive | |
cat >> .git/hooks/post-receive << EOF | |
#!/bin/bash |
This file contains hidden or 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 | |
# defaults | |
timeout=2s | |
function usage() { | |
echo "USAGE: $0 [-i interval] <command>" | |
echo " Retry running <command> every <interval> until it succeeds" | |
} |
This file contains hidden or 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
#include <cstdio> | |
#include <setjmp.h> | |
#include <signal.h> | |
#include <unistd.h> | |
class Timeout; | |
static Timeout * global_timeout_instance = 0; | |
class Timeout { | |
public: |
This file contains hidden or 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
- hosts: all | |
tasks: | |
- name: Update apt | |
apt: | |
update_cache: yes | |
become: yes | |
become_user: root | |
tags: | |
- os_neutron-tox | |
- overlay-test |
This file contains hidden or 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/perl | |
my $BRIDGE="br-int"; | |
#Ping fe:16:3e:86:fc:28/10.0.0.10 -> fa:16:3e:cc:bd:da/10.0.0.9 | |
#my $INPUT_FLOW='in_port=10,dl_src=fa:16:3e:86:fc:28,dl_dst=fa:16:3e:cc:bd:da,icmp,nw_src=10.0.0.10,nw_dst=10.0.0.9'; | |
my $IN_PORT="10"; | |
my $ETH_DST="fa:16:3e:86:fc:28"; | |
my $IP_DST="10.0.0.10"; | |
#my $ETH_DST="fa:16:3e:a6:5a:a5"; | |
#my $IP_DST="10.0.0.1"; |