This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
""" | |
ASN Bank CSV export doesn't contain any opposing account name for contactless | |
payments but contains the merchant name in the description field along with a | |
lot of other information. | |
We can split this description on the '>' chracter and extract the merchant | |
that way. | |
Idea adapted from: https://github.com/DanielsWrath/YNABGoingDutch/blob/3dcde360906bc87dc43efb62b0698f3f20d34519/js/bankMapper.js#L101-L111 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
G1="/sys/kernel/config/usb_gadget/g1" | |
mkdir -p $G1 | |
mkdir -p $G1/strings/0x409 | |
mkdir -p $G1/functions/ffs.diag | |
mkdir -p $G1/configs/c.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import csv | |
def truncate(n): | |
# Truncate number to 5 digits | |
return int(float(n) * 100000) / 100000 | |
# curl -O https://bus-api.blablacar.com/gtfs.zip && unzip gtfs.zip stops.txt | |
with open('stops.txt', 'r') as csvfile: | |
reader = csv.DictReader(csvfile) | |
print("var stops = {") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
import sys | |
def get_secret(serial: str) -> str: | |
secret = "" | |
for i in range(16): | |
value = ord(serial[i]) + ord("AB2D3F3B37890C1A"[i]) + 9 | |
secret += format(value, 'X') | |
return secret |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
prefix="$1" | |
shift | |
if [ -z "$prefix" ]; then | |
echo "ERROR: provide prefix!" | |
exit 1 | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git bisect start | |
git bisect good v3.15.0 | |
git bisect bad origin/master | |
git bisect run ~/dev/postmarketOS/unity8-stuff/system-settings-bisect-script.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/device/linux-xiaomi-santoni/APKBUILD b/device/linux-xiaomi-santoni/APKBUILD | |
index 69dc4556..c9426910 100644 | |
--- a/device/linux-xiaomi-santoni/APKBUILD | |
+++ b/device/linux-xiaomi-santoni/APKBUILD | |
@@ -52,23 +52,7 @@ build() { | |
} | |
package() { | |
- # kernel.release | |
- install -D "$builddir/include/config/kernel.release" \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
import glob | |
import os | |
import sys | |
import time | |
""" | |
(according to Android emulator, seems to be inverse for iio) | |
upright/normal: 0 9.81 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 74c524a0ea3b29e17464cd7062eb0c6a28ac4a7d Mon Sep 17 00:00:00 2001 | |
From: Luca Weiss <[email protected]> | |
Date: Mon, 20 Aug 2018 16:49:10 +0200 | |
Subject: [PATCH 01/46] Appveyor try 1 | |
--- | |
.appveyor.yml | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ | |
1 file changed, 48 insertions(+) | |
create mode 100644 .appveyor.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# UCM configuration for FP2 | |
Comment "Fairphone 2" | |
SectionUseCase."HiFi" { | |
File "hifi" | |
Comment "Play HiFi quality music." | |
} |
NewerOlder