Skip to content

Instantly share code, notes, and snippets.

View cdncat's full-sized avatar
🌻

cdncat

🌻
View GitHub Profile
@cdncat
cdncat / .gitconfig
Created May 31, 2022 05:46
gitconfig
[user]
name = cdncat
email = cdncat@users.noreply.github.com
[core]
pager = less -+$LESS -RS
[alias]
nit = commit --amend --no-edit
@cdncat
cdncat / migration.sh
Last active December 12, 2021 21:37
migrating dot files
# in root directory
cd ~
# list all files starting with `.`
ls -d \.*
for FILE in \.*;
do
if [ $FILE != "." ] && [ $FILE != ".." ]; then
@cdncat
cdncat / GoogleCalendarURL.txt
Last active October 8, 2018 12:51
Google Calendar URL
<a
href={"http://www.google.com/calendar/event?action=TEMPLATE"
+ "&text=" + event.name
+ "&dates=20181001T150000Z/20181105T170000Z"
+ "&location=" + "location_place"}
> ✚ gCal</a>
<!--by default, Google calendar is in GMT time (I think it's possible to add locale). -->
<!-- 20181001T15 00 00Z is the start date and time where it can be seen as "YYYYMMDD T HHMM 00Z" where YYYYMMDD is the YYYY-MM-DD format and HHMM is hour and minute in 24 hour format. -->