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 python3 | |
# | |
# The MIT License (MIT) | |
# | |
# Copyright (c) 2015 Stefan Tatschner | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights | |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
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/bash -l | |
# | |
# The MIT License (MIT) | |
# | |
# Copyright (c) 2015-2017 Stefan Tatschner | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights | |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
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 python3 | |
# | |
# The MIT License (MIT) | |
# | |
# Copyright (c) 2015-2016 Stefan Tatschner | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights | |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
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
function -d "Fuzzy change directory" fcd | |
if set -q argv[1] | |
set searchdir $argv[1] | |
else | |
set searchdir $HOME | |
end | |
# https://github.com/fish-shell/fish-shell/issues/1362 | |
set -l tmpfile (mktemp) | |
find $searchdir \( ! -regex '.*/\..*' \) ! -name __pycache__ -type d | fzf > $tmpfile |
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 | |
SCRIPTNAME=$(basename "$0") | |
KEYWORDS="$1" | |
SUITE="testing" | |
usage() { | |
echo "usage: $SCRIPTNAME [ARGS] [-h] KEYWORDS" | |
echo "" | |
echo "This script is a short wrapper over the search feature of the debian" |
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
// Public Domain; Feel free to copy and steal it! | |
// Based on: | |
// http://fivelinesofcode.blogspot.de/2014/03/how-to-translate-virtual-to-physical.html | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <unistd.h> | |
#include <assert.h> | |
#include <errno.h> | |
#include <stdint.h> |
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> | |
#include <stdarg.h> | |
#include <stdlib.h> | |
#include <time.h> | |
#include <libiberty/libiberty.h> | |
#include "log.h" | |
#include "config.h" | |
#define BUFSIZE 1024 |
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/bash | |
# Creates a raw image which can be booted with: | |
# | |
# $ kvm -kernel PATHTOKERNEL/bzImage \ | |
# -drive file=$HOME/sid-amd64.img,media=disk,format=raw,readonly=off \ | |
# -append "root=/dev/sda console=ttyS0" \ | |
# -fsdev local,id=fs1,path=$HOME,security_model=none \ | |
# -device virtio-9p-pci,fsdev=fs1,mount_tag=host-home \ | |
# -nographic |
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 bash | |
# | |
# The MIT License (MIT) | |
# | |
# Copyright (c) 2017 Stefan Tatschner | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights | |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
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 python3 | |
import json | |
import statistics | |
import sys | |
def parse_list_from_stdin() -> list[str]: | |
raw_packages = [] | |