Skip to content

Instantly share code, notes, and snippets.

@emresaglam
emresaglam / converter.py
Last active April 12, 2022 13:32
Heimdall to Homer migration script. (No error handling, etc...)
# MINI HOWTO
# 0. You will need PyYaml and BeautifulSoup python libraries. (Installation is up to you to figure it out)
# 1. Go to your heimdall page and save the html file. Note the file location.
# 2. Add the file location to heimdall_page variable.
# 3. Add the current homer yml file location as base_yaml variable.
# 4. Add your generated homer yaml file location to homer_config variable.
# 5. Define your icons folder. (Mine was in homer-icons/png)
import yaml
from yaml.loader import SafeLoader
from bs4 import BeautifulSoup as BS
@Jabarabo
Jabarabo / githubpull.md
Last active June 7, 2025 00:10
Gist of a stolen gist
@JamesMenetrey
JamesMenetrey / README.md
Last active September 29, 2022 08:27
Install Oh-My-Zsh + iTerm2 with Solarized + System-wide console in 2017 (macOS)

Install iTerm2 with Solarized in 2017

Here is the looks and feel of your terminal once the tutorial has been applied on your system:

Install iTerm2

Using Homebrew:

@Hengjie
Hengjie / tutorial.md
Last active June 27, 2025 22:55
How to passthrough SATA drives directly on VMWare ESXI 6.5 as RDMs

How to passthrough SATA drives directly on VMWare EXSI 6.5 as RDMs

There aren't many tutorials about this, the only tutorials I've found were about passing through entire PCIe cards to VMs, or refered to old ESXI versions (below 6.5) that used a more comprehensive desktop client instead of the web app. In v6.5, the web app was introduced and the desktop client was deprecated. You used to be able to setup RDMs in the desktop client, but with the introduction of the web console, this is no longer the case. This tutorial shows you how to pass SATA HDDs to the virtual machine on VMWare ESXI 6.5. This tutorial is partially based on VMWare's own KB and the now deprecated Forza IT blog post.

A word about VMWare ESXI 6.7

There is now an option while editing your VM's settings to add a New raw disk when you click `Add ha

@myusuf3
myusuf3 / delete_git_submodule.md
Created November 3, 2014 17:36
How effectively delete a git submodule.

To remove a submodule you need to:

  • Delete the relevant section from the .gitmodules file.
  • Stage the .gitmodules changes git add .gitmodules
  • Delete the relevant section from .git/config.
  • Run git rm --cached path_to_submodule (no trailing slash).
  • Run rm -rf .git/modules/path_to_submodule (no trailing slash).
  • Commit git commit -m "Removed submodule "
  • Delete the now untracked submodule files rm -rf path_to_submodule
@TobiasWooldridge
TobiasWooldridge / gist:22f0cdca75190b9a473f
Last active April 26, 2025 22:49
How to Unbrick a Kindle Paperwhite

How to unbrick an Amazon Kindle Paperwhite™

This guide instructs you in how to unbrick an Amazon Kindle Paperwhite. The consequences of following it are your own responsibility. This method (opening the Kindle and using the serial interface) should be a last resort and should only be considered if other methods fail

The Guide

  1. Pry open Kindle using a prying tool
  2. Unscrew the screen and remove it from the base. Note that there's a screw hidden under the adhesive at the top in the middle
  3. Solder tin wire to serial ports on the bottom
  4. Attach tin wire to USB TTY device (order is ground, RX, TX, from the kindle's perspective, where GND is the smallest pad) and plug USB TTY device into your computer
  5. Open Putty on your computer in serial mode, with the serial port specified as your USB device and baud configured to 115200
@vitorbritto
vitorbritto / regex.md
Last active June 4, 2025 16:47
Regex Cheat Sheet

Regular Expressions

Basic Syntax

  • /.../: Start and end regex delimiters
  • |: Alternation
  • (): Grouping
@octocat
octocat / .gitignore
Created February 27, 2014 19:38
Some common .gitignore configurations
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
@bratta
bratta / README.md
Created July 15, 2011 20:56
Ruby command line Spotify search

Search Spotify from the command line

This simple script uses the meta-spotify gem to query Spotify on the CLI. If you have iTerm2, the links generated can be clicked with Command-Click to go straight to Spotify.

This was done for the simple purpose of playing around with the meta API. Feel free to fork, improve my quickly-thrown-together Ruby code, or ignore and roll your eyes.

Installation

Note: This script requires Ruby 1.9. If you're not using that by now, you're pretty lame. :p Install RVM and get going!

@jarvist
jarvist / lfgss.py
Created March 18, 2011 10:28
Beautiful Soup / Python code to monitor LFGSS message board and spawn a chrome tab on new adverts
from BeautifulSoup import BeautifulSoup
import urllib2
import re
import time
import sys
import os
user_agent = 'Mozilla/5 (Solaris 10) Gecko'
headers = { 'User-Agent' : user_agent }