Skip to content

Instantly share code, notes, and snippets.

View rtud's full-sized avatar

rtud rtud

View GitHub Profile
@rtud
rtud / update-brew.sh
Last active May 24, 2024 06:42
Bash script that automates upgrading brew packages in a non-admin/admin user setup.
#!/bin/bash
###########################################################################
# The following is a workaround for upgrading brew packages when you have
# separate admin and non-admin users on a macOS device
###########################################################################
# Copyright (c) 2021 Radu Tudorie (rtud)
#
# MIT License
#
@rtud
rtud / keybase.md
Created January 22, 2020 11:04
Keybase verification

Keybase proof

I hereby claim:

  • I am rtud on github.
  • I am rtud (https://keybase.io/rtud) on keybase.
  • I have a public key ASB3ilrsz-JC_sbOW0Meezu1BGAA5wlRyaUaSqbQ8QfG7Ao

To claim this, I am signing this object:

@rtud
rtud / vs-privacy-information.md
Last active November 24, 2016 11:10
Legal Terms

Privacy Policy

Vitamin Software owns the intellectual property rights (including database rights) for trademarks, logos and all other materials present on this site. Vitamin Software reserves the right to modify the content and / or structure of the website, at any time, without any prior notice.

@rtud
rtud / bash_trash.function_linux.sh
Last active December 19, 2015 11:28
Bash Function to be inserted in .bash_profile or .bash_alias, that moves the files/folders to the systems Trash. Use it instead of <rm> for a peace of mind.
# Move to trash
trash() {
yellow=$(tput setaf 3)
reset=$(tput sgr0)
echo -e "\n"
for f in "$@"; do
bn=$(basename "$f")
while [ -e ~/.local/share/Trash/files/"$bn" ]
do
bn="$bn $(date +%H.%M.%S %p)"