Skip to content

Instantly share code, notes, and snippets.

View bdashore3's full-sized avatar
😎
Reinventing the wheel since 2018

Brian bdashore3

😎
Reinventing the wheel since 2018
View GitHub Profile
The message: I hope you do well in programming Frank!
Terminal Commands for Dummies
() = optional inclusion
ls (path) - list structure - shows what's in the current directory
cd (path) - change directory - switches to the specified directory
pwd - print working directory - shows the absolute path of the current directory
mkdir <directory name/path> - make directory - create a new directory
MangaLife:
- Kakegurui - Compulsive Gambler
- When I Rescued a Beautiful Girl Who Was About to Be Molested
- Mato Seihei no Slave
- Tales of Demons and Gods
- Houkago no Goumon Shoujo
- Henjo - Hen na Joshi Kousei Amaguri Chiko
- Flying Witch
- Saotome Shimai Wa Manga no Tame Nara!?
- Sorry For My Familiar
@bdashore3
bdashore3 / Nix configuration
Created June 29, 2021 15:19
configuration.nix
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).
{ config, pkgs, ... }:
{
imports =
[
(fetchTarball "https://github.com/msteen/nixos-vsliveshare/tarball/master")
@bdashore3
bdashore3 / kingbrimigrate.txt
Created September 5, 2021 16:25
Migration manga list for Tsuchi2Paperback
MangaLife:
- I Would Die to Have Your First Time
- Mao
- Koi Shita no de, Haishin Shite Mita
- DEAD Tube
- Tokyo Revengers
- My Dress-Up Darling
- Tensei Pandemic
- Hoshino, Me o Tsubutte
- Witch Watch
@bdashore3
bdashore3 / fix.swift
Last active November 28, 2021 04:00
AlamoFire UI lockup fix
import SwiftUI
import Alamofire
import Combine
struct ContentView: View {
@StateObject var viewModel: ViewModel = ViewModel()
@State private var showAlert = false
@State private var downloadProgress: Double = 0.0
var body: some View {
@bdashore3
bdashore3 / findInPageWebkit.js
Last active January 12, 2022 16:56
A minimal find in page JS script for webkit
// Minimal find in page script to be run in the DOM
// Includes scrolling to a specific query, highlights, and removing said highlights
// Preserves event listeners and text casing
// (c) 2022, Brian Dashore.
// Utilizes webkit message handlers. A findMessageHandler has to be added to your WKWebView userContentController
// You can also return values from the function in swift evaluateJavaScript calls
let totalResultLength = 0
let previousIndex = -1
@bdashore3
bdashore3 / WKWebViewPaste.js
Last active February 7, 2022 21:11
A paste JS function to override WKWebView's behavior
// Drop in paste replacement for WKWebView on MacCatalyst
// Includes cases where pasting occurs in the middle of the specified text and highlighted text
// Replicates native paste by moving the input textbox on text overflow
// (c) 2022, Brian Dashore.
// Make sure to have a device check for Mac if you're using MacCatalyst!
// iOS and iPadOS will have paste broken with this script!
const inputs = document.querySelectorAll("input[type=text]")
let alreadyPasted = false
@bdashore3
bdashore3 / ContentView.swift
Created April 10, 2022 15:38
SwiftUI Status bar customization
//
// ContentView.swift
// TestingGround
//
// Created by Brian Dashore on 12/31/21.
//
import SwiftUI
import Introspect
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>INEnums</key>
<array/>
<key>INIntentDefinitionModelVersion</key>
<string>1.2</string>
<key>INIntentDefinitionNamespace</key>
<string>mL2S1L</string>
@bdashore3
bdashore3 / ferrite-sources.json
Last active August 2, 2022 20:42
FerriteSources-kingbri
{
"name": "kingbri's extensions",
"author": "kingbri",
"sources": [
{
"name": "AnimeTosho",
"version": "2",
"baseUrl": "https://animetosho.org",
"htmlParser": {
"searchUrl": "/search?q={query}",