Skip to content

Instantly share code, notes, and snippets.

View cfuendev's full-sized avatar
🎓
Officially an Engineer!

CFUEN (A. Castillo) ── .✦ cfuendev

🎓
Officially an Engineer!
  • Bogotá, Colombia
View GitHub Profile
@cfuendev
cfuendev / battery.sh
Created March 20, 2022 07:04
A neat little script to show my battery (Tested on the Linux Mint OS).
################################################################################
# Help #
################################################################################
while getopts ":h" option; do
case $option in
h) # display Help
echo "
battery.sh [-h]
Commands:
@cfuendev
cfuendev / zathurarc-jekkyll
Last active March 22, 2022 17:57
My Zathura config (Mostly rice stuff).
# use system clipboard
set selection-clipboard clipboard
# jekkyll background
set default-fg "#FFFFFF"
set default-bg "#752D2F"
# jekkyll statusbar
set statusbar-fg "#FFFFFF"
set statusbar-bg "#752D2F"
@cfuendev
cfuendev / config.fish
Created March 23, 2022 15:15
My fish config I carry to every machine I use :D
# https://www.fishtalkmag.com/fishing-terms-glossary-fishing-lingo
function cls
clear
end
function castback
cls
fish
end
@cfuendev
cfuendev / chochal_exito.json
Created March 30, 2022 00:16
The most visited places according to ueb students in geojson
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@cfuendev
cfuendev / svelte-repl-dark.js
Last active January 14, 2023 22:25
Darken Svelte.dev's online REPLs
// ==UserScript==
// @name Svelte Repl Dark Mode
// @namespace http://tampermonkey.net/
// @version 1.0.2
// @description Makes https://svelte.dev/repl dark!
// @author Cfuen (Juan Castillo) | https://github.com/cfuendev
// @match https://svelte.dev/repl/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=svelte.dev
// @grant none
// @run-at document-end
@cfuendev
cfuendev / chatgpt-sidebar-toggle.js
Last active May 16, 2023 21:59
Hide ChatGPT's sidebar with a neat little button!
// ==UserScript==
// @name Hide ChatGPT Sidebar
// @namespace http://tampermonkey.net/
// @version 0.2
// @description This userscript adds a little button to ChatGPT's Sidebar so that you can hide it.
// @author CFUEN (https://github.com/cfuendev)
// @match https://chat.openai.com/*
// @match https://chat.openai.com/c/*
// @icon https://chat.openai.com/favicon-16x16.png
// @grant none
// variables...
const content = document.querySelector("nav").nextElementSibling
const nav = document.querySelector("nav")
window.sidebarHidden = false
let isHorizontal = false
if (getComputedStyle(nav).transform !== "none") {
isHorizontal = true