Skip to content

Instantly share code, notes, and snippets.

View wolfposd's full-sized avatar

Wolf wolfposd

  • University of Hamburg, DE
View GitHub Profile
@wolfposd
wolfposd / main.cpp
Last active January 2, 2016 14:49
C++ Console Memory-Game
// Copyright (c) 2014, Wolf Posdorfer
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
//
// 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
//
// 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVI
@wolfposd
wolfposd / cydia.php
Last active August 29, 2015 14:11
PHP Cydia API wrapper
<?php
/*
The MIT License (MIT)
Copyright (c) <2014> <@wolfposd>
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
@wolfposd
wolfposd / resize
Last active November 22, 2016 11:29
Take an Image and resize for image.assets files, usage: ./resize icon.png
#!/bin/bash
f=$(pwd)
out="${f}/iconoutputfolder"
mkdir $out
sips --resampleWidth 29 "${f}/${1}" --out "${out}/Icon-29pt_at_1.png"
sips --resampleWidth 58 "${f}/${1}" --out "${out}/Icon-29pt_at_2.png"
sips --resampleWidth 87 "${f}/${1}" --out "${out}/Icon-29pt_at_3.png"
@wolfposd
wolfposd / FindPath.java
Created October 26, 2015 12:33
Finds the path of the newest created App-Archive from XCode for a given App-Name; usage: java FindPath <APPNAME>
import java.io.File;
import java.io.FilenameFilter;
import java.io.PrintStream;
/**
* The MIT License (MIT)
* Copyright (c) <2014> <@wolfposd>
* 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
@wolfposd
wolfposd / xcodebuiltappdeb.sh
Created October 26, 2015 12:50
script used for bundling xcode compiled apps into debs for cydia
#!/bin/bash
# Script created by @wolfposd for XCode-Built-Apps
# ==== USAGE ====
# to execute the script call in terminal:
# sh fallbackxcodebuiltappdeb.sh
@wolfposd
wolfposd / store.go
Created October 10, 2016 15:45
Drop-in MongoDB replacement for LevelDB in Tendermint
/*
* Copyright (c) 2016 wolfposd
*
* 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
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
@wolfposd
wolfposd / run_tss
Last active December 20, 2016 10:57
terminal script to download SHSH2 Blobs for your iDevice
#!/bin/bash
# Download tsschecker_macos from http://api.tihmstar.net/builds/tsschecker/tsschecker-macos-latest.zip
# Extract it to the same directory as run_tss
# change the config below
#
# In terminal:
# cd <DIR-OF-FILES>
# chmod +x run_tss
# ./run_tss
from Crypto.Cipher import AES
from Crypto.Util import Counter
import struct
"""
typedef struct boot_dat_hdr
{
unsigned char ident[0x10];
unsigned char sha2_s2[0x20];
unsigned int s2_dst;
@wolfposd
wolfposd / PanoramaImageSplit.js
Last active March 18, 2022 11:53
PanoramaImageSplit.js for scriptable.app
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: gray; icon-glyph: vector-square;
// script : PanoramaImageSplit.js
// version : 1.0.0
// description: Splits Panorama Images into multiple for InstaStories
// author : @wolfposd
@wolfposd
wolfposd / incidence.js
Last active May 17, 2022 10:43 — forked from klaus-schuster/incidence.js
COVID-19 Inzidenz-Widget für iOS für HAMBURG (nutzt die Daten der HH-Website und nicht die des RKI)
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// This script was downloaded using ScriptDude.
// Do not remove these lines, if you want to benefit from automatic updates.
// source: https://gist.github.com/wolfposd/596cacf6958a5e2bfbbe2c7ff295a467/raw/incidence.js; docs: https://gist.github.com/wolfposd/596cacf6958a5e2bfbbe2c7ff295a467/;
// Corona Zahlen Hamburg | https://www.hamburg.de/corona-zahlen
// Credits:
// klaus-schuster: https://gist.github.com/klaus-schuster/0537cd7f491a67ce61fe9064c4b4e932
// kevinkub https://gist.github.com/kevinkub/46caebfebc7e26be63403a7f0587f664