Skip to content

Instantly share code, notes, and snippets.

[Unit]
Description=Server daemon for Terraria
After=network.target
[Service]
WorkingDirectory=/storage/terrariaserver/
User=mirsella
Type=forking
# Default KillMode is 'control-group', which is typically desired.
@madushan1000
madushan1000 / zmk_split_battery_level_linux.py
Created January 16, 2024 22:25
See battery levels of a zmk split ble keyboard on linux
from dbus_next.aio import MessageBus
from dbus_next.constants import BusType
import asyncio
BLUEZ = "org.bluez"
#replace hci0 with your bluetooth adapter name and FF_FF_FF_FF_FF_FF with your keyboard address
BLUEZ_PATH = "/org/bluez/hci0/dev_FF_FF_FF_FF_FF_FF"
GATT_SERVICE = 'org.bluez.GattService1'
GATT_CHARACTERISCITC = 'org.bluez.GattCharacteristic1'
GATT_CHARACTERISCITC_DESCR = 'org.bluez.GattDescriptor1'
BATTERY_UUID = "0000180f-0000-1000-8000-00805f9b34fb"
@mirsella
mirsella / script.js
Last active April 21, 2026 12:14
42 auto reload slots
// ==UserScript==
// @name auto reload
// @namespace Violentmonkey Scripts
// @match https://projects.intra.42.fr/projects/*/slots
// @grant none
// @version 1.0
// @author mirsella
// @description 4/17/2023, 4:07:14 PM
// ==/UserScript==
@mirsella
mirsella / post-archinstall.zsh
Last active June 11, 2026 08:39
my arch post install script
#!/bin/bash
export pkg='ntfs-3g pacman-contrib spectacle man man-pages youtube-music-bin yt-dlp inxi rclone unzip zip fuse2 tealdeer keepassxc wl-clipboard kdeconnect yakuake zen-browser-bin inetutils timeshift timeshift-autosnap ttf-jetbrains-mono-nerd fwupd fwupd-efi sbctl aspell aspell-en aspell-fr hunspell hunspell-en_US hunspell-fr wine bottles mcat-bin chromium imagemagick kwalletmanager android-tools ffmpegthumbs xcb-util-cursor age proton-pass-cli-bin'
export pkg_dev='cmake python-pip nodejs npm pnpm github-cli jujutsu jq nodejs-neovim python-pynvim vimv kwalletcli-bin archlinuxcn/wezterm-git lazygit docker docker-compose mergiraf wild mold mergiraf biome prettier markdownlint-cli markdownlint-cli2 ueberzugpp openslide ast-grep mermaid-cli tree-sitter-cli ueberzugpp tectonic fish zellij tmux wrangler'
export pkg_dotfiles='zsh nushell carapace-bin fish neovim fzf starship oh-my-posh gtrash-bin bat ouch fd ripgrep lsd chezmoi dust zoxide lazygit darkman chafa difftastic atuin git-delta graphviz'
export
@mirsella
mirsella / turboselfbotblacklist
Last active April 21, 2026 12:14
turboself ignore range
27/05/22+0
@AhmedMostafa16
AhmedMostafa16 / .font.conf
Created July 25, 2021 13:39
My .font.conf for perfect font rendering
<?xml version="1.0"?><!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<dir>~/.fonts</dir>
<!--
Documented at
http://linux.die.net/man/5/fonts-conf
To check font mapping run the command at terminal
$ fc-match 'helvetica Neue'
@liamcottle
liamcottle / attestation.md
Last active August 21, 2024 11:11
SafetyNet Attestation Bypass

SafetyNet Attestation Bypass

Proof that with a few hours work, you can easily provide aribitrary data to the Google SafetyNet API and receive a valid Attestation signed by attest.android.com.

I've captured the HARDWARE_BACKED flag. Check this comment.

This is only a software backed attestation, as you can see with the evaluationType=BASIC. I don't have any devices that support hardware backed attestations via TEE, however once I do, I'll be taking a look into them 🤠

  • nonce: base64(liam@liamcottle.com)
  • packageName: liam@liamcottle.com
@jdah
jdah / .vimrc
Created June 14, 2021 11:54
jdh's NeoVim .vimrc
call plug#begin()
Plug 'drewtempelmeyer/palenight.vim'
Plug 'vim-airline/vim-airline'
Plug 'wlangstroth/vim-racket'
Plug 'sheerun/vim-polyglot'
Plug 'rust-lang/rust.vim'
Plug 'preservim/tagbar'
Plug 'universal-ctags/ctags'
Plug 'luochen1990/rainbow'
Plug 'vim-syntastic/syntastic'
@phhusson
phhusson / AppsOverADB.kt
Created February 2, 2021 21:33
Remote control apps running on a smartphone
/*
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
@madkoding
madkoding / pair-dual-boot-bluetooth.md
Last active June 19, 2026 12:27
Pairing bluetooth devices in dual boot with Linux Ubuntu and Windows 10/11

Pairing Bluetooth Devices in Dual Boot with Linux Ubuntu and Windows 10/11

Introduction

This guide provides updated instructions for pairing Bluetooth devices (such as keyboards or mice) in a dual-boot environment with Linux Ubuntu and Windows 10/11, incorporating community feedback and suggestions.

Instructions

1. Pair in Linux First

  • Pair your Bluetooth device in Linux. This is crucial to ensure the LinkKey remains consistent.
  • Note: Do not re-pair the device in Linux after completing the pairing in Windows.