Skip to content

Instantly share code, notes, and snippets.

View shyamzzp's full-sized avatar
🏠
Working from home

Shyam Suthar shyamzzp

🏠
Working from home
View GitHub Profile
@shyamzzp
shyamzzp / workflowy-two-line-notes.user.js
Last active April 27, 2026 11:41
Tampermonkey userscript: show Workflowy notes up to two lines
// ==UserScript==
// @name Workflowy Two-Line Notes
// @namespace https://github.com/shyamzzp/workflowy-cli
// @version 0.3.1
// @description Keep Workflowy notes visible for up to two lines, then truncate with an ellipsis.
// @match https://workflowy.com
// @match https://workflowy.com/*
// @match https://*.workflowy.com/*
// @include https://workflowy.com/#/*
// @include https://*.workflowy.com/#/*
@shyamzzp
shyamzzp / ghost-drive-install-remote-gist.sh
Last active March 30, 2026 04:38
GhostDrive install bootstrap for curl | bash
#!/usr/bin/env bash
set -euo pipefail
GHOSTDRIVE_REPO="${GHOSTDRIVE_REPO:-shyamzzp/ghost-drive}"
GHOSTDRIVE_REF="${GHOSTDRIVE_REF:-main}"
GHOSTDRIVE_INSTALL_DIR="${GHOSTDRIVE_INSTALL_DIR:-$HOME/.local/bin}"
GHOSTDRIVE_SKIP_PROFILE_HINT="${GHOSTDRIVE_SKIP_PROFILE_HINT:-0}"
GHOSTDRIVE_WORKDIR=""
GHOSTDRIVE_GITHUB_TOKEN=""
#!/usr/bin/env bash
set -euo pipefail
SHORTCUTS_DIR="${HOME}/.config/git-shortcuts"
SHORTCUTS_FILE="${SHORTCUTS_DIR}/git-shortcuts.sh"
SOURCE_LINE='[ -f "$HOME/.config/git-shortcuts/git-shortcuts.sh" ] && source "$HOME/.config/git-shortcuts/git-shortcuts.sh"'
backup_if_exists() {
local file_path="$1"
if [ -f "${file_path}" ]; then
#!/usr/bin/env bash
set -euo pipefail
SHORTCUTS_DIR="${HOME}/.config/git-shortcuts"
SHORTCUTS_FILE="${SHORTCUTS_DIR}/git-shortcuts.sh"
SOURCE_LINE='[ -f "$HOME/.config/git-shortcuts/git-shortcuts.sh" ] && source "$HOME/.config/git-shortcuts/git-shortcuts.sh"'
backup_if_exists() {
local file_path="$1"
if [ -f "${file_path}" ]; then
#!/usr/bin/env bash
set -euo pipefail
SHORTCUTS_DIR="${HOME}/.config/git-shortcuts"
SHORTCUTS_FILE="${SHORTCUTS_DIR}/git-shortcuts.sh"
SOURCE_LINE='[ -f "$HOME/.config/git-shortcuts/git-shortcuts.sh" ] && source "$HOME/.config/git-shortcuts/git-shortcuts.sh"'
backup_if_exists() {
local file_path="$1"
if [ -f "${file_path}" ]; then
#!/usr/bin/env bash
set -euo pipefail
SHORTCUTS_DIR="${HOME}/.config/git-shortcuts"
SHORTCUTS_FILE="${SHORTCUTS_DIR}/git-shortcuts.sh"
SOURCE_LINE='[ -f "$HOME/.config/git-shortcuts/git-shortcuts.sh" ] && source "$HOME/.config/git-shortcuts/git-shortcuts.sh"'
backup_if_exists() {
local file_path="$1"
if [ -f "${file_path}" ]; then
#!/usr/bin/env bash
set -euo pipefail
SHORTCUTS_DIR="${HOME}/.config/git-shortcuts"
SHORTCUTS_FILE="${SHORTCUTS_DIR}/git-shortcuts.sh"
SOURCE_LINE='[ -f "$HOME/.config/git-shortcuts/git-shortcuts.sh" ] && source "$HOME/.config/git-shortcuts/git-shortcuts.sh"'
backup_if_exists() {
local file_path="$1"
if [ -f "${file_path}" ]; then
#!/usr/bin/env bash
set -euo pipefail
SHORTCUTS_DIR="${HOME}/.config/git-shortcuts"
SHORTCUTS_FILE="${SHORTCUTS_DIR}/git-shortcuts.sh"
SOURCE_LINE='[ -f "$HOME/.config/git-shortcuts/git-shortcuts.sh" ] && source "$HOME/.config/git-shortcuts/git-shortcuts.sh"'
backup_if_exists() {
local file_path="$1"
if [ -f "${file_path}" ]; then
#!/usr/bin/env bash
set -euo pipefail
SHORTCUTS_DIR="${HOME}/.config/git-shortcuts"
SHORTCUTS_FILE="${SHORTCUTS_DIR}/git-shortcuts.sh"
SOURCE_LINE='[ -f "$HOME/.config/git-shortcuts/git-shortcuts.sh" ] && source "$HOME/.config/git-shortcuts/git-shortcuts.sh"'
backup_if_exists() {
local file_path="$1"
if [ -f "${file_path}" ]; then
#!/usr/bin/env bash
set -euo pipefail
SHORTCUTS_DIR="${HOME}/.config/git-shortcuts"
SHORTCUTS_FILE="${SHORTCUTS_DIR}/git-shortcuts.sh"
SOURCE_LINE='[ -f "$HOME/.config/git-shortcuts/git-shortcuts.sh" ] && source "$HOME/.config/git-shortcuts/git-shortcuts.sh"'
backup_if_exists() {
local file_path="$1"
if [ -f "${file_path}" ]; then