Skip to content

Instantly share code, notes, and snippets.

View uwussimo's full-sized avatar
🌴
On vacation

Uwussimo Robinson uwussimo

🌴
On vacation
View GitHub Profile
@uwussimo
uwussimo / uwu.itermcolors
Last active November 21, 2022 05:25
iTerm Color Profile
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Ansi 0 Color</key>
<dict>
<key>Alpha Component</key>
<real>1</real>
<key>Blue Component</key>
<real>0.4784277081489563</real>
@uwussimo
uwussimo / arch.md
Last active November 21, 2022 06:37
Arch Installation in UwU way

Arch Linux installation if you were UwUssimo

#arch #linux #archlinux

Connect to the network:

ip -c a                    # to get info about ip address [warning: lgbt]
iwctl.                     # if you have to connect over wifi
@uwussimo
uwussimo / push-with-personal-token.sh
Last active August 29, 2022 07:49
Pushing with GitHub Personal Token
#!/bin/bash
# shellcheck disable=SC2164
cd "$(dirname "$0")"
export GITHUB_ACCESS_TOKEN=""
export GITHUB_USERNAME=""
export REPOSITORY_NAME=""
git push https://"$GITHUB_ACCESS_TOKEN"@github.com/"$GITHUB_USERNAME"/"$REPOSITORY_NAME".git
@uwussimo
uwussimo / custom-location-org.sh
Created August 24, 2022 04:55
Set custom location for GitHub user or Organization
curl -H "Authorization: bearer GH_PAT_HERE" -d '{"location":"YOUR CUSTOM LOCATION"}' https://api.github.com/orgs/ORG_NAME
@uwussimo
uwussimo / clean.sh
Last active July 21, 2022 12:47
If you're an aesthetic developer who keeps all projects in a single developer like I do at ~/Developer, this script will help you to clean cached dependencies of your projects and clean some space~
cleaner() {
# my DEVSPACE is ~/Developer, set your own DEVSPACE and add it to
# your ~/.zshrc or ~/.bashrc file to let this script detect it
# check if DEVSPACE is set, if not, set it to the current directory
if [ -z "$DEVSPACE" ]; then
DEVSPACE="$(pwd)";
fi
# change current directory to DEVSPACE
cd $DEVSPACE;
@uwussimo
uwussimo / paru.conf
Last active March 1, 2024 02:34
Install paru AUR manager on Arch Linux
#
# $PARU_CONF
# /etc/paru.conf
# ~/.config/paru/paru.conf
#
# See the paru.conf(5) manpage for options
#
# GENERAL OPTIONS
#
@uwussimo
uwussimo / google.sh
Last active July 17, 2022 18:58
Googling from shell script
google() {
if [ -z "$1" ]; then
echo "No argument supplied"
return
fi
echo "Searching for $@"
search_string="$@"
# Linux users should change "open" to "xdg-open"
# or create alias open="xdg-open"
open "https://www.google.com/search?q=$search_string"
@uwussimo
uwussimo / java.reg
Last active August 29, 2022 07:51
Add OpenJDK 18 to registrars on Windows 11. This action is not being automatically done on default if you install Java with scoop.
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\JavaSoft]
[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\JavaSoft\Java Runtime Environment]
"CurrentVersion"="18.0.1"
[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\JavaSoft\Java Runtime Environment\18.0]
"JavaHome"="C:\\Users\\UwUssimo\\Scoop\\apps\\openjdk\\current"
"MicroVersion"="0"