Skip to content

Instantly share code, notes, and snippets.

View absturztaube's full-sized avatar
😺
Nyaa~ Nya~

Julian Wampfler absturztaube

😺
Nyaa~ Nya~
View GitHub Profile
@absturztaube
absturztaube / grab.sh
Last active April 27, 2019 21:21
bash script that fetches emojis from a given fediverse instance
#!/usr/bin/env bash
instance=$1
echo "[*] Grabbing emojilist from $instance"
json=$(curl -sL "https://$instance/api/v1/custom_emojis")
echo "[*] Setting up stuff"
@absturztaube
absturztaube / hashgen.sh
Created November 2, 2018 10:09
Just a little hash generator for cli
#!/usr/bin/env bash
VERSION="0.1"
function usage
{
echo "hashgen v${VERSION}"
echo "Usage: hashgen [-m hashmethod] [-c config] [-s salt] [-h] string_to_hash"
@absturztaube
absturztaube / .htaccess
Created August 9, 2018 20:39
X-Cat Header in Apache2
<IfModule mod_headers.c>
Header add X-Cat "+----------------------------+"
Header add X-Cat "| |\ _,,,---,,_ |"
Header add X-Cat "| /,`.-'`' -. ;-;;,_ |"
Header add X-Cat "| |,4- ) )-,_..;\ ( `'-' |"
Header add X-Cat "| '---''(_/--' `-'\_) |"
Header add X-Cat "+----------------------------+"
</IfModule>
@absturztaube
absturztaube / get_ip_list_failed_ssh.sh
Last active October 25, 2017 14:45
Gets a list of ips with number of failed login attempt on sshd
grep "$(date +"%b %d")" /var/log/auth.log | grep sshd | grep -i "failed password" | sed -r "s/.*\s(([0-9]+\.){3}[0-9]+)\s.*/\1/g" | sort | uniq -c | sort -n
@absturztaube
absturztaube / wget_bench.sh
Created September 28, 2017 07:12
URL Benchmark Bash oneliner, just set the url to the target and run this oneliner
start="$(date +%s%N | cut -b1-13)"; wget "$url" -o test.jpg ; echo $(($(date +%s%N | cut -b1-13) - $start))ms
@absturztaube
absturztaube / Signature.pm
Created July 17, 2017 13:12
Perl Modules for ClamAV Signature Generation (without using the sigtool from clamav)
package ClamAV::Signature;
use strict;
use warnings FATAL => 'all';
sub new {
my ($class) = @_;
my $this = {};
bless $this, $class;
$this->name('Perl.Generic');
$this->type(0);
@absturztaube
absturztaube / ngObserver.js
Last active April 28, 2017 22:32
Angular Observer Factory
var ngObserver = angular.module('ngObserver', []);
ngObserver.filter('hashCode', function() {
return function(input, hasType) {
if(hasType == null) {
hasType = false;
}
var result = typeof input;
var raw_hash = 0;
var mod_input = input;
if(typeof input === 'function') {
@absturztaube
absturztaube / keybase.md
Last active February 17, 2017 08:59
keybase proof

Keybase proof

I hereby claim:

  • I am absturztaube on github.
  • I am absturztaube (https://keybase.io/absturztaube) on keybase.
  • I have a public key ASAirspk0yhdOvc9tk33REXI4Op_uNpehByP9lgjI90nIAo

To claim this, I am signing this object: