This file contains 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 fish | |
while true | |
read -P "" input | |
if test $status -ne 0 | |
break | |
end | |
echo $input | |
end | $argv | |
This file contains 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
// ==UserScript== | |
// @name RecipientEmailFixerRoundcube | |
// @version 1 | |
// @grant none | |
// ==/UserScript== | |
function on_mutation() { | |
document.querySelectorAll("body.action-compose li.recipient").forEach(recipient => { | |
if (!recipient.fixed) { | |
const [name, email] = recipient.children |
This file contains 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 fish | |
set packages (paclist core | cut -f1 -d' ') | |
set --erase IFS | |
set parallel 10 | |
set mirror 'http:\/\/ftp.snt.utwente.nl\/pub\/os\/linux\/archlinux\/$repo\/os\/$arch' | |
# setup the config | |
set config (cat pacman.conf | sed \ | |
-e "s/Include = \/etc\/pacman.d\/mirrorlist/Server = $mirror/" \ | |
-e "s/\#ParallelDownloads = 5/ParallelDownloads = $parallel/" |
This file contains 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 <stdio.h> | |
#define COROUTINE static long ip = 0; if (ip) asm ("jmp *%0" : : "r" (ip + 7)); | |
#define YIELD_32(i) asm volatile("movl %1, %%eax \n pop %%rbp \n call 1f\n 1: pop %0 \n ret" : "=m" (ip) : "r" (i)); | |
int fibonacci() { | |
COROUTINE | |
YIELD_32(0); | |
YIELD_32(1); | |
YIELD_32(1); |
This file contains 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
--- /tmp/gef.py.bckp 2022-02-22 19:37:04.589652454 +0100 | |
+++ /bedrock/strata/arch/usr/share/gef/gef.py 2022-02-22 19:42:11.126081267 +0100 | |
@@ -151,7 +151,8 @@ | |
CROSS = "\u2718 " | |
TICK = "\u2713 " | |
BP_GLYPH = "\u25cf" | |
-GEF_PROMPT = "gef\u27a4 " | |
+#GEF_PROMPT = "gef\u27a4 " | |
+GEF_PROMPT = "gef> " | |
GEF_PROMPT_ON = f"\001\033[1;32m\002{GEF_PROMPT}\001\033[0m\002" |
This file contains 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/fish | |
# Tunnel a wireguard interface | |
set dev $argv[1] | |
set peer $argv[2] | |
if test -z $dev | |
echo "No device specified" | |
exit | |
end |
This file contains 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
#tmux at -t irssi || tmux new -s irssi irssi | |
# Starting is handled by tmux@irssi.service | |
tmux at -t irssi |
This file contains 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/sh | |
file=`ls -dt ~/wallpapercycle/* | tail -n1` | |
touch $file | |
echo $file | |
feh --bg-tile $file |
This file contains 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
#define _GNU_SOURCE | |
#include <dlfcn.h> | |
#include <unistd.h> | |
#include <string.h> | |
#include <stdio.h> | |
#include <fcntl.h> | |
int new_fds[50][2] = {{0,0}}; |
This file contains 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 fish | |
argparse n/nameserver= d/domain= w/wordlist= o/output= -- $argv | |
or exit | |
if test -z $_flag_n; or test -z $_flag_d; or test -z $_flag_w | |
echo "Required arguments: nameserver, domain, wordlist" | |
echo "You can find the nameserver with nslookup and querytype=soa" | |
exit | |
end |
NewerOlder