Skip to content

Instantly share code, notes, and snippets.

@djraw
djraw / wine-breeze-dark-theme.md
Created February 25, 2024 20:27 — forked from Zeinok/wine-breeze-dark-theme.md
Breeze Dark theme for Wine

Made possible with this reddit post.

Install

wine regedit wine-breeze-dark.reg

Uninstall (Reset Wine color scheme)

wine regedit wine-reset-theme.reg

@djraw
djraw / replace_synology_ssl_certs.sh
Last active August 14, 2022 16:36 — forked from catchdave/replace_synology_ssl_certs.sh
CLI script to programmatically replace SSL certs on Synology NAS
#!/bin/sh
#
# *** For DSM v6.x ***
#
# How to use this script:
# 1. Get your 3 PEM files ready to copy over from your local machine/update server (privkey.pem, fullchain.pem, cert.pem)
# and put into a directory (this will be $CERT_DIRECTORY).
# 2. Ensure you have a user setup on synology that has ssh access (and ssh access is setup).
# This user will need to be able to sudo as root (i.e. add this line to sudoers, <USER> is the user you create):
# <USER> ALL=(ALL) NOPASSWD: /var/services/homes/<USER>/replace_certs.sh
@djraw
djraw / ffmpeg.md
Created June 13, 2022 19:19 — forked from steven2358/ffmpeg.md
FFmpeg cheat sheet
@djraw
djraw / ffmpeg.md
Created June 13, 2022 15:53 — forked from dvlden/ffmpeg.md
Convert video files to MP4 through FFMPEG

This is my personal list of functions that I wrote for converting mov files to mp4!

Command Flags

Flag Options Description
-codec:a libfaac, libfdk_aac, libvorbis Audio Codec
-quality best, good, realtime Video Quality
-b:a 128k, 192k, 256k, 320k Audio Bitrate
-codec:v mpeg4, libx264, libvpx-vp9 Video Codec
@djraw
djraw / MailinatorAliases
Created December 27, 2021 18:51 — forked from nocturnalgeek/MailinatorAliases
A list of alternate domains that point to @mailinator.com
@binkmail.com
@bobmail.info
@chammy.info
@devnullmail.com
@letthemeatspam.com
@mailinater.com
@mailinator.net
@mailinator2.com
@notmailinator.com
@reallymymail.com
@djraw
djraw / replace-notepad-w-npp.bat
Created December 21, 2021 18:08
Batch to replace notepad.exe withh Notepad++Portable, run from exe location
@echo off
cd /d "%~dp0"
echo.
echo.
pause
cd /d "%~dp0"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\notepad.exe" /v "Debugger" /d "\"%~dp0Notepad++Portable.exe\" -notepadStyleCmdline -z" /f
cls
echo.
echo.
@djraw
djraw / win10-god-mode.md
Last active December 1, 2021 18:38
Windows 10 god mode aktivieren

Windows 10 god mode

Schritt 1: Leeren Ordner auf dem Desktop anlegen Über das Kontextmenü (Rechte Maustaste) legt ihr mit Hilfe der "Neu -> Ordner"-Funktion einen neuen Ordner auf eurem Desktop an.

Schritt 2: Benennt den Ordner zur Aktivierung des "God Mode" Wurde der Ordner unter dem Standardnamen "Neuer Ordner" erstellt, springt euer Cursor direkt im Anschluss in das Namensfeld, sodass ihr diesen umbenennen könnt. Tragt hier anstelle eines klassischen Ordnernamens folgende Zeichenkette ein:

GodMode.{ED7BA470-8E54-465E-825C-99712043E01C}

@djraw
djraw / Nohup with zsh on Synology DSM.md
Created April 11, 2021 20:40 — forked from hazcod/Nohup with zsh on Synology DSM.md
How to run scripts in the background.
  • Install the ZSH shell from SynoCommunity packages
  • Connect to your Synology over SSH
  • Switch over to your new ZSH shell zsh
  • Set following parameter to allow detaching of our shell setopt NO_HUP
  • Run your command using nohup and ampersand nohup <command> &
  • Detach using CTRL+D or likewise
@djraw
djraw / 1v1.cfg
Created August 18, 2020 15:15 — forked from sebastiandero/1v1.cfg
1v1 config for CSGO
bot_kick;
exec gamemode_competitive;
mp_free_armor 1;
mp_freezetime 3;
mp_weapons_allow_map_placed 1;
mp_humanteam any;
mp_restartgame 1;
mp_round_restart_delay 3;
mp_roundtime 80250;
mp_maxrounds 30;
@djraw
djraw / qcow2vdi.md
Created February 25, 2020 16:03 — forked from denji/qcow2vdi.md
convert a qcow2 vm to a VirtualBox vm format

VirtualBox command-line interface (VBoxManage) provides an easy way to convert raw disk image to the VDI/VMDK format and otherwise.

Let's assume that we have raw image of the sdb device:

$ sudo dd if=/dev/sdb of=./sdb.raw

To use it with VirtualBox we need to convert it to the VDI format:

$ VBoxManage convertdd sdb.raw sdb.vdi --format VDI