Skip to content

Instantly share code, notes, and snippets.

View keithkim's full-sized avatar

Keith Kim keithkim

View GitHub Profile
#!/bin/bash
# https://askubuntu.com/questions/1020692/terminal-splash-screen-with-weather-calendar-time-sysinfo
#
# NAME: now
# PATH: $HOME/bin
# DESC: Display current weather, calendar and time
# CALL: Called from terminal or ~/.bashrc
# DATE: Apr 6, 2017. Modified: May 24, 2019.
@keithkim
keithkim / merge_mp3.sh
Last active January 2, 2022 00:05
simple script to automate merging converted mp3 files into single mp3 and add cover image
#!/usr/bin/bash
# Keith Kim, 2021-06
# This is to automate merging mp3 files and add cover image for audible audio book files converted to mp3 using AAXtoMP3
OIFS="$IFS"
IFS=$'\n'
for authorpath in `find . -maxdepth 1 -type d -print`
do
if [ "." == "$authorpath" ]; then continue; fi
@keithkim
keithkim / graalenv.bat
Created November 5, 2023 03:33
cmd batch file to set graalvm environment variables
@echo off
set GRAALVM_BASE=D:\opt\graalvm
set GRAALVM_PATH_TMP=%GRAALVM_BASE%\graalpath.tmp
setlocal enabledelayedexpansion
echo.
echo =====================================
echo 🍵 Graalvm Environment Setting Helper
echo 🍵 Graalvm Base Path=%GRAALVM_BASE%
@keithkim
keithkim / aliases.txt
Created November 5, 2023 03:38
alias for cmd
ca=conda activate $1
cde=conda deactivate
cda=conda deactivate
cel=conda env list
condals=conda list
cs=conda search $1
find=findstr /sin $*
..=..\$*
...=..\..\$*
@keithkim
keithkim / alias.bat
Created November 5, 2023 03:37
alias helper for cmd
@echo off
REM *** set up alias for DOS environment like Bash's alias
REM *** 2022-10-12
@doskey vlist=
@doskey /macrofile=C:\bin\aliases.txt
REM *** to display all defined aliases
REM doskey /macros:all