Skip to content

Instantly share code, notes, and snippets.

View JoshuaDoes's full-sized avatar
⌨️
Writing code and working retail

JoshuaDoes

⌨️
Writing code and working retail
View GitHub Profile
@bobbicodes
bobbicodes / silence.clj
Last active July 12, 2022 18:40
Babashka script to trim silence from video with ffmpeg and moviepy
(ns silence
(:require [clojure.string :as str]
[clojure.java.shell :as shell]
[babashka.process :as p]))
(defn silences-output [file]
(:err
(shell/sh
"ffmpeg" "-hide_banner" "-vn" "-i"
file "-af" "silencedetect=n=-50dB:d=1" "-f" "null" "-")))
@AveYo
AveYo / . Pitch Black Theme.reg
Last active July 22, 2024 19:34
Pitch Black Theme.reg - now for Ctrl+Alt+Del (and logon on 11) as well - revised 2022-06-16
Windows Registry Editor Version 5.00
; Pitch Black Theme preset by AveYo, AccentPalette idea by /u/Egg-Tricky
; for Ctrl+Alt+Del, Logon, Taskbar, Start Menu, Action Center (10 & 11)
; revised 2022-06-16: show active taskbar button in accent color
[-HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Accent]
[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Accent]
"AccentColorMenu"=dword:aa000000 ; Window borders and titlebar
"StartColorMenu"=dword:aa202020 ; Modals in UWP ex. Apply new refresh rate in 10
@rbrick
rbrick / msa.go
Last active February 9, 2024 05:02
package main
import (
"bytes"
"context"
"crypto/tls"
"encoding/json"
"fmt"
"golang.org/x/oauth2"
"golang.org/x/oauth2/microsoft"
@MikeModder
MikeModder / gogoautoplay-wasm.go
Last active June 3, 2019 20:08
Test for automatically playing videos from GoGoAnime. Current doesn't work because of well-made browser security features.
package main
import (
"fmt"
"net/http"
neturl "net/url"
"regexp"
"syscall/js"
"github.com/PuerkitoBio/goquery"
@jaames
jaames / manifest.json
Last active December 18, 2018 20:18
Webarchive asset manifest for Miitomo
{
"remoteVersionUrl": "https://download-cdn.miitomo.com/native/20180125111639/manifests/v2_20180405_3_android/version.json",
"remoteManifestUrl": "https://download-cdn.miitomo.com/native/20180125111639/manifests/v2_20180405_3_android/manifest.json",
"packageUrl": "https://web.archive.org/web/0id_",
"version": "v2.0.1481",
"engineVersion": "2",
"assets": {
"20150101afesgaeukgwebp.zip": {
"md5": "",
"path": "http://download-cdn.miitomo.com/native/20180125111639/android/v2/20150101afesgaeukgwebp.zip",
//--------------------------------------
//--- 010 Editor v6.0.2 Binary Template
//
// File:
// Author:
// Revision:
// Purpose:
//--------------------------------------
BigEndian();

Setup

  1. Enter the Nintendo WFC Settings menu, which can be found in any WFC-enabled game.

  2. Select "Nintendo Wi-Fi Connection Settings".

  3. Set up a new connection if you haven't already done so, then select the connection slot you wish to use.

  4. Scroll down and set "Auto-obtain DNS" to "No", then set Primary DNS to 178.62.43.212 and Secondary DNS to 0.0.0.0. Select "OK" to confirm.

@Brainiarc7
Brainiarc7 / ffmpeg-qsv-enabled-build-ubuntu-18.04lts-testbed.md
Last active July 14, 2024 13:29
This gist will generate an Intel QSV-enabled FFmpeg build using the open source Intel Media SDK. Testbed used: Ubuntu 18.04LTS. A fallback is also provided for the intel vaapi driver where needed.

Build FFmpeg with Intel's QSV enablement on an Intel-based validation test-bed:

Build platform: Ubuntu 18.04LTS

Ensure the platform is up to date:

sudo apt update && sudo apt -y upgrade && sudo apt -y dist-upgrade

Install baseline dependencies first (inclusive of OpenCL headers+)