Skip to content

Instantly share code, notes, and snippets.

@c0m4r
c0m4r / void_linux_hetzner_arm_ipv6.md
Last active February 15, 2025 18:32
Void Linux installation on Hetzner Cloud VPS (Arm64/IPv6-only)

Void Linux installation on Hetzner Cloud VPS

(Arm64/IPv6-only)

This guide describes how to install Void Linux on ARM Hetzner Cloud instances with IPv6-only setup.

image

Table of contents:

@SpaceNerden
SpaceNerden / sshnotification
Created September 4, 2023 21:07
SSH login notification with Gotify
#!/bin/bash
# Append this command to /etc/pam.d/sshd:
# session optional pam_exec.so <path to script>
# Remember to chown +x!
exec &> /dev/null #Hide output
Gotify_URL='https://gotify.example.com'
Gotify_Token='awawawawawawawawawawawawa'

Culture

  • What do you like best about working there?
  • What do you like least?
  • How would you describe this company's culture? engineering culture?
  • What causes the most conflict among employees here?
  • What would you change if you could?
  • How has the company changed in the past five years? How do you think it will change in the next five?
  • How long has the longest serving team member been there?
  • What's the average or median tenure?
@huytd
huytd / wordle.md
Last active April 1, 2025 00:28
Wordle in less than 50 lines of Bash

image

How to use:

./wordle.sh

Or try the unlimit mode:

@andrebrait
andrebrait / keychron_linux.md
Last active April 19, 2025 05:15
Keychron keyboards on Linux + Bluetooth fixes

Here is the best setup (I think so :D) for K-series Keychron keyboards on Linux.

Note: many newer Keychron keyboards use QMK as firmware and most tips here do not apply to them. Maybe the ones related to Bluetooth can be useful, but everything related to Apple's keyboard module (hid_apple) on Linux, won't work. As far as I know, all QMK-based boards use the hid_generic module instead. Examples of QMK-based boards are: Q, Q-Pro, V, K-Pro, etc.

Most of these commands have been tested on Ubuntu 20.04 and should also work on most Debian-based distributions. If a command happens not to work for you, take a look in the comment section.

Make Fn + F-keys work (NOT FOR QMK-BASED BOARDS)

Older Keychron keyboards (those not based on QMK) use the hid_apple driver on Linux, even in the Windows/Android mode, both in Bluetooth and Wired modes.

@probonopd
probonopd / Wayland.md
Last active April 16, 2025 20:29
Think twice about Wayland. It breaks everything!

Think twice before abandoning Xorg. Wayland breaks everything!

Hence, if you are interested in existing applications to "just work" without the need for adjustments, then you may be better off avoiding Wayland.

Wayland solves no issues I have but breaks almost everything I need. Even the most basic, most simple things (like xkill) - in this case with no obvious replacement. And usually it stays broken, because the Wayland folks mostly seem to care about Automotive, Gnome, maybe KDE - and alienating everyone else (e.g., people using just an X11 window manager or something like GNUstep) in the process.


As 2024 is winding down:

@cemkeylan
cemkeylan / README
Last active December 27, 2022 20:01
More info on: https://cemkeylan.com/blog/20200828-wpa-add-script.html
@rainchen
rainchen / webrick-webify.rb
Last active September 15, 2020 20:37
a ruby implement of webify(https://github.com/beefsack/webify)
require 'webrick'
require 'open3'
server = WEBrick::HTTPServer.new :Port => 8000
server.mount_proc('/') { |req, res| res.body = Open3.capture2(ARGV[0], :stdin_data=>req.body)[0] }
trap('INT') { server.shutdown }
server.start
# server:
# ruby webify-webrick.rb "wc -c"
@meandavejustice
meandavejustice / windows10sanitysetup.md
Last active August 28, 2020 06:51
Windows 10 Sanity Setup

windows 10 sanity setup

Basic preferences

Disable all telemetry and privacy breaching settings on initial setup. (voice search, location services, etc...)

remap capslock
$hexified = "00,00,00,00,00,00,00,00,02,00,00,00,1d,00,3a,00,00,00,00,00".Split(',') | % { "0x$_"};
$kbLayout = 'HKLM:\System\CurrentControlSet\Control\Keyboard Layout';
@Yukaii
Yukaii / README.md
Created May 24, 2020 16:41
GNU Pass to Bitwarden migration

GNU Pass to Bitwarden migration

  1. Use pass2csv to export generic csv
  2. Add header folder,name,password,comments to first line of that csv file
  3. Use the script to convert file
  4. Import password with "Bitwarden (csv)" format

Remeber to delete your csv file safely once it's imported!