Skip to content

Instantly share code, notes, and snippets.

View Mackaber's full-sized avatar
🚂
I like trains

Mackaber (Miguel Bravo) Mackaber

🚂
I like trains
View GitHub Profile
@ignapk
ignapk / chromeos-kernel.md
Last active April 28, 2023 12:29
Install ChromeOS kernel

First for all distros:

wget https://github.com/eupnea-linux/chromeos-kernel/releases/download/v5.10.165/bzImage
wget https://github.com/eupnea-linux/chromeos-kernel/releases/download/v5.10.165/modules.tar.xz
sudo tar xf modules.tar.xz -C /lib/modules
mv bzImage vmlinuz

Then for specific distros

Fedora

@Gustavo-Kuze
Gustavo-Kuze / force-ctrl-c-v.md
Last active June 3, 2024 09:37
Enable copy and paste in a webpage from the browser console
javascript:(function(){
  allowCopyAndPaste = function(e){
  e.stopImmediatePropagation();
  return true;
  };
  document.addEventListener('copy', allowCopyAndPaste, true);
  document.addEventListener('paste', allowCopyAndPaste, true);
  document.addEventListener('onpaste', allowCopyAndPaste, true);
})(); 
@drbrain
drbrain / nightmares.rb
Last active July 25, 2017 17:40
A method that has a default argument that defines a method that contains a here-document
def a l = def b; <<-NIGHTMARES; end; puts send l; end
😱😱😱
NIGHTMARES
a
@namuol
namuol / INSTALL.md
Last active July 24, 2023 11:53
rage-quit support for bash

rage-quit support for bash

HOW TO INSTALL

Put flip somewhere in your $PATH and chmod a+x it.

Copy fuck into ~/.bashrc.

@brandonb927
brandonb927 / osx-for-hackers.sh
Last active June 13, 2024 02:39
OSX for Hackers: Yosemite/El Capitan Edition. This script tries not to be *too* opinionated and any major changes to your system require a prompt. You've been warned.
#!/bin/sh
###
# SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer)
# For Sierra or newer, see https://github.com/mathiasbynens/dotfiles/blob/master/.macos
###
# Alot of these configs have been taken from the various places
# on the web, most from here
# https://github.com/mathiasbynens/dotfiles/blob/5b3c8418ed42d93af2e647dc9d122f25cc034871/.osx