Skip to content

Instantly share code, notes, and snippets.

Avatar
❤️
You cutie

Kodehawa Kodehawa

❤️
You cutie
View GitHub Profile
@Kodehawa
Kodehawa / kafetch.fish
Last active Aug 12, 2020
Fish meme (kafetch ported to fish but I made a dictionary in the process)
View kafetch.fish
#!/bin/fish
set -l bold (tput bold)
set -l normal (tput sgr0)
set -g count 0
set -g index 1
# To get the current/used memory usage I ended up implementing dictionaries in fish because I was bored and couldn't come up with a better solution at the time.
# Hint: a friend came up with a better and shorter solution in less time.
# But this was an interesting exercise on implementing something that doesn't exist on an interpreted language, I guess.
function increment_key
@Kodehawa
Kodehawa / PetCmds.java
Created May 4, 2020
Saved here for later.
View PetCmds.java
/*
* Copyright (C) 2016-2020 David Alejandro Rubio Escares / Kodehawa
*
* Mantaro is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* Mantaro is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
@Kodehawa
Kodehawa / fetch
Last active Jul 20, 2020
Simple Arch Linux fetch script.
View fetch
#!/bin/dash
bold=$(tput bold)
normal=$(tput sgr0)
#thanks pfetch guy
while IFS=':k ' read -r key val _; do
case $key in
MemTotal)
mem_used=$((mem_used + val))
mem_full=$val
View keybase.md

Keybase proof

I hereby claim:

  • I am Kodehawa on github.
  • I am kodehawa (https://keybase.io/kodehawa) on keybase.
  • I have a public key whose fingerprint is 5B6C C6C0 3B2E 0DBE EECB 82A6 0F2E 11B8 59EE D123

To claim this, I am signing this object: