Skip to content

Instantly share code, notes, and snippets.

View tcdw's full-sized avatar
😡
ε•Šε•Šε•Šε•Šε•Šε•Šε•Šε•ŠοΌˆ

tcdw tcdw

😡
ε•Šε•Šε•Šε•Šε•Šε•Šε•Šε•ŠοΌˆ
View GitHub Profile
@stenuto
stenuto / convert.sh
Created May 29, 2024 03:45
Convert video file into HLS playlist with multiple resolutions and bitrates
#!/bin/bash
# This script takes a video file as input and converts it into an HLS (HTTP Live Streaming) playlist with multiple resolutions and bitrates. It also generates a thumbnail image from the video.
# Check if an input filename is provided
if [ -z "$1" ]; then
echo "Usage: $0 input_filename (without extension) [-t]"
exit 1
fi
@palmerc
palmerc / no.corporate.wireguard.plist
Last active February 21, 2025 13:41
WireGuard LaunchD Startup
<?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>Label</key>
<string>no.corporate.wireguard</string>
<key>RunAtLoad</key>
<true/>
<key>KeepAlive</key>
<dict>
@ppoffice
ppoffice / README.md
Last active April 16, 2025 04:30
Install Visual Studio Code (actually code-server) on Android
  1. Install Termux, an Android terminal emulator that provides a Linux execution environment and various tools.

  2. Update system packages in Termux:

    $ pkg update -y
@livvy94
livvy94 / AddMusicK.xml
Last active August 2, 2020 01:39
AddMusick Notepad++ language theme
<NotepadPlus>
<UserLang name="AddMusicK" ext="" udlVersion="2.1">
<Settings>
<Global caseIgnored="yes" allowFoldOfComments="no" foldCompact="no" forcePureLC="0" decimalSeparator="0" />
<Prefix Keywords1="yes" Keywords2="yes" Keywords3="yes" Keywords4="yes" Keywords5="no" Keywords6="yes" Keywords7="yes" Keywords8="yes" />
</Settings>
<KeywordLists>
<Keywords name="Comments">00; 01 02 03 04</Keywords>
<Keywords name="Numbers, prefix1"></Keywords>
<Keywords name="Numbers, prefix2"></Keywords>
@jixunmoe
jixunmoe / comments.jsx
Last active May 7, 2018 15:27
es5 implementation of jsx without state management.
/** @jsx h */
// See https://c.jixun.moe/ui for live-demo
(function(root) {
function UnsafeHtml({ html }) {
var div = (<i />);
div.innerHTML = html;
return div.childNodes;
}
function ExternalLink({ className, href, children }) {
@angela-d
angela-d / gpg-key-migration.md
Created April 1, 2018 23:57
Move GPG Keys from One Machine to Another

Migrate GPG Keys from One Workstation to Another

Replace [your key] with your key ID

To obtain your key ID

gpg --list-secret-keys --keyid-format LONG

Which returns something like

#!/bin/bash
# Run in go using -
# <exec command="bash">
# <arg>-c</arg>
# <arg>curl -s https://gist.githubusercontent.com/ketan/2866a236596636311d64/raw/ansi-color-test.sh | bash</arg>
# </exec>
echo "<script>console.log('42')</script>"