Skip to content

Instantly share code, notes, and snippets.

View akc3n's full-sized avatar

akc3n akc3n

View GitHub Profile
@bgauduch
bgauduch / multiple-repository-and-identities-git-configuration.md
Last active September 25, 2025 13:24
Git config with multiple identities and multiple repositories

Setup multiple git identities & git user informations

/!\ Be very carrefull in your setup : any misconfiguration make all the git config to fail silently ! Go trought this guide step by step and it should be fine 😉

Setup multiple git ssh identities for git

  • Generate your SSH keys as per your git provider documentation.
  • Add each public SSH keys to your git providers acounts.
  • In your ~/.ssh/config, set each ssh key for each repository as in this exemple:
@luismts
luismts / GitCommitBestPractices.md
Last active September 26, 2025 16:08
Git Tips and Git Commit Best Practices

Git Commit Best Practices

Basic Rules

Commit Related Changes

A commit should be a wrapper for related changes. For example, fixing two different bugs should produce two separate commits. Small commits make it easier for other developers to understand the changes and roll them back if something went wrong. With tools like the staging area and the ability to stage only parts of a file, Git makes it easy to create very granular commits.

Commit Often

Committing often keeps your commits small and, again, helps you commit only related changes. Moreover, it allows you to share your code more frequently with others. That way it‘s easier for everyone to integrate changes regularly and avoid having merge conflicts. Having large commits and sharing them infrequently, in contrast, makes it hard to solve conflicts.

@thestinger
thestinger / Android_Q_Privacy.md
Last active January 31, 2024 22:25
Android Q privacy features in the context of the AndroidHardening / GrapheneOS work

Some of the privacy features that I developed in the past are now going to be standard Android features in the next major release. In some cases, the implementation that I worked on ended up being a direct inspiration for the upstream work. I also pushed them to enable permissions review by default, which may have had some influence on it finally shipping as enabled. It was seemingly implemented for some niche scenario and most of their privacy / security team didn't know about the feature existing when I talked to them about it in the past.

Most of my work has focused on improving security, and that focus will be somewhat increased in Android Q due to many of the privacy improvements being part of the baseline OS.

Android P had previously replaced some of the privacy features developed as part of the AndroidHardening project such as restricting access to the camera, microphone and sensors in the background.

Features that were not implemented by my past work:

@MaxXor
MaxXor / btrfs-guide.md
Last active September 11, 2025 20:51
Btrfs guide to set up an LUKS-encrypted btrfs raid volume with included maintenance & recovery guide

Encrypted Btrfs storage setup and maintenance guide

Initial setup with LUKS/dm-crypt

This exemplary initial setup uses two devices /dev/sdb and /dev/sdc but can be applied to any amount of devices by following the steps with additional devices.

Create keyfile:

dd bs=64 count=1 if=/dev/urandom of=/etc/cryptkey iflag=fullblock
chmod 600 /etc/cryptkey
@typebrook
typebrook / README.md
Last active June 30, 2025 03:04
A bash script for gist management #bash #gist

Managing Gists Locally

by Danny Quah, May 2020 (revised Jan 2022)

Through the Embed instruction or plugin, Gist snippets on GitHub can conveniently provide posts on Medium, WordPress, and elsewhere supplementary information (lines of code, images, Markdown-created tables, and so on). But while Gist snippets on GitHub can be managed directly via browser or through something like [Gisto][], a user might also wish to manipulate them offline. This last is for many of the same reasons that a user seeks to clone a git repo to their local filesystem, modify it locally, and then only subsequently push changes back up to GitHub.

Here's how to do this:

Create the gist on GitHub and then clone it to your local filesystem:

@Peter-Easton
Peter-Easton / NSA Social & AndroMail
Last active December 28, 2021 21:55
A hypothesized example of Interprocess Communication on Android
2021-02-26 20:40:44 @TheJollyRoger slkhgdhb3151[m]: Ah, you're talking about Inter-Process Communication?
2021-02-26 20:41:25 @TheJollyRoger So, the way Inter-Process Communication works on Android is that apps can mutually whitelist each other for interprocess communication.
2021-02-26 20:41:42 --> user1HFT37N ([email protected]) has joined #grapheneos-offtopic
2021-02-26 20:41:42 @TheJollyRoger I'll go back to one of my old examples, I like retelling this story:
2021-02-26 20:41:56 @TheJollyRoger Let's say I have five apps installed in my main profile:
2021-02-26 20:42:01 slkhgdhb3151[m] <TheJollyRoger "slkhgdhb3151: Ah, you're talking"> Not sure what I am talking about! :-D Let's drop that question for now. Let's me read a bit more and better understand what I read. I will be able to come back with clearer questions!! ;-)
2021-02-26 20:42:18 <-- user1HFT37N ([email protected]) has quit (Remote host closed the connection)
@lbschenkel
lbschenkel / MitID+GrapheneOS.md
Last active August 6, 2025 19:43
MitID with GrapheneOS

MitID is a very finicky app that sometimes stops working in GrapheneOS. For that reason I strongly recommend disabling automatic updates for this particular app in the Play Store, and only updating when there is evidence that the new version will keep working. It's also worth it to order a code display as a back up authenticator — it's free.

For the sake of other users I will try my best to document here which versions work and which don't work.


@q3k
q3k / hashes.txt
Last active April 28, 2025 12:32
liblzma backdoor strings extracted from 5.6.1 (from a built-in trie)
0810 b' from '
0678 b' ssh2'
00d8 b'%.48s:%.48s():%d (pid=%ld)\x00'
0708 b'%s'
0108 b'/usr/sbin/sshd\x00'
0870 b'Accepted password for '
01a0 b'Accepted publickey for '
0c40 b'BN_bin2bn\x00'
06d0 b'BN_bn2bin\x00'
0958 b'BN_dup\x00'
@smx-smx
smx-smx / XZ Backdoor Analysis
Last active June 2, 2025 22:53
[WIP] XZ Backdoor Analysis and symbol mapping
XZ Backdoor symbol deobfuscation. Updated as i make progress