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 / 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
@djraw
djraw / qcow2vdi.sh
Created February 25, 2020 16:03 — forked from mamonu/qcow2vdi.sh
convert a qcow2 vm to a VirtualBox vm format
qemu-img convert -O vdi gnome.qcow2 gnome.vdi
#if its a raw image then:
VBoxManage convertdd opnstk.raw VBox.vdi --format VDI
@djraw
djraw / nginx.conf
Created February 10, 2020 20:01 — forked from nrollr/nginx.conf
NGINX config for SSL with Let's Encrypt certs
# UPDATED 17 February 2019
# Redirect all HTTP traffic to HTTPS
server {
listen 80;
listen [::]:80;
server_name www.domain.com domain.com;
return 301 https://$host$request_uri;
}
# SSL configuration