This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # use ImageMagick convert | |
| # the order is important. the density argument applies to input.pdf and resize and rotate to output.pdf | |
| convert -density 90 input.pdf -rotate 0.5 -attenuate 0.2 +noise Multiplicative -colorspace Gray output.pdf |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| set -euo pipefail | |
| ##### config ##### | |
| CPU_ARCH="x64" # Win32 or x64 | |
| PLATFORM="Visual Studio 16 2019" # target platform | |
| BOOST_VER="1_87_0" # Boost version | |
| # Add path to MSBuild.exe | |
| export PATH="$PATH:/cygdrive/c/Program Files (x86)/Microsoft Visual Studio/2019/Professional/MSBuild/Current/Bin" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| theme="MaterialDesignColors" | |
| font-family = Fira Code | |
| font-style = Regular | |
| font-size = 14 | |
| keybind = global:cmd+`=toggle_quick_terminal | |
| quick-terminal-animation-duration = 0.1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @-moz-document url(chrome://browser/content/browser.xul), | |
| url(chrome://browser/content/browser.xhtml) { | |
| /* hide horizontal tabs at the top of the window */ | |
| #TabsToolbar > * { | |
| visibility: collapse; | |
| } | |
| /* hide navigation bar when it is not focused; use Ctrl+L to get focus */ | |
| #main-window:not([customizing]) #navigator-toolbox:not(:focus-within):not(:hover) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| """ | |
| This script is designed to help users find their Firefox profiles and create | |
| a backup of the `containers.json` file, especially if they use the 'Temporary Containers' extension. | |
| Once the user selects the desired profile using arrow keys, the script does the following: | |
| 1. Identifies and removes any 'Temporary Containers' entries (those starting with 'tmp') from the `containers.json` file. | |
| 2. Creates a backup of the original `containers.json` file. If a backup already exists, it appends a timestamp to the new backup to avoid overwrites. | |
| 3. Overwrites the `containers.json` file with the cleaned data. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| set -eu -o pipefail | |
| count=$(find . -depth 1 -name "*.HEIC" | wc -l | sed 's/[[:space:]]*//') | |
| echo "converting $count files .HEIC files to .jpg" | |
| magick mogrify -monitor -format jpg *.HEIC | |
| echo "Remove .HEIC files? [y/n]" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # create a directory for you Python Virtual Environments | |
| mkdir -p ~/pyenvs | |
| # create one for the AWS cli then install the CLI | |
| virtualenv ~/pyenvs/aws | |
| ~/pyenvs/aws/bin/pip install awscli | |
| ~/pyenvs/aws/bin/pip install boto |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Get Firefox Developer Edition | |
| ``` | |
| wget --content-disposition "https://download.mozilla.org/?product=firefox-devedition-latest-ssl&os=osx&lang=en-US" | |
| wget --content-disposition "https://download.mozilla.org/?product=firefox-devedition-latest-ssl&os=linux64&lang=en-US" | |
| wget --content-disposition "https://download.mozilla.org/?product=firefox-devedition-stub&os=win&lang=en-US" | |
| ``` | |
| Create a new Firefox Developer Edition profile and use user.js from the link below: | |
| - https://bitbucket.org/mrbbking/quieter-firefox/src/master/ | |
| ``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| chromium --no-sandbox --password-store=basic --user-data-dir=~/.config/chromium -ignore-certificate-errors --disable-xss-auditor --no-default-browser-check --no-first-run --disable-background-networking --disable-client-side-phishing-detection --disable-component-update --disable-sync --disable-translate --disable-web-resources --safebrowsing-disable-auto-update --safebrowsing-disable-download-protection & | |
| #alias chromeburp='/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --no-sandbox --password-store=basic --ignore-certificate-errors --disable-xss-auditor --no-default-browser-check --no-first-run --disable-background-networking --disable-client-side-phishing-detection --disable-component-update --disable-sync --disable-translate --disable-web-resources --safebrowsing-disable-auto-update --safebrowsing-disable-download-protection &' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| REM clrtmp.bat | |
| @echo off | |
| del "%TEMP%\*.*" /s /f /q | |
| for /d %%d in (%TEMP%\*) do rmdir "%%d" /s /q | |
| del "%WINDIR%\TEMP\*.*" /s /f /q | |
| for /d %%d in (%WINDIR%\TEMP\*) do rmdir "%%d" /s /q |
NewerOlder