Skip to content

Instantly share code, notes, and snippets.

@guss77
guss77 / reset-tb
Last active April 11, 2024 05:11
Script to reset the XHCI of a Thunderbolt connection in case the kernel stops it
#!/bin/bash
# As described in https://bugs.launchpad.net/bugs/1766076
### Installation Instructions:
# 1. Install file into `/usr/local/bin/reset-tb`
#
# 2. Optional: allow password less sudo by creating a file `/etc/sudoers.d/allow-reset-tb` with the following content:
# ----8<-----
# <your username> ALL = NOPASSWD: /usr/local/bin/reset-tb
# ----8<-----
#
@PieterScheffers
PieterScheffers / transip_stack_clear_trash.sh
Last active August 28, 2020 23:03
TransIP Stack - Clear Trash
#!/bin/sh
STACK_URL=myuser.stackstorage.com
STACK_USER=myuser
STACK_PASSWORD=nooneknowsthis
curl \
--silent \
-X POST \
-H "Content-Type: application/json" \
import java.math.BigInteger;
import java.security.InvalidAlgorithmParameterException;
import java.util.Scanner;
/**
* @version 1
* @author ChloeWake
*
*/
public class EAN13 {
public static void main (String[] args){