Skip to content

Commit 72702f1

Browse files
committed
nightly
1 parent 07acbbf commit 72702f1

File tree

5 files changed

+39
-1
lines changed

5 files changed

+39
-1
lines changed

.zshrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ export BUN_INSTALL="/home/leoadmin/.bun"
403403
export PATH="$BUN_INSTALL/bin:$PATH"
404404

405405
# Dotfiles
406-
alias dot="/usr/bin/git --git-dir=/home/leoadmin/dotfiles.git --work-tree=/home/leoadmin"
406+
alias dot="/usr/bin/git --git-dir=$HOME/dotfiles.git --work-tree=$HOME"
407407
# Hides all the untracked files in the output
408408
dot config --local status.showUntrackedFiles no
409409
# only show hidden files

scripts/bash/install_fortune.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
3+
REQUIRED_PKG="fortune"
4+
PKG_OK=$(dpkg-query -W --showformat='${Status}\n' $REQUIRED_PKG | grep "install ok installed")
5+
echo Checking for $REQUIRED_PKG: "$PKG_OK"
6+
if [ "" = "$PKG_OK" ]; then
7+
echo "No $REQUIRED_PKG. Setting up $REQUIRED_PKG."
8+
sudo apt-get --yes install $REQUIRED_PKG
9+
fi

scripts/bash/svg_to_png.sh

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/bin/bash
2+
3+
echo Enter width:
4+
read width
5+
6+
echo Enter height:
7+
read height
8+
9+
echo Enter input image:
10+
read input
11+
12+
echo Enter output image:
13+
read output
14+
15+
# Inkscape older than v1.0
16+
# inkscape -z -w 1024 -h 1024 input.svg -e output.png
17+
inkscape -z -w $width -h $height $input.svg -e png/${output}.png

scripts/bash/tt_config.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/bash
2+
3+
# Produces a test consisting of 40 random words drawn from your system's dictionary.
4+
alias ttr="shuf -n 40 /usr/share/dict/words|tt"
5+
6+
# Produces a test consisting of a random quote.
7+
alias ttq="curl http://api.quotable.io/random|jq '[.text=.content|.attribution=.author]'|tt -quotes -"
8+
9+
# Creates an alias called ttd which keeps a log of progress in your home directory`.
10+
alias ttd="tt -csv >> ~/wpm.csv"

scripts/git_bare_repo_alias

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/usr/bin/env bash
2+
echo "alias C='/usr/bin/git --git-dir=$HOME/dotfiles.git --work-tree=$HOME'" >> $HOME/.zshrc

0 commit comments

Comments
 (0)