Skip to content

Instantly share code, notes, and snippets.

View r3dsm0k3's full-sized avatar
:octocat:
"cool text here"

Ajith r3dsm0k3

:octocat:
"cool text here"
  • Amsterdam
View GitHub Profile
@r3dsm0k3
r3dsm0k3 / k3s-multipass.sh
Created January 13, 2020 15:47 — forked from lucj/k3s-multipass.sh
Setup a k3s kubernetes cluster using Multipass VMs
for node in node1 node2 node3;do
multipass launch -n $node
done
# Init cluster on node1
multipass exec node1 -- bash -c "curl -sfL https://get.k3s.io | sh -"
# Get node1's IP
IP=$(multipass info node1 | grep IPv4 | awk '{print $2}')
@r3dsm0k3
r3dsm0k3 / sanction_inconclusive.xml
Created February 14, 2019 14:59
for the person with data
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body>
<KYCCheckResponse xmlns="http://tempuri.org/">
<KYCCheckResult xmlns:a="http://schemas.datacontract.org/2004/07/NeuromancerLibrary.DataContracts" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<a:ClientProvidedData>
<a:ClientReference i:nil="true"/>
<a:ClientSubaccount i:nil="true"/>
<a:ClientUser i:nil="true"/>
<a:RefersToServiceCallReference i:nil="true"/>
</a:ClientProvidedData>
@r3dsm0k3
r3dsm0k3 / installer.sh
Created November 15, 2018 16:48
Clair docker static analysis installer on mac
set -e
#install go and glide for scanner
#create dirs if not exists
mkdir -p $HOME/Go
mkdir -p $HOME/Go/bin
mkdir -p $HOME/Go/src/github.com/user
#setup path
export GOPATH=$HOME/Go
@r3dsm0k3
r3dsm0k3 / gist:42492d6180f655694aca
Last active November 22, 2015 05:49
zzuf on arm64
Ajiths-iPad:~ root# sed -i 's/\x00\x30\x93\xe4/\x00\x30\x93\xe5/g;s/\x00\x30\xd3\xe4/\x00\x30\xd3\xe5/g;' /usr/bin/zzuf
Ajiths-iPad:~ root# ldid -S /usr/bin/zzuf
Ajiths-iPad:~ root# zzuf -h
Usage: zzuf [-aAcdimnqSvx] [-s seed|-s start:stop] [-r ratio|-r min:max]
[-f mode] [-D delay] [-j jobs] [-C crashes] [-B bytes] [-a list]
[-t seconds] [-T seconds] [-M mebibytes] [-b ranges] [-p ports]
[-P protect] [-R refuse] [-l list] [-I include] [-E exclude]
[PROGRAM [--] [ARGS]...]
zzuf -h | --help
zzuf -V | --version
@r3dsm0k3
r3dsm0k3 / gist:7bedbacecdaf82dfbaa6
Created January 25, 2015 18:38
Recording at 240p without audio and HD with audio. gstreamer, raspberry pi with Logitech C920
gst-launch-1.0 -v -e uvch264src iframe-period=3000 device=/dev/video1 name=src auto-start=true src.vidsrc ! queue ! video/x-h264,width=1920,height=1080,framerate=30/1 ! \
h264parse ! queue ! tee name=t ! queue ! omxh264dec ! \
video/x-raw,width=320,height=240,framerate=30/1 ! omxh264enc ! video/x-h264,width=320,height=240,framerate=30/1 ! \
h264parse ! flvmux ! filesink location=1.flv t. ! \
h264parse ! flvmux streamable=true name=flvmuxer alsasrc device="plughw:1" ! \
audio/x-raw,format=\(string\)S16LE,rate=44100,channels=2 ! queue ! \
voaacenc bitrate=44100 ! aacparse ! queue ! flvmuxer. flvmuxer. ! filesink location=hd.flv
pi@pi01 ~/gst-omx $ gst-inspect-1.0 eglglessink
Factory Details:
Rank secondary (128)
Long-name EGL/GLES vout Sink
Klass Sink/Video
Description An EGL/GLES Video Output Sink Implementing the VideoOverlay interface
Author Reynaldo H. Verdejo Pinochet <reynaldo@collabora.com>, Sebastian Dröge <sebastian.droege@collabora.co.uk>
Plugin Details:
Name eglglessink
@r3dsm0k3
r3dsm0k3 / test.php
Created March 1, 2012 11:58
Sucker Strings
<?php
$array = array('\x4f\160\x65\162\x61\40\x4d\151\x6e\151');
foreach ($array as $key => $value) {
// doesn't work.
$array[$key] = "$value";
// doesn't work
$array[$key] = sprintf($value);
}
//Why does this display Opera Mini ?