Skip to content

Instantly share code, notes, and snippets.

@fuchsi
fuchsi / irrenhaus-upload.sh
Last active June 10, 2024 14:26
New Propaganda upload script
#!/bin/bash
#
# New Propaganda Upload Script
# Copyright (C) 2018 Daniel Müller <perlfuchsi@gmail.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
#!/usr/bin/env ruby
require 'mongo'
require 'date'
require 'awesome_print'
## Messages
# captured
# destroyed an
@fuchsi
fuchsi / ati-stream-sdk-bin-2.9.ebuild
Created November 14, 2013 08:16
dev-util/ati-stream-sdk-bin/ati-stream-sdk-bin-2.9.ebuild Quick and dirty hack to install the latest AMD APP SDK
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="2"
DESCRIPTION="Enable compiling code and loading it on ATI/AMD GPU"
HOMEPAGE="http://developer.amd.com/tools-and-sdks/heterogeneous-computing/amd-accelerated-parallel-processing-app-sdk/"
SDK_URI="http://developer.amd.com/tools-and-sdks/heterogeneous-computing/amd-accelerated-parallel-processing-app-sdk/downloads/"
SRC_URI="AMD-APP-SDK-v2.9-RC-lnx64.tgz"
@fuchsi
fuchsi / ingress_item_drop.sh
Last active December 18, 2015 09:48
Ingress Item Drop and Recycle Script
#!/bin/bash
#
# Ingress Item Drop
#
# display coordinates x/y (Nexus 5)
#
# OPS: 970x170
# Item: 550x770
# Drop: 700x1700
# Recycle: 930x1700
@fuchsi
fuchsi / url_shortener.pl
Last active October 11, 2015 00:08
Simple URL-Shortener
#!/usr/bin/env perl
use Mojolicious::Lite;
use Math::BaseConvert qw(hex);
use Digest::CRC qw(crc32);
use Cache::Memcached;
get '/' => sub {
my $self = shift;
$self->render('index');
};