Skip to content

Instantly share code, notes, and snippets.

@maximebories
maximebories / yt-no-comments.js
Last active April 12, 2023 21:35
Hides YouTube Comments UserStyle
/* ==UserStyle==
@name YT-comments
@description Hides youtube comments
@match https://www.youtube.com/watch?v=*
@run-at document-idle
==/UserStyle== */
ytd-comments {
display: none !important;
}
@maximebories
maximebories / chatgpt-larger-sidebar.js
Last active April 12, 2023 21:34
ChatGPT Larger Sidebar UserStyle
/* ==UserStyle==
@name ChatGPT
@description ChatGPT Larger Sidebar
@match https://chat.openai.com/*
==/UserStyle== */
/* Division */
#__next .overflow-hidden .md\:flex {
width: 420px;
}
@maximebories
maximebories / homebrew.mxcl.minidlnad.plist
Last active March 30, 2023 20:17
miniDLNA Homebrew Service
<?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>homebrew.mxcl.minidlnad</string>
<key>RunAtLoad</key>
<true/>
<key>KeepAlive</key>
<true/>
@maximebories
maximebories / convert.md
Last active September 19, 2024 01:23
FFmpeg command to convert webm to mp4 video files

WebM to MP4 using FFmpeg

This FFmpeg command converts a .webm video file to a standard .mp4 file using the libx264 codec for video, aac codec for audio, and a CRF value of 22. The preset is set to 'slow' for higher quality encoding, and the audio bitrate is set to 128 kbps.

If the input and output filenames don't contain spaces, quotation marks or other special characters:

ffmpeg -i input.webm -c:v libx264 -preset slow -crf 22 -c:a aac -b:a 128k output.mp4
@maximebories
maximebories / rst_ds_store.sh
Created February 11, 2023 19:06
Reset all views options
find . -name '.DS_Store' -type f -delete
@maximebories
maximebories / homebrew.mxcl.aria2.plist
Last active March 30, 2023 20:13
Aria2c Homebrew Service
<?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>homebrew.mxcl.aria2</string>
<key>RunAtLoad</key>
<true/>
<key>KeepAlive</key>
<true/>
/* System Fonts as used by GitHub */
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}
@maximebories
maximebories / alias.sh
Last active January 8, 2023 20:03
Alias
alias la = "ls -a"
alias lla = "ls -la"
alias yt - ariac = youtube - dl--external - downloader aria2c--external - downloader - args "-x 16 -s 16 -k 1M"
alias brewup = "brew update && brew upgrade && brew cleanup && brew doctor";
@maximebories
maximebories / script.js
Last active December 26, 2022 22:14
Youtube Links
document.querySelectorAll("a#video-title").forEach( (elm) => {console.log(elm)} );
@maximebories
maximebories / github-page-websec.sh
Created December 18, 2022 22:08
Github-Page Basic Security
# Create the _headers file
echo "Content-Security-Policy: default-src 'self'; script-src 'self' 'unsafe-inline'" > _headers
echo "Strict-Transport-Security: max-age=31536000" >> _headers
echo "X-Content-Type-Options: nosniff" >> _headers
echo "X-Frame-Options: SAMEORIGIN" >> _headers
echo "X-XSS-Protection: 1; mode=block" >> _headers
# Add the _headers file to the repository and commit the changes
git add _headers
git commit -m "Add security headers"