Skip to content

Instantly share code, notes, and snippets.

View Rankarusu's full-sized avatar
stuck in vim

Ranka Rankarusu

stuck in vim
  • Germany
View GitHub Profile
@Rankarusu
Rankarusu / convertFileToBase64.js
Created May 29, 2024 16:16
Simple conversion of files to base64
// MacOS agents in Azure don't come with base64 installed, so we use node to convert our p8 file to base64 so we can use it in the deployment task
const fs = require("fs");
// 0 is node
// 1 is location of this file
const filePath = process.argv[2];
if (!filePath) {
throw new Error("no file path given");
}
@Rankarusu
Rankarusu / brave-flags.conf
Created April 13, 2024 19:18
Brave side scroll gestrues for back and forward on linux
//put this inside ~/.config/brave-flags.conf
--enable-features=TouchpadOverscrollHistoryNavigation
@Rankarusu
Rankarusu / manifest.json
Last active November 25, 2023 16:59
Everforest Thunderbird
{
"manifest_version": 2,
"name": "Everforest",
"version": "1.0.0",
"applications": {
"gecko": {
"id": "[email protected]",
"strict_min_version": "60.0"
}
},
@Rankarusu
Rankarusu / color.ini
Created November 25, 2023 08:16
Spicetify Everforest Colors
# add to ~/.config/spicetify/Themes/text/color.ini
[Everforest]
accent = a7c080
accent-active = 98BB6C
accent-inactive = 2e383c
banner = a7c080
border-active = a7c080
border-inactive = 7A8478
header = 9DA9A0
highlight = 272e33
@Rankarusu
Rankarusu / prepare-commit-msg.sh
Last active October 30, 2023 17:06
Prepend git commit messages with ticket number from branch
#!/bin/bash
# parse ticket number (if available) and prepend commit messge with it
# as we have a pound sign (#) at the start of our messages, we should probably edit the git comment character
# git config core.commentChar ';'
branchName=$(git branch --show-current)
# sed -n : quiet, s: substitute, /: delimiter
# match everything that is not a number before a number that is at least 5 digits long
@Rankarusu
Rankarusu / zsh_setup_mac.md
Last active September 26, 2023 15:05
zsh setup mac

zsh setup mac

Install zsh

use homebrew

brew install zsh

Oh My Zsh

@Rankarusu
Rankarusu / manual.md
Last active November 14, 2024 18:35
Setting up fail2ban with nginx proxy manager running via docker

Setting up fail2ban with nginx proxy manager running via docker

trying to follow this tutorial, i was not able to get fail2ban to work in my setup, so here is a gist in case I forget.

1. install fail2ban

sudo apt install fail2ban
@Rankarusu
Rankarusu / commitizen_setup.md
Last active March 4, 2023 19:29
Setup Commitizen and CommitLint

Setup

kudos to this guide

Install commitlint cli and conventional config

npm i -D @commitlint/config-conventional @commitlint/cli