Skip to content

Instantly share code, notes, and snippets.

@ntaraujo
ntaraujo / jaguar.sh
Last active November 10, 2020 20:03
My current setup
#!/bin/sh
# Start timer
start=$SECONDS
# Verbose and safe
set -xe
# Display
echo "#!/bin/sh
@ntaraujo
ntaraujo / destreamer
Created December 3, 2020 13:17
destreamer preferences
#!/bin/sh
cd ~/Downloads/Destreamer/destreamer/
./destreamer.sh --skip -v -k -i "$1" --format mp4 --vcodec libx265 -o ../
@ntaraujo
ntaraujo / webcam
Created December 6, 2020 19:54
IP webcam connection
#!/bin/sh
# Exit if error
set -e
# My cam
WEBCAM="~/Projects/ipwebcam-gst/run-videochat.sh -w 1920 -h 1080"
# Unsure
case "$1" in
@ntaraujo
ntaraujo / importer.py
Last active March 16, 2021 12:44
import module/object referenced as string/path
from importlib import import_module
from importlib.util import spec_from_file_location, module_from_spec
from sys import modules
from os.path import dirname, abspath, isfile
from re import compile
from os import PathLike
from types import ModuleType
from typing import Union, Any, TypeVar, List, Optional
_string_type = Union[str, bytes]
@ntaraujo
ntaraujo / hour_minute
Created June 3, 2021 18:30
My Conky Files
############
# Settings #
############
background yes
use_xft yes
xftfont GE Inspira:size=9
xftalpha 1
update_interval 1.0
total_run_times 0
own_window yes
@ntaraujo
ntaraujo / bars.glsl
Last active August 24, 2021 11:46
My Glava Files
/* Center line thickness (pixels) */
#define C_LINE 1
/* Width (in pixels) of each bar */
#define BAR_WIDTH 4
/* Width (in pixels) of each bar gap */
#define BAR_GAP 2
/* Outline color */
#define BAR_OUTLINE #262626
/* Outline width (in pixels, set to 0 to disable outline drawing) */