Skip to content

Instantly share code, notes, and snippets.

@MaximilianKohler
MaximilianKohler / xenforo-forum-guide.md
Last active April 1, 2024 04:32
Detailed startup guide for newbies on migrating to, and setting up a Xenforo forum. Including reddit-like titles, and threaded comment view. [Centmin Mod]
@bitaller
bitaller / Disabling Windows 10-11 Update.md
Created December 15, 2022 07:14
Disabling Windows 10-11 Update

if you just want to stop the automatic-update but you still want to be able to install updates yourself by launching the Windows update manually, you just need to apply a group-policy: run: gpedit.msc, computer configuration, administrative templates, windows components, windows update, configure automatic updates - set to disabled.

01_start_run_gpedit_msc_group_policy

02_group_policy_windowsupdate_configureautomaticupdates_disabled_noautoupdate

or apply:

@AveYo
AveYo / . Pitch Black Theme.reg
Last active April 17, 2024 09:03
Pitch Black Theme.reg - now for Ctrl+Alt+Del (and logon on 11) as well - revised 2022-06-16
Windows Registry Editor Version 5.00
; Pitch Black Theme preset by AveYo, AccentPalette idea by /u/Egg-Tricky
; for Ctrl+Alt+Del, Logon, Taskbar, Start Menu, Action Center (10 & 11)
; revised 2022-06-16: show active taskbar button in accent color
[-HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Accent]
[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Accent]
"AccentColorMenu"=dword:aa000000 ; Window borders and titlebar
"StartColorMenu"=dword:aa202020 ; Modals in UWP ex. Apply new refresh rate in 10
@goregrish
goregrish / mydomain.conf
Last active October 30, 2023 13:40
Xenforo Nginx Virtual Domain Config SSL only | provide your SSL cert details twice here from include, example: /etc/nginx/snippets/ssl.conf
server {
listen 80;
server_name www.mydomain.com mydomain.com;
return 301 https://mydomain.com$request_uri;
}
server {
listen 443 ssl;
server_name www.mydomain.com;
# managed by Certbot stuff
@goregrish
goregrish / nginx.conf
Last active October 30, 2023 13:39
Xenforo forum (cloudflare enabled) nginx.conf for virtual hosting domains from /etc/nginx/domains/ | handles 15,000 Unique Visitors per day
user nginx nginx;
worker_processes auto; #some last versions calculate it automatically
# number of file descriptors used for nginx
# the limit for the maximum FDs on the server is usually set by the OS.
# if you don't set FD's then OS settings will be used which is by default 2000
worker_rlimit_nofile 100000;
# only log critical errors
@goregrish
goregrish / secure_link.md
Last active December 25, 2023 16:11
Nginx ngx_http_secure_link_module and PHP
@altmind
altmind / oo-shutup10-privacy.reg
Created March 8, 2020 10:17
oo-shutup10-privacy.reg
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppContainer\Storage\microsoft.microsoftedge_8wekyb3d8bbwe\MicrosoftEdge\FlipAhead]
"FPEnabled"=dword:00000000
[HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppContainer\Storage\microsoft.microsoftedge_8wekyb3d8bbwe\MicrosoftEdge\Main]
"ShowSearchSuggestionsGlobal"=dword:00000000
"DoNotTrack"=dword:00000001
[HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppContainer\Storage\microsoft.microsoftedge_8wekyb3d8bbwe\MicrosoftEdge\ServiceUI]
@stroebs
stroebs / make-chr.sh
Last active March 16, 2024 06:13
Install Mikrotik CHR on a Digital Ocean droplet (Ubuntu 20.04 tested working 29/03/2022)
#!/bin/bash
#
# Digital Ocean Ubuntu 18.04 x64 Droplet with "Regular Intel" CPU.
# Running:
# git clone https://gist.github.com/54fc09734a3911e91eeeb43434f117df.git
# cd 54fc09734a3911e91eeeb43434f117df/
# chmod +x make-chr.sh
# ./make-chr.sh
#
# Once the reboot is done, login with root/CHANGEME and change the password!
@ammgws
ammgws / letsencrypt-acme-guide.md
Last active July 23, 2023 17:19
Using acme.sh script to renew LetsEncrypt certs using non-standard SSL port

1. Install acme.sh shell script

git clone https://github.com/Neilpang/acme.sh.git
cd acme.sh
./acme.sh --install

Optionally, set the home dir and/or account info (if already have one).
If was previously using LetsEncrypt's certbot, can probably get account info from /etc/letsencrypt/accounts/acme-v01.api.letsencrypt.org/directory/*/regr.json.

@yasirkula
yasirkula / FileDownloader.cs
Last active February 26, 2024 05:52
C# Download Public File From Google Drive™ (works for large files as well)
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.IO;
using System.Net;
using System.Text;
/* EXAMPLE USAGE
FileDownloader fileDownloader = new FileDownloader();