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 June 10, 2025 14:17
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 April 2, 2025 04:46
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 May 7, 2025 09:50
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 12, 2025 21:15
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

Process for setting up github pages with namecheap domain.
1. Go to namecheap.com, select and buy domain name.
2. Login to namecheap, go to username drop down and select dashboard.
3. Go to DomainList
4. Click manage button
5. Click Advanced DNS tab
6. Click add record and add three records:
Type: A Record | Host: @ | Value: 192.30.252.153 | TTL: Automatic
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 November 19, 2024 13:22
Git: .gitignore file for LaTeX projects
*.acn
*.acr
*.alg
*.aux
*.bak
*.bbl
*.bcf
*.blg
*.brf
*.bst