Skip to content

Instantly share code, notes, and snippets.

@danieldogeanu
danieldogeanu / SyncFoldersOutsideOneDrive.md
Last active May 20, 2024 12:34
Sync Folders Outside OneDrive
  1. Find the Address of the folder you want to be synced. (ie. G:\Games\). Copy it.

  2. Find the OneDrive location you wish for it to sync to. Hold shift and right click. On the context menu, click open command window here.

  3. In the command window type mklink /j "YourCustomFolderName" G:\Games\ (G:\Games\ is the address of your original folder).

This is like a shortcut that tells any programs that look there to look at another directory. This will sync anything inside the address you tell it to the folder created in a onedrive directory


@bradp
bradp / setup.sh
Last active May 20, 2024 12:29
New Mac Setup Script
echo "Creating an SSH key for you..."
ssh-keygen -t rsa
echo "Please add this public key to Github \n"
echo "https://github.com/account/ssh \n"
read -p "Press [Enter] key after this..."
echo "Installing xcode-stuff"
xcode-select --install
@milnak
milnak / garlic-os-tips.md
Last active May 20, 2024 12:29
My set of GarlicOS tips #rg35xx

Garlic OS Tips (Windows-based)

GarlicOS Cookbook

Follow these instructions for an easy way to get up and going quickly! These are complete instructions, and will be the easiest way to get started on a new RG35XX.

Set up SD Card

Get a high quality SD (e.g. SanDisk Extreme) card, 128GB or larger, 256GB is recommended. Don't skimp here, they're cheap, and don't use the card that comes with the RG35XX as it's crap.

@betogrun
betogrun / setup.sh
Created May 14, 2024 20:26
Setup ubuntu
#!/bin/bash
# Exit immediately if a command exits with a non-zero status
set -e
# Logging function
log() {
echo "$(date '+%Y-%m-%d %H:%M:%S') - $1" | tee -a /var/log/setup_script.log
}
@fredjoseph
fredjoseph / OpenVPN.md
Last active May 20, 2024 12:30
[OpenVPN] Multi-TAP

OpenVPN, by default, installs only one TAP network interface. If you want to connect to multiple VPNs simultaneously you need a TAP interface for each VPN.

Add an additional TAP adapter

  • Open a command prompr with administrative rights
  • Go to the TAP install folder C:\Program Files\TAP-Windows\bin
  • Launch the addtap.bat script, the result will be :
    "devcon.exe" install "C:\Program Files\TAP-Windows\driver\OemWin2k.inf" tap0901
    

Device node created. Install is complete when drivers are installed...

@nosmall
nosmall / qBittorrent with Web UI on Ubuntu 20.04 (lazy guide).md
Last active May 20, 2024 12:26
qBittorrent with Web UI on Ubuntu 20.04 (lazy guide)

qBittorrent with Web UI on Ubuntu 20.04 (lazy guide)

WARNING: this guide is not about security, but about functionality, for example, never run applications as root. Be cautious.

sudo su
add-apt-repository ppa:qbittorrent-team/qbittorrent-stable && \
apt install -y qbittorrent qbittorrent-nox
@pudquick
pudquick / steamdeck_scripts.md
Last active May 20, 2024 12:27
Running shell scripts easily in Gaming mode on Steam Deck

Running shell scripts easily in Gaming mode on Steam Deck

(Alternatively: "How I stopped using Syncthing on Steam Deck")

Disclaimer: As the title implies, this is about shell scripting on your Steam Deck. The guide won't teach you how to do that part, it assumes you already have ideas in mind about what scripts you'd want to write. Stopping the usage of Syncthing was what I wanted to do with it, but you can do whatever you like.

Background (you can skip this part)

If you're an avid gamer who picked up a Steam Deck and now you're splitting your time between it and a more traditional gaming computer (or in my case, several other gaming systems as well), you may come across a situation where at some point you want to start doing more advanced things on your Steam Deck - which may mean "how do I get files onto or off of this thing".

@Dzhuneyt
Dzhuneyt / shelly_auto_reboot_script.js
Created November 12, 2023 10:46
Shelly Auto Reboot if no Internet Connection
let CONFIG = {
endpoints: [
"https://global.gcping.com/ping",
"https://us-central1-5tkroniexa-uc.a.run.app/ping",
],
//number of failures that trigger the reset
numberOfFails: 5,
//time in seconds after which the http request is considered failed
httpTimeout: 10,
//time in seconds for the relay to be off
@ahupowerdns
ahupowerdns / simple-adblock-powerdns.md
Last active May 20, 2024 12:24
How to do really simple adblocking with the PowerDNS Recursor 4.x

First, clone the Mozilla focus project and make it fetch its list:

$ git clone https://github.com/mozilla/focus.git
$ cd focus
$ ./checkout.sh
$ cd Lists

This delivers several JSON formatted files, of which we are going to use disconnect-advertising.json. We'll filter out the good bits using jq, and create a Lua representation:

(