Skip to content

Instantly share code, notes, and snippets.

View projectivemotion's full-sized avatar
👽
let's work

Amado Martinez projectivemotion

👽
let's work
View GitHub Profile
@projectivemotion
projectivemotion / Advanced Bash Usage CheatSheet.md
Last active August 25, 2018 16:28
Cheatsheet of advanced bash commands presented in Introduction to Advanced Bash Usage - James Pannacciulli. Youtube: https://youtu.be/uqHjc7hlqd0
#learnmysql_init will pull mysql and phpmyadmin/phpmyadmin images from the registry
function learnmysql_intit {
#Change supersecretpassword to work in not trusted network.
docker run --name mysql -e MYSQL_ROOT_PASSWORD="supersecretpassword" -d mysql
docker run --name phpmyadmin -d --link mysql:db -p 8080:80 phpmyadmin/phpmyadmin
}
function learnmysql_stop {
docker stop mysql phpmyadmin
}
@projectivemotion
projectivemotion / after.sh
Created December 29, 2016 00:45
Provision Homestead Vagrant with php5.6
#!/bin/bash
# save as after.sh in project root then run vagrant up
if [ "$USER" != "root" ] ; then
sudo /bin/bash "$0"
exit 0
fi
# install php5.6
apt-get update -y
@projectivemotion
projectivemotion / provision.sh
Last active December 30, 2019 04:46
Cent OS 7 Provision Docker, Epel, Php, Nginx, Git Screen, Wget
#!/bin/bash
# epel
yum install -y epel-release
# docker
yum install -y yum-utils device-mapper-persistent-data lvm2
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
yum install -y docker-ce
systemctl enable docker
@projectivemotion
projectivemotion / zenneby.sh
Last active February 14, 2021 07:17
Reads shell commands from an ini file and displays a dialog box allowing a user to select and execute any of the comands.
#!/bin/bash
# github.com/projectivemotion
#
# This script displays a listbox and allows a user
# to select and execute any of the commands from a given
# ini file. (run.ini)
#
cd $(dirname "$0")
@projectivemotion
projectivemotion / shotwell_filenames_by_tag.sh
Last active July 31, 2021 20:21
Print Shotwell Photo Filenames by Tag
#!/bin/env bash
#
# Author: Amado Martinez - AmadoMartinez.mx
# License: MIT License
# Date: 2016-05-02
#
# Example:
# $ ./shotwell_filenames_by_tag.sh ~/.local/share/shotwell/data/photo.db MyTag
#
@projectivemotion
projectivemotion / gpg2qrcodes.sh
Last active September 9, 2021 04:47 — forked from joostrijneveld/gpg2qrcodes.sh
Producing printable QR codes for persistent storage of GPG private keys
#!/bin/bash
#1. export gpg private key as ascii
#2. split ascii into 4 qr code images
#3. generate bash script for importing bash images
#4. generate bash script for decrypting files.
gpg --export-secret-key --armor | split -C 1000 - IMG
for f in IMG*; do cat $f | qrencode -o $f.png; rm -vf $f; done

TaskWarrior Quick Cheat Sheet

Last Update: 2017-01-11

Undelete a Task

task [id] modify end: status:pending

Undelete tasks that were deleted today

task +DELETED end:today modify end: status:pending
@projectivemotion
projectivemotion / timewarrior-cheatsheet.md
Last active February 21, 2023 11:15
Timewarrior Cheatsheet