Skip to content

Instantly share code, notes, and snippets.

Vojtěch Boček Tasssadar

Block or report user

Report or block Tasssadar

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@Tasssadar
Tasssadar / gen_uri_linux.patch
Last active Jan 8, 2020
Patch JEB 3.8+ GenRegisterJebUriScheme.py to generate registrator also on Linux
View gen_uri_linux.patch
--- GenRegisterJebUriScheme.py.orig 2020-01-08 09:41:43.260903761 +0100
+++ GenRegisterJebUriScheme.py 2020-01-08 14:15:01.278159846 +0100
@@ -1,7 +1,7 @@
'''
Generate a platform-dependant script used to register the custom URI handler 'jeb:',
which can be used to execute JEB from other applications.
-TODO: only Windows is implemented; add Linux and macOS
+TODO: only Windows and Linux is implemented; add macOS
How to use:
View btrfs-delete-missing-workaround-4.7.4.diff
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c
index 864cf3b..bd10a1d 100644
--- a/fs/btrfs/disk-io.c
+++ b/fs/btrfs/disk-io.c
@@ -3588,6 +3588,8 @@ int btrfs_calc_num_tolerated_disk_barrier_failures(
int num_tolerated_disk_barrier_failures =
(int)fs_info->fs_devices->num_devices;
+ return num_tolerated_disk_barrier_failures;
+
View gist:5a880428189e4aa8f9cf
  • &subset=latin-ext - fonty
  • link na "další" v krocích, jak postupovat
  • smoothscroll pryc
View goidos-api.md

Hledání spojení:

{
    "carrier": "IDSJMK",
    "from": "Hlavní nádraží",
    "to": "Životského",
    "via": [ "foo", "bar" ],
    "time": {
        "type": "departure",
View index.php
<?php
if(array_key_exists("s", $_GET)) {
$expr_get = $_GET["s"];
} else {
$expr_get = "";
}
function search($expr) {
$db = new SQLite3('socky.sqlite');
@Tasssadar
Tasssadar / shinies.md
Last active Aug 29, 2015
random shinies
View shinies.md

Turn off grayscale icons when the window is minimized in plasma 5:

/usr/share/plasma/plasmoids/org.kde.plasma.taskmanager/contents/ui/Task.qml

PlasmaCore.IconItem {
    id: icon

    anchors.fill: parent

    visible: false
View shamu-aosp-Implement-kexec-hardboot_v1.patch
From d12d6a5300dafba36474cb308a99339d1096842e Mon Sep 17 00:00:00 2001
From: Vojtech Bocek <vbocek@gmail.com>
Date: Thu, 5 Mar 2015 16:51:25 +0100
Subject: [PATCH] Implement kexec-hardboot
"Allows hard booting (i.e., with a full hardware reboot) to a kernel
previously loaded in memory by kexec. This works around the problem of
soft-booted kernel hangs due to improper device shutdown and/or
reinitialization."
More info in /arch/arm/Kconfig.
@Tasssadar
Tasssadar / make_fork.diff
Last active Aug 29, 2015
Force make to stop just after parsing all makefiles and wait for SIGUSR1, then fork and continue in build. Eliminates parsing of makefiles on each build, thus saves a fuckton of time if you're building something in Android tree over and over.
View make_fork.diff
diff --git a/main.c b/main.c
index f60e6be..bef5652 100644
--- a/main.c
+++ b/main.c
@@ -302,6 +302,18 @@ struct variable shell_var;
char cmd_prefix = '\t';
+/* For the -F/--fork-hack option */
+#define FORK_HACK_PID_FILE ".make-fork-hack.pid"
@Tasssadar
Tasssadar / pw_touch_events.c
Created Jul 16, 2014
Small program for kindle paperwhite 2 which tracks touch events and shows battery percentage on screen when the user double taps on the bottom of the screen.
View pw_touch_events.c
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <linux/input.h>
#include <string.h>
#include <dirent.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <sys/poll.h>
@Tasssadar
Tasssadar / twrp_fonts.py
Last active Aug 29, 2015
Python script to convert TrueType fonts to TWRP's .dat format.
View twrp_fonts.py
#!/usr/bin/env python
# -*- coding: utf8 -*-
import codecs,os,gzip,ctypes,ctypes.util,sys
from struct import *
from PIL import Image, ImageDraw, ImageFont
# ====== Python script to convert TrueTypeFonts to TWRP's .dat format ======
# This script was originally made by https://github.com/suky for his chinese version of TWRP
# and then translated to English by feilplane at #twrp of irc.freenode.net.
# However, it was not compatible with vanilla TWRP, so https://github.com/Tasssadar rewrote
You can’t perform that action at this time.