Skip to content

Instantly share code, notes, and snippets.

View kyleterry's full-sized avatar

Kyle Terry kyleterry

View GitHub Profile
kyle@solar ~/code/misc $ git clone https://github.com/FXinnovation/alertmanager-webhook-servicenow
Cloning into 'alertmanager-webhook-servicenow'...
remote: Enumerating objects: 481, done.
remote: Counting objects: 100% (481/481), done.
remote: Compressing objects: 100% (373/373), done.
remote: Total 1513 (delta 155), reused 263 (delta 94), pack-reused 1032
Receiving objects: 100% (1513/1513), 4.14 MiB | 16.36 MiB/s, done.
Resolving deltas: 100% (558/558), done.
kyle@solar ~/code/misc $ cd alertmanager-webhook-servicenow/
kyle@solar ~/code/misc/alertmanager-webhook-servicenow $ go get ./...
// SetJSONBody is used to set a request body that is a JSON-encoded value.
func (r *Request) SetJSONBody(val interface{}) error {
buf, err := json.Marshal(val)
if err != nil {
return err
}
r.Obj = val
r.BodyBytes = buf
return nil
>>> Install dev-db/olegdb-0.1.6 into /var/tmp/portage/dev-db/olegdb-0.1.6/image
make -j12 DESTDIR=/var/tmp/portage/dev-db/olegdb-0.1.6/image install
CGO_LDFLAGS=-L/var/tmp/portage/dev-db/olegdb-0.1.6/work/OlegDB-v.0.1.6 go build -o olegdb ./cmd/olegdb
OlegDB installed to /var/tmp/portage/dev-db/olegdb-0.1.6/image/usr :^).
>>> Completed installing dev-db/olegdb-0.1.6 into /var/tmp/portage/dev-db/olegdb-0.1.6/image
* Final size of build directory: 9452 KiB (9.2 MiB)
* Final size of installed tree: 8300 KiB (8.1 MiB)
Files matching a file type that is not allowed:
# vim:filetype=i3
set $mod Mod4
set $locker ${HOME}/.local/bin/screen-locker
set $lightson ${HOME}/.local/bin/lightson
#smart_borders on
# window title font
font pango: xos4 Terminus 8
set nocompatible
set nobackup
set nowritebackup
set noswapfile
call plug#begin()
Plug 'morhetz/gruvbox'
Plug 'jlanzarotta/bufexplorer'
Plug 'tpope/vim-fugitive'
Plug 'tpope/vim-sensible'
tenyksscripts_1 | Traceback (most recent call last):
tenyksscripts_1 | File "/usr/local/lib/python3.7/site-packages/requests-2.19.1-py3.7.egg/requests/adapters.py", line 445, in send
tenyksscripts_1 | timeout=timeout
tenyksscripts_1 | File "/usr/local/lib/python3.7/site-packages/urllib3-1.23-py3.7.egg/urllib3/connectionpool.py", line 638, in urlopen
tenyksscripts_1 | _stacktrace=sys.exc_info()[2])
tenyksscripts_1 | File "/usr/local/lib/python3.7/site-packages/urllib3-1.23-py3.7.egg/urllib3/util/retry.py", line 398, in increment
tenyksscripts_1 | raise MaxRetryError(_pool, url, error or ResponseError(cause))
tenyksscripts_1 | urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='colbyolson.com', port=443): Max retries exceeded with url: /printers (Caused by SSLError(SSLError(1, '[SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:1045)')))
tenyksscripts_1 |
tenyksscripts_1 | During handling of the above exc
#/bin/sh
echo "from a gist"
#!/bin/bash
WORKOUT_LOG_DIR="${HOME}/.local/share/workout-log"
WORKOUT_LOG_DB="${WORKOUT_LOG_DIR}/workout.db"
# workout-log-setup ensures the data dir and db file exist
_workout-log-setup() {
test -d "${WORKOUT_LOG_DIR}" || mkdir -p "${WORKOUT_LOG_DIR}"
test -f "${WORKOUT_LOG_DB}" || echo "name,count,timestamp" > "${WORKOUT_LOG_DB}"
}
set nocompatible
filetype off
filetype plugin indent on
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
Plugin 'morhetz/gruvbox'
Plugin 'fatih/vim-go'
Plugin 'tpope/vim-fugitive'
tenyks_1 | 2018-11-21T19:33:42Z [info] [irc] joining channels connection=freenode
tenyks_1 | 2018-11-22T09:34:23Z [error] [irc] error reading data error=read tcp 172.18.0.2:54496->164.132.77.237:6697: use of closed network connection
tenyks_1 | 2018-11-22T09:34:25Z [info] [irc] bootstrapping connection connection=freenode
tenyks_1 | 2018-11-22T09:34:25Z [info] [irc] nick is in use connection=freenode nick=tenyks
tenyks_1 | 2018-11-22T09:34:26Z [info] [irc] sending user commands connection=freenode
tenyks_1 | 2018-11-22T09:34:26Z [info] [irc] joining channels connect