Skip to content

Instantly share code, notes, and snippets.

@DD3Boh
DD3Boh / gist:6c51fd3c5f91b1042e956771483714de
Created July 19, 2017 14:59
How to merge a newer CAF tag in an android kernel
First go here:
https://wiki.codeaurora.org/xwiki/bin/QAEP/release
This site gives information about all msm soc release details with tag + android version
Search your msm here.. Check the latest one and look for correct android version and mark that tag.
Now open one of the following links (dependent on your linux kernel version)
@Darkhogg
Darkhogg / !RebootToOs.md
Last active May 9, 2025 20:40
"Reboot to {OS}" scripts for rEFInd Next Boot selection

Reboot to {OS}

This a collection of notes and files used in my quest to create "Reboot to Windows" and "Reboot to Linux" scripts (and desktop shortcuts) for Linux and Windows respectively that automatically reboot my system and instruct rEFInd to auto-select the appropriate OS entry.

General Information

The key for achieving this is to modify the EFI Variable PreviousBoot with GUID 36d08fa7-cf0b-42f5-8f14-68df73ed3740, which rEFInd uses to store the last entry selected in the menu and, if using the + default entry, will be used to select the default OS. By doing this, we trick rEFInd into booting the OS we choose without having to be physically there to press the keyboard.

@nikhita
nikhita / update-golang.md
Last active May 7, 2025 08:27
How to update the Go version

How to update the Go version

System: Debian/Ubuntu/Fedora. Might work for others as well.

1. Uninstall the exisiting version

As mentioned here, to update a go version you will first need to uninstall the original version.

To uninstall, delete the /usr/local/go directory by:

@mayurah
mayurah / IDM.as
Last active April 19, 2025 12:15
Internet Download Manager / Ubuntu / Wine - Raw Instructions to make it work!
To make good old Internet Download Manager (IDM) work in Linux mint / Ubuntu!
# Declaration: I totally support open source and have tried aria2, and axel; also I am frequent user and admirer of wget, curl and lynx; but the download throughput provided by IDM is unmatched for some odd reasons, specifically it performs better than other clients in mid-to-high latency networks, who knows, may be short time-outs on each connectionns or magic wand.
Some CLI examples if someone would wish to try those and compare throughput of each at 8 connections to get benchmark against IDM!
- $ aria2c --file-allocation=none -c -x 8 -s 8 -d "./location/to/downloads/" http://cachefly.cachefly.net/100mb.test
- $ axel -n 8 http://cachefly.cachefly.net/100mb.test
Below two does not suppot multi-threaded, and are made for other greater purpose :)
@ageis
ageis / systemd_service_hardening.md
Last active May 8, 2025 00:38
Options for hardening systemd service units

security and hardening options for systemd service units

A common and reliable pattern in service unit files is thus:

NoNewPrivileges=yes
PrivateTmp=yes
PrivateDevices=yes
DevicePolicy=closed
ProtectSystem=strict
@auipga
auipga / iperf3.service
Last active February 2, 2025 12:43 — forked from mmasaki/iperf.service
systemd service unit for iperf3
# /etc/systemd/system/iperf3.service
# User service: $HOME/.config/systemd/user/iperf3.service
[Unit]
Description=iperf3 server
After=syslog.target network.target auditd.service
[Service]
ExecStart=/usr/bin/iperf3 -s
/play
/*.png
/*.bmp
/solitaire
@eduncan911
eduncan911 / go-build-all
Last active April 11, 2024 07:14
Go Cross-Compile Script
#!/bin/bash
#
# GoLang cross-compile snippet for Go 1.6+ based loosely on Dave Chaney's cross-compile script:
# http://dave.cheney.net/2012/09/08/an-introduction-to-cross-compilation-with-go
#
# To use:
#
# $ cd ~/path-to/my-awesome-project
# $ go-build-all
#
@defremov
defremov / foo2hbpl1.c.print-quality.patch
Last active October 10, 2021 20:10
Add print quality settings to foo2hbpl1 driver for HBPL1 printers, http://www.dechifro.org/hbpl/
diff --git a/foo2hbpl1.c b/foo2hbpl1.c
index fb4f448..d0ad6cd 100644
--- a/foo2hbpl1.c
+++ b/foo2hbpl1.c
@@ -52,11 +52,38 @@ static char Version[] = "$Id: foo2hbpl1.c,v 1.3 2014/03/30 05:08:32 rick Exp $";
/*
* Command line options
*/
-int MediaCode = 0;
+char *ClutFilePath = NULL;
From f3ad98ac87f9f1c789b9e3f2fe1875cde089d680 Mon Sep 17 00:00:00 2001
From: poma <[email protected]>
Date: Tue, 31 Mar 2015 03:13:15 +0300
Subject: [PATCH] b
---
js/ui/sidebar.js | 2 +-
manifest.json | 7 ++++++-
2 files changed, 7 insertions(+), 2 deletions(-)