Skip to content

Instantly share code, notes, and snippets.

View insomniac-afk's full-sized avatar

ellis insomniac-afk

View GitHub Profile
@tommybutler
tommybutler / smartcheck.sh
Last active June 3, 2024 09:02
Script to quickly scan the S.M.A.R.T. health status of all your hard drive devices in Linux (at least all the ones from /dev/sda to /dev/sdzz). You need smartctl installed on your system for this script to work, and your hard drives need to have S.M.A.R.T. capabilities (they probably do).
#!/bin/bash
# install the smartctl package first! (apt-get install smartctl)
if sudo true
then
true
else
echo 'Root privileges required'
@Strum355
Strum355 / README.md
Created March 12, 2019 23:25
Noto Sans Installer and Config Generator

Noto Sans Config Generator

Downloads and installs all Noto Sans fonts and prints a config section to be added to your ~/.config/fontconfig/fonts.conf

How to use

  1. Run the download.sh file
  2. Copy the output XML and pasted it before the final closing </fontconfig> tag in your ~/.config/fontconfig/fonts.conf file

Flags

# Luke's config for the Zoomer Shell
# Enable colors and change prompt:
autoload -U colors && colors
PS1="%B%{$fg[red]%}[%{$fg[yellow]%}%n%{$fg[green]%}@%{$fg[blue]%}%M %{$fg[magenta]%}%~%{$fg[red]%}]%{$reset_color%}$%b "
# History in cache directory:
HISTSIZE=10000
SAVEHIST=10000
HISTFILE=~/.cache/zsh/history
@ld100
ld100 / ArchLinuxWSL2.md
Last active July 16, 2024 10:24
Steps for setting up Arch Linux on WSL2

Migrating from Ubuntu on WSL to ArchLinux on WSL2

Obsolete notice

This document was created back in 2020 and might not be actual nowadays. It is not supported anymore, so use thise information at your own risk.

Upgrading to WSL 2

  • Download WSL2 Kernel
  • run wsl --set-default-version 2 in windows command line, so that all future WSL machine will use WSL2.
@KavenTheriault
KavenTheriault / mkinitcpio_nvidia.md
Created August 7, 2020 21:02
Nvidia driver and mkinitcpio

Nvidia driver and mkinitcpio

First, install nvidia drivers

sudo pacman -S nvidia

Edit the following line of /etc/mkinitcpio.conf

MODULES=(i915? nouveau? vboxvideo? vmwgfx?)
@mzeryck
mzeryck / mz_invisible_widget.js
Last active July 1, 2024 02:24
A Scriptable script that creates "invisible" widget backgrounds based on your iOS wallpaper, and then either uses them as a Scriptable widget background or exports to your camera roll.
/*
MIT License
Copyright (c) 2022 Maxwell Zeryck
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTW
@kensykora
kensykora / FFXIV-Automatic-OTP-Entry.md
Last active April 7, 2024 16:03
How to enable automatic OTP entry in FFXIV

How to enable automatic OTP Entry in FFXIV

Animation

This process will allow you to create a shortcut on your desktop that will enable automatic entry of your OTP code into FFXIV without having to open up the authenticator each time you log in.

It uses FFXIV QuickLauncher for doing its work.

Background

@mathielo
mathielo / README-SteamBots-Secrets.md
Last active July 19, 2024 12:05
Steam Bots: How to get shared and identity secrets from Steam Guard TOTP

Steam Bots: How to get shared and identity secrets

If you're looking into automating transactions in your Steam Account using Steam Bots, you most likely will need to:

  1. Have TOTP ("MFA" or "2FA") enabled via Steam Authenticator (Steam Guard)
  2. Have in hands both shared secret and identity secret

Having Steam Guard enabled for your Steam Account ensures that there will be no holds on transactions such as trades. Having the shared and identity secrets are necessary for complete autonomy of your Steam Bot, meaning it won't require any human interaction from you.

There is a tremendous lack of information about all of this as Steam does not provide official support for implementing Steam Bots. The information available in this guide was gathered through lots of blood and sweat hard research, reverse eng