This file contains 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 | |
# Static config | |
CMD_GIT="/usr/bin/git"; | |
CMD_NPMPRUNE="/usr/bin/npm prune"; | |
CMD_NPMCACHECLEAN="/usr/bin/npm cache clean"; | |
CMD_NPMINSTALL="/usr/bin/npm install"; | |
CMD_GRUNT="/usr/bin/grunt"; | |
DIR_A="a"; | |
DIR_B="b"; |
This file contains 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
# This is useful if you want to commit an initial version of a file and | |
# then ignore any updates to it (ie config files). | |
# Ignores any changes to the file | |
git update-index --assume-unchanged <file> | |
# Undo ignore any changes to the file | |
git update-index --no-assume-unchanged <file> |
This file contains 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
BLOAT: | |
https://github.com/Sycnex/Windows10Debloater | |
SECURITY: | |
choco install avastfreeantivirus | |
choco install malwarebytes | |
choco install ccleaner | |
UTILITIES: | |
choco install 7zip.install |
This file contains 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 ruby | |
require 'net/http' | |
require 'uri' | |
require 'json' | |
require 'thor' | |
require 'date' | |
require 'pry' | |
ENV['THOR_SILENCE_DEPRECATION'] = '1' |
This file contains 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 | |
# Helps mount/unmount disks | |
# | |
# Author: Jimmy Gleason <github.com/jimmygle | |
# | |
# The goal of this script is to provide a helper for faciliating the un/mounting | |
# of drives. It's useful for mounting external drives for doing automated backups, | |
# or when frequently transferring data via external drives to/from a NAS. | |
# |
This file contains 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 | |
# NOTE: THIS IS A WORK IN PROGRESS | |
LOG_DIR="~/scripts/logs" | |
text_header() { | |
cat <<- EOHT | |
JIMMYS.TECH DRIVE TESTER KIT |
This file contains 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 | |
# Writes zeroes to a drive and reports transfer rate | |
# From here: https://linuxhint.com/benchmark_hard_disks_linux/ | |
cd /mnt/drive | |
dd if=/dev/zero of=benchfile bs=4k count=200000 && sync; rm benchfile | |
# Write & read performance | |
# Writes 1.6GB file to drive and then copies the file to another drive (should be SSD) | |
cd /mnt/drive |
This file contains 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
# Download Newest Videos | |
youtube-dl \ | |
--dateafter 20210323 \ | |
--match-title 'Level1 News' \ | |
--playlist-end 5 \ | |
--write-all-thumbnails \ | |
--all-subs \ | |
--sub-format srt \ | |
--download-archive ./.ytdl_downloaded \ | |
--add-metadata \ |
This file contains 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
wget \ | |
--mirror \ # Recursive download (infinite depth) | |
--no-parent \ # Don't ascend to parent directory | |
--continue \ # Resume partially downloaded files | |
--user-agent="thanks" \ # Sets user agent seen by server | |
--wait=2 \ # Wait n seconds between requests | |
--reject="index.html*" \ # Rejected file patterns | |
"URL" | |
# One Liner... |
This file contains 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 | |
# Jacked from here: https://gist.github.com/butuzov/fa7d456ebc3ec0493c0a10b73800bf42#gistcomment-2830778 | |
abook() { | |
local DIR="${1}" | |
if [[ ! -d $DIR || -z $1 ]]; then | |
DIR=$(pwd) | |
fi |
OlderNewer