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 | |
set -o nounset | |
set -o errexit | |
iface=any | |
function show_usage() { | |
echo "Usage: `basename $0` HOST EXPR" | |
echo "Example: `basename $0` myarg" |
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
from email.mime.multipart import MIMEMultipart | |
from email.mime.text import MIMEText | |
import smtplib | |
import sys | |
msg = MIMEMultipart() | |
server = sys.argv[1] | |
from_addr = sys.argv[2] | |
to_addr = sys.argv[3] |
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
perl -e ' | |
use IO::Socket; | |
my $addr = $ARGV[0]; | |
my $port = $ARGV[1]; | |
print("Connecting...\n"); | |
$socket = IO::Socket::INET->new(PeerAddr => $addr , PeerPort => $port , Proto => 'tcp' , Timeout => 1) | |
or die "Could not connect to $remote_host:$remote_port : $@\n"; | |
print("Connected\n"); |
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
sel_tr = RPR_GetSelectedTrack(0, 0) | |
snd = RPR_CreateTrackSend(sel_tr, None) | |
cat = 1 # positive = hwout | |
hwout_idx = 3 | |
param_name = 'I_DSTCHAN' | |
RPR_SetTrackSendInfo_Value(sel_tr, cat, snd, param_name, hwout_idx) |
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/env python | |
from __future__ import print_function | |
import sys | |
import time | |
try: | |
import socketserver | |
except ImportError: | |
import SocketServer as socketserver |
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/env python3 | |
import os | |
import sys | |
import time | |
import signal | |
signum_to_name = {sig.value: sig.name for sig in signal.Signals} | |
def receive_signal(signum, stack): |
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
python -c ' | |
from __future__ import print_function | |
import socket | |
import sys | |
addr = sys.argv[1] | |
port = int(sys.argv[2]) | |
ipaddr = socket.gethostbyname(addr) |
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
<ValhallaUberMod pluginVersion="1.0.2" presetName="SSTBuildingBlock" Mix="1" Depth="0.648000002" StereoWidth="0.542500019" Delay="0.271200001" Feedback="0" Spread="1" Slope="0.5" Skew="0.0879999995" Random="1" TapGain="0.5" Diffusion="1" DiffSize="0.0877550989" DiffModRate="0.0490490496" DiffModDepth="0.5" LowCut="0.0502512567" HighCut="0.287939698" SpatialXover="0.145728648" DetuneRate="0.133133128" DetuneDepth="0.5" VibratoRate="0.258145362" VibratoDepth="0.151999995" OverMod="0" DriveInGain="0" DriveOutGain="1" DriveNoiseGain="0.333333343" FeedbackRotate="0.5" SmoothingTime="0.0990990996" ColorMode="0" DelaySync="0" type="0.333333343" DiffEnable="0" Drive="1" DrivePrePost="0" Speed="0" InputPan="0.25" ShiftFreq="0.100000001"/> |
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 | |
alias sox='/opt/local/bin/sox' | |
while [ $# -gt 0 ]; do | |
[ ! -f "$1" ] && { echo "Invalid path: $1" >&2; continue; } | |
clean_path=$(printf '%s' "$1" | sed 's/.[^.]*$//') | |
for bits in 8 16 24 32; do | |
bits_mod=$(($bits / 8)) | |
for channels in 1 2; do |
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
input { | |
file { | |
path => "/home/testuser/work/sandbox/awslog/*.log" | |
type => "elb" | |
start_position => "beginning" | |
sincedb_path => "log_sincedb" | |
} | |
} | |
filter { |