git clone ssh://aur@aur.archlinux.org/package_name.git
Prototype files are in /usr/share/pacman
#!/usr/bin/env zsh -f | |
# Purpose: get the RSS feed for a YouTube page | |
# Inspired By: https://eggfreckles.net/notes/youtube-rss/ | |
# Gist: https://gist.github.com/tjluoma/fdbc63ceb78a2aecd3d638fd18b6ec6e | |
# | |
# From: Timothy J. Luoma | |
# Mail: luomat at gmail dot com | |
# Date: 2020-01-17; updated 2021-01-10 | |
# 2021-01-10 YouTube currently has both 'rssUrl' and |
[Trigger] | |
Operation = Install | |
Operation = Upgrade | |
Operation = Remove | |
Type = Package | |
Target = * | |
[Action] | |
Description = Searching for orphaned packages... | |
When = PostTransaction |
# This version of the printProgressBar function implements an optional autoresize argument. | |
# It has been updated from a previous version to use the shutil Python module to determine | |
# the terminal size. This update should allow it to work on most operating systems and does | |
# speed up the autosize feature quite a bit – though it still slows things down quite a bit. | |
# For more robust features, it's recommended you use a progress bar library like tdqm (see: https://github.com/tqdm/tqdm) | |
def printProgressBar (iteration, total, prefix = '', suffix = '', decimals = 1, length = 100, fill = '█', autosize = False): | |
""" | |
Call in a loop to create terminal progress bar | |
@params: |
#Prefix is Ctrl-a | |
set -g prefix C-a | |
bind C-a send-prefix | |
unbind C-b | |
set -sg escape-time 1 | |
set -g base-index 1 | |
setw -g pane-base-index 1 | |
#Mouse works as expected |
import * as request from "request"; | |
import * as SendBird from "sendbird"; | |
const sendbirdServiceUrl = "https://sendbird.reddit.com"; | |
const sendbirdAppId = "2515BDA8-9D3A-47CF-9325-330BC37ADA13"; | |
const userId = "t2_mv8j9bt"; // chatrev1 | |
const accessToken = "49777998329-oof4CSA1jedsnu6pXgJj_SFIk7o"; | |
// accessToken (bearer): | |
// full (personalized) oauth2 access token (from web/installed reddit app): user id base 10 - oauth2 access token |
{ | |
"grinning": "\ud83d\ude00", | |
"smiley": "\ud83d\ude03", | |
"smile": "\ud83d\ude04", | |
"grin": "\ud83d\ude01", | |
"laughing": "\ud83d\ude06", | |
"satisfied": "\ud83d\ude06", | |
"face_holding_back_tears": "\ud83e\udd79", | |
"sweat_smile": "\ud83d\ude05", | |
"joy": "\ud83d\ude02", |
import cheerio from 'cheerio-without-node-native'; | |
const convertRequestBodyToFormUrlEncoded = (data) => { | |
const bodyKeys = Object.keys(data); | |
const str = []; | |
for (let i = 0; i < bodyKeys.length; i += 1) { | |
const thisKey = bodyKeys[i]; | |
const thisValue = data[thisKey]; | |
str.push(`${encodeURIComponent(thisKey)}=${encodeURIComponent(thisValue)}`); |
As configured in my dotfiles.
start new:
tmux
start new with session name:
#!/bin/sh | |
# Script to capture info on currently playing song in MPD, add an | |
# (optional) prefix and/or suffix and tweet it all via TTYtter (which | |
# must be of course already been configured) | |
# | |
# Dependencies: TTYtter, a MPD client that can output song info (I use | |
# ncmpcpp) | |
PREFIX='on air: ' # what should go before the now playing string |