Skip to content

Instantly share code, notes, and snippets.

View spezifisch's full-sized avatar
🐢
I may be slow to respond.

spezifisch

🐢
I may be slow to respond.
View GitHub Profile
#!/bin/bash
# source: https://www.chrisatmachine.com/Neovim/04-vim-coc/
set -o nounset # error when referencing undefined variable
set -o errexit # exit when command fails
# Install extensions
mkdir -p ~/.config/coc/extensions
cd ~/.config/coc/extensions
{
"suggest.noselect": false,
"coc.preferences.formatOnSaveFiletypes": [
"javascript",
"typescript",
"python",
"typescriptreact",
"json",
"javascriptreact",
"typescript.tsx",
" Specify a directory for plugins
call plug#begin('~/.vim/plugged')
Plug 'dense-analysis/ale'
Plug 'mattn/emmet-vim'
Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'scrooloose/nerdtree'
""Plug 'tsony-tsonev/nerdtree-git-plugin'
Plug 'Xuyuanp/nerdtree-git-plugin'
Plug 'tiagofumo/vim-nerdtree-syntax-highlight'
@spezifisch
spezifisch / init.vim
Created September 26, 2021 02:28
neovim config (version without code completion), based on https://github.com/josethz00/neovim-like-vscode
" Specify a directory for plugins
call plug#begin('~/.vim/plugged')
Plug 'dense-analysis/ale'
Plug 'mattn/emmet-vim'
Plug 'scrooloose/nerdtree'
""Plug 'tsony-tsonev/nerdtree-git-plugin'
Plug 'Xuyuanp/nerdtree-git-plugin'
Plug 'tiagofumo/vim-nerdtree-syntax-highlight'
Plug 'ryanoasis/vim-devicons'
@spezifisch
spezifisch / com.vscodium.codium.desktop
Last active December 5, 2021 11:23
vscodium flatpak desktop file with dotnet, golang, node extensions enabled and host vscodium config+extensions
[Desktop Entry]
Name=VSCodium
Comment=Code Editing. Redefined.
GenericName=Text Editor
Exec=/usr/bin/flatpak run --branch=stable --arch=x86_64 --command=/app/bin/codium --file-forwarding com.vscodium.codium --no-sandbox --unity-launch --user-data-dir /home/YOU/.config/VSCodium --extensions-dir /home/YOU/.vscode-oss/extensions @@ %F @@
Icon=com.vscodium.codium
Type=Application
StartupNotify=false
StartupWMClass=VSCodium
Categories=Utility;TextEditor;Development;IDE;
@spezifisch
spezifisch / 1-README.md
Last active May 24, 2022 23:10
using gobuffalo-pop with copyist for unit tests, with TestMain and multiple files

Pop's documentation is quite lacking so here's a summary how I got unit tests working with copyist so we don't need a running PostgreSQL database in our CI and normally our tests are a lot faster.

Links:

@spezifisch
spezifisch / 1-README.md
Last active May 24, 2022 23:13
using gobuffalo-pop with copyist for unit tests, single file example

Pop's documentation is quite lacking so here's a summary how I got unit tests working with copyist so we don't need a running PostgreSQL database in our CI and normally our tests are a lot faster.

Links:

@spezifisch
spezifisch / 10-docker.rules
Created September 11, 2022 13:52
Tell NetworkManager to leave docker interfaces unmanaged
SUBSYSTEM=="net", ACTION=="add|change", ATTR{address}=="02:42:*", ENV{INTERFACE}=="docker[0-9]*", ENV{NM_UNMANAGED}="1"
SUBSYSTEM=="net", ACTION=="add|change", ATTR{address}=="02:42:*", ENV{INTERFACE}=="br-*", ENV{NM_UNMANAGED}="1"
SUBSYSTEM=="net", ACTION=="add|change", ATTR{address}=="02:42:*", ENV{INTERFACE}=="veth*", ENV{NM_UNMANAGED}="1"
@spezifisch
spezifisch / pipewire bullseye backport.md
Created August 31, 2022 00:35
Install pipewire 0.3.56 on Debian Bullseye by building backports of Testing packages

pipewire bullseye backport

Install pipewire 0.3.56 on Debian Bullseye by building backports of Testing packages.

Do this to get LDAC and AptX Bluetooth support on Bullseye.

Setup

Instructions based on: https://wiki.debian.org/SimpleBackportCreation:

@spezifisch
spezifisch / getHighFunction.kt
Last active October 31, 2022 17:35
ghidra getHighFunction kotlin version
import ghidra.program.model.pcode.HighFunction
import ghidra.util.task.ConsoleTaskMonitor
import ghidra.app.decompiler.DecompileOptions
import ghidra.app.decompiler.DecompInterface
fun getHighFunction(func: Function): HighFunction {
// src: https://github.com/HackOvert/GhidraSnippets#dumping-refined-pcode
val options = DecompileOptions()
val monitor = ConsoleTaskMonitor()
val ifc = DecompInterface()