I hereby claim:
- I am nyrahul on github.
- I am rahuljadhav (https://keybase.io/rahuljadhav) on keybase.
- I have a public key ASAMztGGPNImzJtw0dB_sZsMOL3zTEFoTt8wFfDwA1Stngo
To claim this, I am signing this object:
#include <stdio.h> | |
#define BUILD_BUG_ON(condition) ((void)sizeof(char[1 - 2 * !!(condition)])) | |
int main(void) | |
{ | |
struct t { | |
int x; | |
int y; | |
int z; |
# Generate ssh keys | |
ssh-keygen -t rsa | |
# Add my pub key as an authorized key on the remote host rahul@vbox20 | |
cat ~/.ssh/id_rsa.pub | ssh rahul@vbox20 'mkdir -p .ssh && cat >> .ssh/authorized_keys' |
#!/bin/bash | |
ignore_evts="futex switch clock_gettime io_getevents sched_getaffinity getrusage nanosleep rt_sigaction rt_sigprocmask ioctl sched_yield sigreturn times" | |
declare -A map | |
[[ "$1" == "" ]] && echo "Need container name as input" && exit 1 | |
[[ $UID -ne 0 ]] && echo "Need to exec as root" && exit 1 | |
[[ ! -x "$(which jq)" ]] && echo "Need jq command (try, apt install jq)" && exit 1 | |
[[ ! -x "$(which sysdig)" ]] && echo "Need sysdig command (try, apt install sysdig)" && exit 1 |
#! /usr/bin/env python | |
# Aim of this script is to send a vxlan tunneled HTTP request with spoofed | |
# identity and pass through the authz checks implemented in cilium-ebpf. | |
# Configuration you need to set correct: | |
# 1. The target pod address (dip, dport) to which you want to make unauthorized access | |
# 2. The source identity (identity = 8849 below) to spoof. Use `cilium identity | |
# list` to check valid identity values. | |
# 3. The target node's vxlan IP address (vxlan_ip) and port (vxlan_port = 8472 |
#!/bin/bash | |
# Switch all the remotes from https to git | |
# e.g, https://github.com/username/reponame.git -> [email protected]:username/reponame.git | |
switch4remote() | |
{ | |
url=`git remote get-url $1` | |
[[ ! $url =~ ^https ]] && echo "Remote [$1] might be on git already" && return 0 | |
path=`echo $url | sed -Ene 's#https://github.com/(.*)#\1#p'` |
❯ sudo perf stat -e 'syscalls:sys_enter_*' iperf -c localhost 2>&1 | awk '$1 != 0' | |
------------------------------------------------------------ | |
Client connecting to localhost, TCP port 5001 | |
TCP window size: 2.50 MByte (default) | |
------------------------------------------------------------ | |
[ 3] local 127.0.0.1 port 41332 connected with 127.0.0.1 port 5001 | |
[ ID] Interval Transfer Bandwidth | |
[ 3] 0.0-10.0 sec 66.0 GBytes 56.7 Gbits/sec | |
Performance counter stats for 'iperf -c localhost': |
/* | |
gtd format: ss:usec ... raw time of day format .. difficult to read .. | |
whitefield format: ss:ms .. eases timestamp reading cuz ms format used | |
cooja format: hh:mm:ss.ms ... most easiest to read | |
./a.out 7 // show sample test of all timestamps with print | |
./a.out 1 1 // perf-test gettimeofday only | |
./a.out 2 1 // perf-test whitefield style | |
./a.out 4 1 // perf-test cooja style |
gsettings set org.gnome.desktop.peripherals.touchpad send-events 'disabled' |
I hereby claim:
To claim this, I am signing this object:
ffmpeg -i SVID_20191211_220354_1.mp4 -i SVID_20191211_220355_1.mp4 -filter_complex hstack out.mp4 |