- Create a
.bashrc
file with the contents below
# Note: this is included because of a weird bug
# Seems to be the only way to make zsh the correct shell
# See: https://askubuntu.com/a/1292415
export SHELL=`which sh`
zsh
exit
/* | |
* This is an example of a server that will serve static content out of the | |
* $CWD/examples/static path. | |
*/ | |
import { | |
bold, | |
cyan, | |
green, | |
red, |
name: Test | |
on: | |
schedule: | |
- cron: "*/5 * * * *" | |
jobs: | |
job1: | |
name: Debug2 | |
runs-on: ubuntu-latest |
#!/usr/bin/env bash | |
i=1 | |
successes=0 | |
failures=0 | |
totalTests=10 | |
SUCCESS_CHECKMARK=$(printf '\342\234\224\n' | iconv -f UTF-8) | |
CROSS_MARK=$(printf '\342\235\214\n' | iconv -f UTF-8) | |
OUTPUT_FILE="jestOutput.txt" | |
until [ $i -gt $totalTests ]; do |
(defn big | |
"tells you whether or not the string is bigger than n" | |
[st, n] | |
(if (> (int (count st)) n) "That's a big string!" "That's a small string") | |
) |
# Loop over all markdown files | |
for file in *.md | |
do | |
# Remove the file extension | |
filename=${file%.*} | |
# Create new filename it by replacing spaces with - and lowercasing it |
# function to push to git | |
function gitpush() { | |
git add . | |
git commit -a -m "add notes" | |
git push | |
} | |
# aliases | |
alias vault="cd dev/obsidian-vault && git pull" | |
alias vaultpush="cd dev/obsidian-vault && gitpush" |
Hygen is a code generator that saves you time.
You can save yourself time by using it to generate a blog post template so you can start writing faster.
Install hygen, day.js, and open npm packages
--- | |
to: content/<%= folderName %>/index.md | |
--- | |
--- | |
slug: "<%= slug %>" | |
date: "<%= date %>" | |
title: "<%= h.inflection.titleize(title) %>" | |
description: "<%= description %>" | |
published: false | |
--- |