Skip to content

Instantly share code, notes, and snippets.

View thorbjornium's full-sized avatar

Thorbjornium thorbjornium

  • 05:10 (UTC +02:00)
View GitHub Profile
@rxaviers
rxaviers / gist:7360908
Last active July 17, 2026 17:47
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@Ashton-W
Ashton-W / Issue.md
Last active July 17, 2026 06:09
GitHub Markdown toggle code block
Click to toggle contents of `code`
CODE!
Details
@waleedahmad
waleedahmad / post_install.sh
Last active June 20, 2025 06:14
Ubuntu post installation script for installing software of your choice.
#!/bin/bash
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root"
exit 1
else
#Update and Upgrade
echo "Updating and Upgrading"
apt-get update && sudo apt-get upgrade -y
@ccannon94
ccannon94 / CommandLineGit.md
Last active February 2, 2025 23:35
Using Git from the Command Line

When you use git from the command line, use the following steps:

Accessing the Repository

  • On Windows, launch Git Bash, on MacOS or Linux, launch a terminal.
  • If you have not done so on your machine, create a COMP167 directory in your home directory using mkdir ~/COMP167
  • NOTE: This command only needs to be run once on each machine, to create the directory.
  • Navigate to your directory using cd ~/COMP167.
  • If your repository already exists locally, navigate to it using cd [your-repository-name], if you want to check the contents of your directory, use ls.
  • If your repository does not exist locally, get the clone link from the "Clone or Download" button on the GitHub Repository. Clone or Download Button on GitHub
@icasimpan
icasimpan / today_isoweek.go
Last active October 18, 2024 22:14
golang: getting today's week number
package main
import "fmt"
import "time"
func main() {
var time_now time.Time = time.Now() // [ALTERNATIVE] time_now := time.Now()
var _, wk_num = time_now.ISOWeek() // [ALTERNATIVE] _, wk_num := time_now.ISOWeek()
fmt.Println(wk_num)
@judero01col
judero01col / Service KMS.md
Last active July 19, 2026 09:38
Volume License Activation Key Service - KMS

Find Available Target Editions

DISM.exe /Online /Get-TargetEditions

Convert Server Standard 2019 Evaluation to Server Standard 2019

DISM /online /Set-Edition:ServerStandard /ProductKey:N69G4-B89J2-4G8F4-WWYCC-J464C /AcceptEula

How To Activate

slmgr /ipk XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
slmgr /skms [server]:[port]
slmgr /ato

@rust-play
rust-play / playground.rs
Created January 24, 2020 16:26
Code shared from the Rust Playground
use std::fmt::Display;
fn do_things<T>(a: T, b: T) where
T: IntoIterator,
T::Item: Display {
for (e,f) in a.into_iter().zip(b.into_iter()) {
println!("{} {}", e, f);
}
}
@thomasmaurer
thomasmaurer / settings.json
Last active August 16, 2025 10:14
My Windows Terminal Settings settings.json February 2021
// This file was initially generated by Windows Terminal 1.3.2651.0
// It should still be usable in newer versions, but newer versions might have additional
// settings, help text, or changes that you will not see unless you clear this file
// and let us generate a new one for you.
// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation
{
"$schema": "https://aka.ms/terminal-profiles-schema",
@dantheman213
dantheman213 / ffmpeg.md
Last active April 23, 2024 18:10
ffmpeg cheatsheet

ffmpeg cheatsheet

Extract video at 30 seconds in and the duration with be 5 seconds

ffmpeg -ss 00:00:30 -i orginalfile -t 00:00:05 -vcodec copy -acodec copy newfile

Add a watermark logo to the bottom right of the video offset by 30 x 30 from corner

@DoktorMike
DoktorMike / videoconversionsamples.sh
Last active July 20, 2025 03:58
Useful commands for converting videos using ffmpeg
#!/bin/bash
# Examples taken from https://opensource.com/article/17/6/ffmpeg-convert-media-file-formats
# Convert a webm file to a matroska format with a vp9 encoding and keeping the same audio encoding.
# Also changes the bitrate to 1Mb/s
ffmpeg -i input.webm -c:a copy -c:v vp9 -b:v 1M output.mkv
# Same but change the frame rate to 30 FPS and dropping the bitrate conversion
ffmpeg -i input.webm -c:a copy -c:v vp9 -r 30 output.mkv
# Same but only setting the video size to a predetermined format HD 720 in this case