Skip to content

Instantly share code, notes, and snippets.

View nosmall's full-sized avatar

Jirka aka NOsmall or NoSmallCZ nosmall

View GitHub Profile
@lalibi
lalibi / Install-RustDesk.ps1
Last active January 24, 2025 12:54
Install-RustDesk.ps1
$ErrorActionPreference= 'SilentlyContinue'
$server_ip = Read-Host -Prompt 'Enter the server IP (<Enter> for none)'
$server_key = Read-Host -Prompt 'Enter the server public key (<Enter> for none)'
$rustdesk_pw = Read-Host -Prompt 'Enter a permanent password (<Enter> for random)'
# Generate a random password if none is provided
if ($rustdesk_pw -eq '')
{
$rustdesk_pw = -join ((65..90) + (97..122) + (48..57) | Get-Random -Count 16 | % { [char]$_ })
@Kambaa
Kambaa / README.md
Last active February 2, 2024 07:15
RustDesk Self Hosted Server Working Example

RustDesk Server Working Example

This example runs a RustDesk server (with detailed/debug logs enabled and secured with id_ed25519 key that only you can use in your machines if you configure RustDesk clients) and you can use the server resources instead of RustDesk public resources.

@ChuckMichael
ChuckMichael / notepadplusplus_win11.reg
Last active October 8, 2023 23:56
***/!\Not needed starting from Notepad++ v8.5.1/!\*** It adds "Edit with Notepad++" option to new context menu under Windows 11. Thanks to @AveYo!
Windows Registry Editor Version 5.00
; Edit with Notepad++ in Windows 11 contextmenu - by AveYo (https://gist.github.com/AveYo)
[-HKEY_CURRENT_USER\Software\Classes\*\shell\extract]
[HKEY_CURRENT_USER\Software\Classes\*\shell\extract]
"MuiVerb"="Edit with &Notepad++"
"Icon"="C:\\Program Files\\Notepad++\\notepad++.exe,0"
"MultiSelectModel"="Player"
"NeverDefault"=""
"AppliesTo"="NOT .zip"
@mikestecker
mikestecker / optimising-unifi-performance.md
Last active February 19, 2025 20:54
optimising-unifi-performance

optimising-unifi-performance

NOTE: Content below is written by Adrian Mace. Click here for an updated version.

Below are the key settings that I apply on any unifi installation for optimal performance.

Settings

Settings > Site

  • Ensure Enable Advanced Features is enabled
    This allows you to follow along with the guide in it's entirety.
@bradmb
bradmb / letsencrypt_ssl_bindings.ps
Last active September 24, 2021 09:43
Add Let's Encrypt SSL Certificates To IIS Bindings via Powershell
if (-not (Test-Path -Path "C:\\certs\\win-acme")) {
$url = "https://github.com/win-acme/win-acme/releases/download/v2.1.7/win-acme.v2.1.7.807.x64.pluggable.zip"
$output = "C:\\certs\\win-acme.zip"
Invoke-WebRequest -Uri $url -OutFile $output
Expand-Archive "C:\\certs\\win-acme.zip" -DestinationPath "C:\\certs\\win-acme"
}
cd "C:\\certs\\win-acme"
(In both Windows)
1. Go to C:\Users\{USER}\AppData\Roaming\AnyDesk
2. Copy & Paste 'thumbnails'
3. Open 'user.conf'
4. Replace the line 'ad.roster.items='
5. Done.

SCREEN Quick Reference

Getting in

Description Command
start a new screen session with session name screen -S
list running sessions/screens screen -ls
attach to a running session screen -x
attach to session name screen -r
@jeanatcismet
jeanatcismet / manual-rotate-backups.sh
Created March 12, 2019 17:57
dry-run of rotate-backups and transforming result into commands for manual removal of file via rclone_mount
#!/bin/sh
RCLONE_CONF=$(pwd)/rclone.conf
RCLONE_SRC=gdrive:/cismet/backups/
ROTATE_BACKUPS_PATH="*"
ROTATE_BACKUPS_OPTIONS="--dry-run --daily=10 --weekly=5 --monthly=13 --yearly=5"
# ===
DATA=$(pwd)/data
@arthuralvim
arthuralvim / screen.md
Last active March 24, 2020 11:48
GNU Screen Commands

Screen Commands

On the command prompt, type screen. Run the desired program. Use the key sequence ctrl-a + ctrl-d to detach from the screen session. Reattach to the screen session by typing screen -r.

List running screen sessions

$ screen -list

or

@Eddy-Barraud
Eddy-Barraud / Rclone-Fuse.md
Created August 26, 2018 15:32
Mount cloud disk (OneDrive,etc...) In Linux Using Rclone (&fuse)

Thanks to Rclone you can mount any kind of cloud disk !

Begin by installing rclone

curl https://rclone.org/install.sh | sudo bash

Add a new remote to Rclone

rclone config ...

detailed instructions HERE : https://rclone.org/docs/