Skip to content

Instantly share code, notes, and snippets.

@miguelmota
miguelmota / 30-touchpad.conf
Created February 29, 2020 02:44
Arch linux enable tap to click on touchpad
Section "InputClass"
Identifier "touchpad"
Driver "libinput"
MatchIsTouchpad "on"
Option "Tapping" "on"
Option "TappingButtonMap" "lmr"
EndSection
@miguelmota
miguelmota / arch_install.sh
Last active January 13, 2023 12:34
Arch linux install guide notes
#https://wiki.archlinux.org/index.php/Installation_guide
# install git and other tools
sudo pacman -Sy git vim wget
# setup keyboard layout
loadkeys us
# (optional) remove any non-US mirrors from mirrorlist
vim /etc/pacman.d/mirrorlist
@miguelmota
miguelmota / process_names.txt
Last active March 4, 2024 22:20
macOS process whitelist
# not an exhaustive list
nsurlsessiond "icloud sync"
fseventsd "macos file system events"
WindowServer "macos windows"
DisplayLinkManager "macos driver"
configd "macos dynamic configuration"
displaypolicyd "macos process"
CommCenter "macos keychain"
kernel_task "macos kernel"
@miguelmota
miguelmota / linux_notes.txt
Last active June 7, 2022 03:23
CompTIA Linux+ certification notes
dmesg: kernel output logs
udev: device manager, can create rules to run programs when devices are detected
dbus:allows processes to communicate to each other
sysfs: virtual filesystem for kernel subsystems, /sys
procfs: similar to sysfs, information about processes, /proc
lsmod: list modules used
modprobe/rmmod:enable,disable modules
lspci:connected pci modules
run levesl:0=shutdown,1=single user,2=multi-user,3=normal boot,4=unused/customizable,5=level 3+gui,6=reboot
/etc/inittab:specify default run level
@maurelian
maurelian / console.sol
Last active February 25, 2022 18:44
A JS style console.log() function for solidity.
pragma solidity ^0.4.10;
// Update: Just use HardHat's: https://github.com/nomiclabs/hardhat/blob/master/packages/hardhat-core/console.sol
// Enables event logging of the format `console.log('descriptive string', variable)`,
// without having to worry about the variable type (as long as an event has been declared for that type in the
// Console contract.
contract Console {
event LogUint(string, uint);
@miguelmota
miguelmota / i3-cheat-sheet.md
Last active May 3, 2024 21:16 — forked from JeffPaine/i3-cheat-sheet.md
i3 Window Manager Cheat Sheet

i3 Window Manager Cheat Sheet

$mod refers to the modifier key (window/command or alt by default depending on config)

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
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active May 29, 2024 15:29
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname