Skip to content

Instantly share code, notes, and snippets.

View gombossb's full-sized avatar

Sándor Gombos gombossb

View GitHub Profile
@gombossb
gombossb / sshd_config_win32.txt
Created November 28, 2020 21:51
Secure ed25519 configuration for OpenSSH Win32
# Secure ed25519 configuration for OpenSSH Win32
# OpenSSH server can be installed on Windows 10 1809+ or Server 2019+ systems by opening Settings > Apps > Apps and Features > Manage Optional Features and adding "OpenSSH Server"
# Config file is located at C:\ProgramData\ssh\sshd_config
# You should copy your public key to this host before disabling PasswordAuthentication
# You can view all configuration options for sshd_config at https://man.openbsd.org/sshd_config
# You can view Win32-specific configuration options for this file at https://github.com/PowerShell/Win32-OpenSSH/wiki/sshd_config
# Don't use this configuration blindly
# You should carefully look up all options from the documentation if this is the only gate to your system
# This is the sshd server system-wide configuration file. See
@gombossb
gombossb / watch2gether_color_changer.js
Created April 10, 2021 11:20
Watch2gether color changer script
// watch2gether background color changer script
// change this to your room code
let roomCode = "abcdefghijklmnopqr";
function randomColor(){
return "#" + Math.floor(Math.random()*16777215).toString(16).toUpperCase();
}
function req(){
fetch("https://w2g.tv/rooms/"+roomCode+"/sync_update", {
@gombossb
gombossb / gettysburg.py
Last active August 6, 2021 20:38
BME VIK GT Gettysburg
mode = 'decode'
cipher = 'LYXCMLICLRFWJHZKEVVCDRXHU'
plaintext = 'HELLOWORLD'
key = 'JULYTHREE'
#key = 'AUGUSTFIVE'
# az A-Z karakterkódokat 0-25 között tároljuk, -65 offsettel az ASCII-tól
# az abc túlcsordítását modulo 26-al oldjuk meg
# karakter számmá alakítása
## END OF FILE #################################################################
# The following lines were added by compinstall
zstyle :compinstall filename '/home/user/.zshrc'
autoload -Uz compinit
compinit
# End of lines added by compinstall
# Lines configured by zsh-newuser-install
HISTFILE=~/.histfile
HISTSIZE=1000
@gombossb
gombossb / fb_order_group_posts_by_date_desc.md
Created July 21, 2023 11:47
Order Facebook group posts by date posted descending

So recently I just wanted to see the posts of a FB group ordered by the date of posting descending. I know for sure that there used to be such a feature and I'm sad to see that it's no more, because it's more important for such companies to remove useful features and add useless ones (like who tf wanted to see their friends' stories in their feeds and make them seen when scrolled over when there's already such a section on the top of the page and you can deliberately decide whether to click on them or not).

Fortunately for me, last year I saved a few links as bookmarks of groups where I had this ordering selected. Now I checked and it still works.

In order to change the ordering all you have to do is append the ?sorting_setting=CHRONOLOGICAL to the URL