Skip to content

Instantly share code, notes, and snippets.

View p1-olm's full-sized avatar

Olivier Le Moal p1-olm

  • Nantes, France
View GitHub Profile
@mrlnc
mrlnc / pysim-suci.md
Last active November 7, 2023 12:55
pysim-suci.md

Decrypt LUKS2-encrypted root partitions with TPM2

This guide is written for Arch Linux.

Requirements

  • systemd version 248 or newer
  • Use mkinitcpio for initramfs generation

Preparation

@Ademking
Ademking / readme.md
Last active March 14, 2024 11:02
💚 Android : Send SMS through ADB

(Android 5)

Run :

adb shell service call isms 9 s16 "com.android.mms" s16 "123456789" s16 "null" s16 "MESSAGEBODY" s16 "null" s16 "null"

The method is :

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@LeCoupa
LeCoupa / bash-cheatsheet.sh
Last active May 27, 2024 20:46
Bash CheatSheet for UNIX Systems --> UPDATED VERSION --> https://github.com/LeCoupa/awesome-cheatsheets
#!/bin/bash
#####################################################
# Name: Bash CheatSheet for Mac OSX
#
# A little overlook of the Bash basics
#
# Usage:
#
# Author: J. Le Coupanec
# Date: 2014/11/04
@alepee
alepee / sublimetext-keyboard-shortcuts.sublime-keymap
Last active November 9, 2022 22:17
SublimeText shortcuts for Mac French keyboard (azerty)
[
// Square brackets aren't that usable in azerty.
// Replaces [ with ù and ] with $, closest usable combination to the American qwerty
{ "keys": ["super+shift+ù"], "command": "prev_view" },
{ "keys": ["super+shift+$"], "command": "next_view" },
{ "keys": ["super+ù"], "command": "unindent" },
{ "keys": ["super+$"], "command": "indent" },
{ "keys": ["super+alt+ù"], "command": "fold" },
@lttlrck
lttlrck / gist:9628955
Created March 18, 2014 20:34
rename git branch locally and remotely
git branch -m old_branch new_branch # Rename branch locally
git push origin :old_branch # Delete the old branch
git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote
@nddrylliog
nddrylliog / android_configure.sh
Created February 1, 2013 00:51
Cross-compile autotools library for Android / arm-linux-androideabi I stick that in ~/bin/, chmod +x, and then run it in place of "./configure" in my project. Then a make and make install later, the prefix contains libraries built for android. Neato eh?
#!/bin/sh
# I put all my dev stuff in here
export DEV_PREFIX=$HOME/Dev/
# Don't forget to adjust this to your NDK path
export ANDROID_NDK=${DEV_PREFIX}/android-ndk-r8d/
export CROSS_COMPILE=arm-linux-androideabi
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active June 21, 2024 01:45
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname