Skip to content

Instantly share code, notes, and snippets.

@JeffPaine
JeffPaine / i3-cheat-sheet.md
Last active May 5, 2024 22:39
i3 Window Manager Cheat Sheet

i3 Window Manager Cheat Sheet

$mod refers to the modifier key (alt by default)

General

  • startx i3 start i3 from command line
  • $mod+<Enter> open a terminal
  • $mod+d open dmenu (text based program launcher)
  • $mod+r resize mode ( or to leave resize mode)
  • $mod+shift+e exit i3
@sjdawson
sjdawson / !simhub-scripts.js
Last active May 5, 2024 22:38
SimHub JS Scripts
// A collection of JS snippets that can be used in SimHub: https://github.com/SHWotever/SimHub
@keithpl
keithpl / arch-linux-install-notes.md
Last active May 5, 2024 22:38
Arch Linux Installation Notes
  • UEFI
  • Systemd-boot (gummiboot)
  • Encrypted root partition
  • mkinitcpio
  • Unified Kernel Image (UKI)
  • Intel CPU
  • NVIDIA GPU
  • Wayland (sway)
  • Secure Boot (optional)
@RabaDabaDoba
RabaDabaDoba / ANSI-color-codes.h
Last active May 5, 2024 22:35 — forked from iamnewton/bash-colors.md
The entire table of ANSI color codes working in C!
/*
* This is free and unencumbered software released into the public domain.
*
* For more information, please refer to <https://unlicense.org>
*/
//Regular text
#define BLK "\e[0;30m"
#define RED "\e[0;31m"
#define GRN "\e[0;32m"
@lattner
lattner / TaskConcurrencyManifesto.md
Last active May 5, 2024 22:32
Swift Concurrency Manifesto
@nebhead
nebhead / CustomUSBName.md
Last active May 5, 2024 22:29
Instructions for Adding Custom Naming for Arduino USB Device

The following is capturing instructions on how to add custom naming for an Arduino Leonardo (or generic pro-micro) for my Arcade Controller device. I wanted to have a simple record so that when I inevitably come back to this someday I can recall how I accomplished this. Reference was taken from the following YouTube video (https://youtu.be/hoCOq9Ngp44?t=1156) at approximately 19m16s.

WINDOWS Instructions:

Create a new set of folders: ~\Documents\Arduino\hardware\daemonbite\avr

Copy everything from C:\Program Files (x86)\Arduino\hardware\arduino\avr to this new folder.

@raspi
raspi / enable-all-advanced-power-settings.ps1
Last active May 5, 2024 22:24
Enable all advanced power settings in Windows.
# List all possible power config GUIDs in Windows
# Run: this-script.ps1 | Out-File powercfg.ps1
# Then edit and run powercfg.ps1
# (c) Pekka "raspi" Järvinen 2017
$powerSettingTable = Get-WmiObject -Namespace root\cimv2\power -Class Win32_PowerSetting
$powerSettingInSubgroubTable = Get-WmiObject -Namespace root\cimv2\power -Class Win32_PowerSettingInSubgroup
Get-WmiObject -Namespace root\cimv2\power -Class Win32_PowerSettingCapabilities | ForEach-Object {
$tmp = $_.ManagedElement
@josemamira
josemamira / cv_municipios.geojson
Last active May 5, 2024 22:23
Geojson de los municipios de la Comunidad Valenciana
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@un1tz3r0
un1tz3r0 / refusal_demo.ipynb
Last active May 5, 2024 22:22
refusal_demo.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@wojteklu
wojteklu / clean_code.md
Last active May 5, 2024 22:20
Summary of 'Clean code' by Robert C. Martin

Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.


General rules

  1. Follow standard conventions.
  2. Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
  3. Boy scout rule. Leave the campground cleaner than you found it.
  4. Always find root cause. Always look for the root cause of a problem.

Design rules