- maim
- xclip
Set this on your i3 config file ~/.i3/config
# Screenshots
| # ---------------------------------------------------------------------------------------------------------------- | |
| # 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) |
| %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
| % 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}}{ |
| %%----------------------------------------------------------------------- | |
| %% 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. | |
| %% |
| #---------------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. | |
| * |
| *.acn | |
| *.acr | |
| *.alg | |
| *.aux | |
| *.bak | |
| *.bbl | |
| *.bcf | |
| *.blg | |
| *.brf | |
| *.bst |