Skip to content

Instantly share code, notes, and snippets.

View diffficult's full-sized avatar
💽
the big switcharoo

reese diffficult

💽
the big switcharoo
View GitHub Profile
@diffficult
diffficult / reglas.md
Last active August 17, 2020 07:13
Reglas del Clan

Nuestra Comunidad

La idea detras de este clan desde un inicio siempre fue juntarse con amigos, hacer nuevos amigos y ayudarnos mutuamente para realizar actividades tanto PVE como PVP de cualquier dificultad sin presiones, despues de todo esto es un juego, una actividad recreativa.

REGLAS

- Los miembros del clan deben ser mayores de 18 años.

@diffficult
diffficult / perprogram_gtktheme.md
Created August 2, 2020 23:19
Use different GTK themes for specific programs

Use a different GTK2/3 theme for specific programs

Why would you want to specify a different theme for a program?

Most common scenario, you installed a program that looks horrible or unreadable on your current theme or variation of that theme (light, dark). There's a simple workaround for most programs to fix this problem.


GTK 2

@diffficult
diffficult / trimsetup.md
Created August 2, 2020 09:06
Proper TRIM setup on your system

TRIM on your Linux System

⚠️ WARNING ⚠️

DO NOT ENABLE BOTH PERIODIC TRIM AND CONTINOUS TRIM AT THE SAME TIME

ALSO DEBIAN, REDHAT AND OTHERS HIGHLY RECOMMEND TO DITCH CONTINUOS TRIM TO KEEP YOUR SSD HEALTHY AND THERE'S NO GOOD REASON TO HAVE IT RUNNING ON YOUR SYSTEM.


@diffficult
diffficult / AuthyToOtherAuthenticator.md
Created February 15, 2020 05:41 — forked from gboudreau/AuthyToOtherAuthenticator.md
Export TOTP tokens from Authy

Generating Authy passwords on other authenticators


There is an increasing count of applications which use Authy for two-factor authentication. However many users who aren't using Authy, have their own authenticator setup up already and do not wish to use two applications for generating passwords.

Since I use 1Password for all of my password storing/generating needs, I was looking for a solution to use Authy passwords on that. I couldn't find any completely working solutions, however I stumbled upon a gist by Brian Hartvigsen. His post had a neat code with it to generate QR codes (beware, through Google) for you to use on your favorite authenticator.

His method is to extract the secret keys using Authy's Google Chrome app via Developer Tools. If this was not possible, I guess people would be reverse engineering the Android app or something like that. But when I tried that code, nothing appeared on the screen. My gues

@diffficult
diffficult / bluetoothdoubledipping.md
Last active March 19, 2025 13:52
Bluetooth Pairing one device on Dual Boot of Windows & Linux - Stop having to Pair Devices

Bluetooth Pairing one device on Dual Boot of Windows & Linux - Stop having to Pair Devices

You may have experienced when dual booting that you need to re-pair your bluetooth devices (ie., Headphones, mouse, keyboard, etc) this usually happens because you have already paired the device with another operating system using the same bluetooth adapter when dual booting (either Linux or Windows).

Some devices cannot handle multiple pairings associated with the same MAC address (ie., bluetooth adapter). As per suggested on the ArchWiki you can fix this by re-pairing the device each time, but there's actually another solution to not do so each time you choose to use your device on a different OS.

How can we accomplish this?

Easy, just pair the device on a OS and copy the bluetooth keys generated to the other OS so our device doesn't notice the difference.

@diffficult
diffficult / pi_mount_usb.md
Last active August 1, 2021 22:38 — forked from etes/pi_mount_usb.md
How to setup mount / auto-mount USB Hard Drive on Raspberry Pi

How to setup mount / auto-mount USB Hard Drive on Raspberry Pi

Follow the simple steps in the order mentioned below to have your USB drive mounted on your Raspberry Pi every time you boot it.

These steps are required especially if your are setting up a Samba share, or a 24x7 torrent downloader, or alike where your Raspberry Pi must have your external storage already mounted and ready for access by the services / daemons.

Step 0. Plug in your USB HDD / Drive to Raspberry Pi If you are using a NTFS formatted drive, install the following

@diffficult
diffficult / x220_update_bios_from_linux.md
Created May 15, 2019 13:01
Updating the BIOS on Lenovo laptops from Linux using a USB flash stick
  1. Go to support.lenovo.com (or better use a search engine because the Lenovo website is beautiful but technically pretty broken and slow) and search for the BIOS upgrade of your laptop model.

  2. Download the most recent ISO file. Look for “BIOS bootable update CD”.

  3. Convert the ISO image using the geteltorito utility

Example:

geteltorito -o bios.img g2uj18us.iso
@diffficult
diffficult / pihole_grafana.md
Created May 11, 2019 16:15
Pi-hole Dashboard on Grafana
@diffficult
diffficult / stow_4_idiots.md
Last active December 2, 2022 01:12
Basic stow guide for idiots

KISS instructions on how stow works and how to easily set it up

Create a git repo directly in your home folder, .g. ~/dotfiles

In this directory, you create a folder with a "package name" and in it the exact folder structure this app has it's config files in your home folder.

Let's take i3 for example, which has its config file in ~/.config/i3/config

Move this file into ~/dotfiles/i3/.config/i3/config. Now you can git add and git commit it, like usual.

@diffficult
diffficult / w10_bcd_error_0xc0000098.md
Last active September 14, 2023 04:28
Windows 10 Error: BCD missing - error 0xc0000098

Fixing Boot Error 0xc0000098 on Windows 10 (8 & 7)

Method 1: Run Automatic/Startup Repair

  1. Insert the Windows 10 bootable installation DVD and restart your PC.

  2. When prompted to Press any key to boot from CD or DVD, press any key to continue.

  3. Select your language preferences, and click Next. Click Repair your computer in the bottom-left.