Skip to content

Instantly share code, notes, and snippets.

View rafisics's full-sized avatar
🔍
looking for gradschool

Mubtasim Fuad rafisics

🔍
looking for gradschool
View GitHub Profile
@Dechrissen
Dechrissen / i3wm-screenshot
Last active October 4, 2025 17:15
i3wm keybind for taking a screenshot and saving it to the clipboard as well as a directory
# ----------------------------------------------------------------------------------------------------------------
# Add this to your i3 config to take a screenshot (selection) and save it to the clipboard just by pressing PrtSc!
# The resulting file will have this format: screenshot_02-Dec-2021_13-24-21.png
#
# NOTE: This assumes you have a directory ~/screenshots and you have installed:
# - maim
# - xclip
# ----------------------------------------------------------------------------------------------------------------
# screenshot (saves to clipboard and a file in ~/screenshots)
@FedericoTartarini
FedericoTartarini / embed_video.tex
Last active June 18, 2026 10:03
Embed a video into LaTeX wihout using Flash
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% this code was copied from https://tex.stackexchange.com/a/516102
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage[bigfiles]{pdfbase}
\ExplSyntaxOn
\NewDocumentCommand\embedvideo{smm}{
\group_begin:
\leavevmode
\tl_if_exist:cTF{file_\file_mdfive_hash:n{#3}}{
@mcnees
mcnees / graph paper.tex
Created March 13, 2021 20:33
A .tex file that uses pgf/tikz to create a variety of graph papers.
%%-----------------------------------------------------------------------
%% Make your own quadrille, graph, hex, etc paper!
%% Uses the pgf/TikZ package for LaTeX, which should be part of
%% any modern TeX installation.
%%
%% All the values here are hardcoded for letter size paper.
%%
%% This is the original standalone .tex file. The project is in the
%% process of being converted to a LaTeX package.
%%
@dianjuar
dianjuar / i3-shortcuts-screenshot.md
Last active June 26, 2026 12:39
My i3 shortcuts to take screenshots

Requirements

  • maim
  • xclip

Set-up

Set this on your i3 config file ~/.i3/config

# Screenshots
@bradtraversy
bradtraversy / vscode_shortcuts.md
Last active June 17, 2026 18:35
Helpful shortcuts for VSCode

VSCode Shortcuts

List of helpful shortcuts for faster coding

If you have any other helpful shortcuts, feel free to add in the comments of this gist :)

Official List of all commands

#---------------GitHub Pages + Namecheap Domain + SSL Cheat Sheet------------#
NOTE: You do NOT need to buy PositiveSSL from Namecheap.
GitHub Pages provides free SSL automatically via Let's Encrypt.
# Namecheap Domain Setup
Buy Domain
Go to namecheap.com, select and buy domain name.
Navigate to DNS Settings
Login to Namecheap → Username dropdown → Dashboard
ffmpeg -i data/video.mp4 -vcodec h264 -b:v 1000k -acodec mp2 data/output.mp4
/**
* This Google Sheets script keeps data in the specified column sorted any time
* the data changes.
*
* After much research, there wasn't an easy way to automatically keep a column
* sorted in Google Sheets, and creating a second sheet to act as a "view" to
* my primary one in order to achieve that was not an option. Instead, I
* created a script that watches for when a cell is edited and triggers
* an auto sort.
*
@kogakure
kogakure / .gitignore
Last active May 20, 2026 09:32
Git: .gitignore file for LaTeX projects
*.acn
*.acr
*.alg
*.aux
*.bak
*.bbl
*.bcf
*.blg
*.brf
*.bst