This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"yaml.customTags": [ | |
"!And", | |
"!And sequence", | |
"!If", | |
"!If sequence", | |
"!Not", | |
"!Not sequence", | |
"!Equals", | |
"!Equals sequence", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
if "%~1"=="" echo Filename not specified - exiting && goto :eof | |
ffmpeg -hide_banner -y -i %1 -c copy -f mp4 "-bsf:a" aac_adtstoasc "%~n1-fixup.mp4" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"log" | |
"os" | |
"path/filepath" | |
) | |
func main() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Tired of media playing at 100% volume? | |
Change the media.default_volume setting in about:config to something more manageable, e.g. 0.2 ! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# from https://tech.lgbt/@noboilerplate/110547957199820610 | |
[profile.release] | |
opt-level = 'z' # Optimize for size | |
lto = true # Enable link time optimisation | |
codegen-units = 1 # Reduce number of codegen units (?) | |
panic = 'abort' # Abort on panic | |
strip = true # Strip symbols |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Youtube Shorts to normal page | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Gives you the normal page | |
// @author You | |
// @match https://www.youtube.com/shorts/* | |
// ==/UserScript== | |
(function() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[package] | |
name = "clearclip" | |
version = "0.1.0" | |
edition = "2021" | |
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | |
[dependencies] | |
[dependencies.windows] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
SSL Cert inspection function | |
OpenSSL is available from the PyOpenSSL package | |
""" | |
import json | |
import logging | |
from datetime import datetime | |
import boto3 | |
from botocore.exceptions import ClientError |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl https://api.github.com/repos/cli/cli/releases/latest | jq '.assets[] | select(.name | contains("amd64.deb") ) | .browser_download_url' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
Installing pyenv for arbitrary python version development | |
# create a user, add to sudoers | |
useradd andy | |
visudo # do changes | |
su - andy | |
sudo dnf -y install make gcc zlib-devel bzip2 bzip2-devel readline-devel sqlite sqlite-devel openssl-devel tk-devel libffi-devel | |
curl https://pyenv.run | bash |
NewerOlder