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 / clockintime.js
Created October 30, 2023 11:45
Scriptable: Clock In Time
// Scriptable script
// Execute Widget to create a one-time reminder for your sheduled workshift
// change the amounts of minutes to your work-duration
// 8 hours = 480
// 8 hours work + 30 min break = 510
// etc
let minutes = 460
let titleFontSize = 22
let reminderCategory = "Worktime"
@wolfposd
wolfposd / gitlab-show-path.user.js
Created June 22, 2023 11:00
Always show full path on gitlab instead of breadcrump button, need to adjust your gitlab instance
// ==UserScript==
// @name GitLab Always Show Path Remove Breadcrumbs
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Click on the Show Path Breadcrumb button to always display the full path
// @author wolfposd
// @match https://gitlab.com/*
// @icon https://about.gitlab.com/ico/favicon.ico?cache=2022041
// @grant none
// @run-at document-end
@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
@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
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 / 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
@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 / 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 / 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 / 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"