Skip to content

Instantly share code, notes, and snippets.

Avatar
🌻

cdncat

🌻
View GitHub Profile
View .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 Dec 12, 2021
migrating dot files
View migration.sh
# 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 Oct 8, 2018
Google Calendar URL
View GoogleCalendarURL.txt
<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. -->