Skip to content

Instantly share code, notes, and snippets.

View betsalel-williamson's full-sized avatar

Betsalel "Saul" betsalel-williamson

View GitHub Profile
@betsalel-williamson
betsalel-williamson / convert_png_to_white.sh
Last active March 23, 2024 16:03
Script to convert PNG image to white
#!/usr/bin/env bash
#
## Converts png image to white using the "convert" utility from imagemagick
#
# MIT No Attribution
#
# Copyright 2024 Betsalel "Saul" Williamson
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of this
# software and associated documentation files (the "Software"), to deal in the Software
@betsalel-williamson
betsalel-williamson / Instructions.md
Last active January 7, 2023 14:23
HGTV Sweepstakes Helper
@betsalel-williamson
betsalel-williamson / Minify-Copy.sh
Last active December 16, 2022 21:49
Concat Images from Site
#!/usr/bin/env sh
# Short hand to minify javascript file by removing newlines
# trimming spaces
# then copies to clipboard
tr -d '\n' < Scrape_images.js | sed -E -e 's|\/\*[^*]*\*\/||g' -e 's/[ ]{2,}/ /g' | pbcopy
@betsalel-williamson
betsalel-williamson / setup.sh
Last active April 22, 2019 23:51
Bash script for installing Nvidia drivers and CUDA on Ubuntu 14.04.5 LTS with Titan X
#!/bin/bash
# install file
# run when system is first installed to install the necessary components to get up and running
#
# Copyright 2018 Betsalel "Saul" Williamson
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
#
@betsalel-williamson
betsalel-williamson / create-blocked-contact.sh
Last active June 24, 2018 11:52
Bash script to create blocked contact. Recently in America, the number of spam calls with numbers similar to your own number is out of hand. This will create a contact with all of those numbers for you to be able to block with your phone.
#! /bin/bash
#
# Copyright 2018 Betsalel "Saul" Williamson
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC