Skip to content

Instantly share code, notes, and snippets.

🦉
owl be coding

Maddison Hellstrom b0o

🦉
owl be coding
Block or report user

Report or block b0o

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View news
#!/bin/bash
n="${1:-1}"
output="$(curl -s "https://www.archlinux.org/feeds/news/" | xmlstarlet sel -T -t -m /rss/channel/item -v "concat(pubDate,': ',title)" -n | head -n $n)";
echo -e "\e[1;31mhttps://www.archlinux.org/";
echo "$output";
echo -en "\e[0m"
View termcolors
#!/bin/bash
# Text Reset
export RCol='\e[0m'
# Regular
export Bla='\e[0;30m'
export Red='\e[0;31m'
export Gre='\e[0;32m'
export Yel='\e[0;33m'
export Blu='\e[0;34m'
@b0o
b0o / update
Last active Jul 11, 2018
Arch Linux update script which checks for Arch news, then updates the system via Yay or Pacman, plus support for updating user-space utilities such as NPM, Yarn, RubyGems, Cargo, and more.
View update
#!/bin/bash
#
# Copyright (c) 2018 Maddison Hellstrom (github.com/b0o)
# Released under the MIT License
#
# Arch Linux update script which checks for Arch news, then updates the system
# via Yay or Pacman, with seamless support for updating user-space utilities
# such as NPM, Yarn, RubyGems, Cargo, and more. Plus it has pretty colors :)
#
# Screencast:
View .zshrc
rawurlencode() {
local string="$@"
local strlen=${#string}
local encoded=""
local pos c o
for (( pos=0 ; pos<strlen ; pos++ )); do
c=${string:$pos:1}
case "$c" in
View main.go
for {
buf := make([]byte, 1024*4)
n, err := res.Body.Read(buf)
if err == io.EOF {
break
}
cbuf <- buf[:n]
select {
case <-cquit:
err = fmt.Errorf("force quit")
View xcqr
#!/bin/bash
qrencode -o - -s 1 \
"$(xclip -out -selection clipboard)" |
feh --zoom max \
--force-aliasing \
--image-bg white \
-
View reggie.vim
function! s:regPrompt()
echo "SetReg: "
let l:rawchar = getchar()
let l:char = nr2char(l:rawchar)
call s:setReg(l:char)
endfunction
command! -bar -nargs=0 RegPrompt call <sid>regPrompt()
nnoremap <leader>" :RegPrompt<cr>
View vim-airline.vim
function! ReggieStatus()
let l:pasteReg = g:GetPasteReg()
let l:yankReg = g:GetYankReg()
if l:pasteReg == l:yankReg
if l:pasteReg == '"'
return
endif
return 'yp="'.l:pasteReg
endif
return 'y="'.l:yankReg.',p="'.l:pasteReg
@b0o
b0o / key.md
Created Feb 28, 2019 — forked from shobotch/key.md
Twitter (un)official Consumer Key
View key.md

Twitter Official Consumer Key

Twitter for Android

type:            PIN
Consumer key:    3nVuSoBZnx6U4vzUxf5w
Consumer secret: Bcs59EFbbsdF6Sl9Ng71smgStWEGwXXKSjYvPVt7qys

Twitter for iPhone

type:            PIN
Consumer key:    IQKbtAYlXLripLGPWd0HUA
You can’t perform that action at this time.