Skip to content

Instantly share code, notes, and snippets.

View philipsd6's full-sized avatar

Philip Douglass philipsd6

View GitHub Profile
@philipsd6
philipsd6 / poetry-update-vvv.txt
Created October 24, 2021 20:24
poetry update -vvv output
Loading configuration file /home/philipsd6/.config/pypoetry/config.toml
Loading configuration file /home/philipsd6/.config/pypoetry/auth.toml
Adding repository artifactory (https://internal-repository/api/pypi/pypi/simple) and setting it as the default one
Deactivating the PyPI repository
Using virtualenv: /home/philipsd6/.cache/pypoetry/virtualenvs/testing-poetry-7qidRo_f-py3.10
Updating dependencies
Resolving dependencies...
1: fact: testing-poetry is 0.1.0
1: derived: testing-poetry
1: fact: testing-poetry depends on fastapi (^0.68.0)
@philipsd6
philipsd6 / pyproject.toml
Last active October 24, 2021 20:18
python-poetry/poetry issue #4674
[tool.poetry]
name = "testing-poetry"
description = "poetry update reinstalls same versions"
version = "0.1.0"
authors = ["Me <[email protected]>"]
readme = "README.md"
[tool.poetry.dependencies]
python = "^3.9"
fastapi = "^0.68.0"
@philipsd6
philipsd6 / _openstack
Created February 22, 2017 16:37
openstack completion for zsh, lifted from http://www.zsh.org/mla/workers/2016/msg01936.html
#compdef openstack aodh barbican ceilometer cinder cloudkitty designate glance gnocchi heat ironic keystone magnum manila mistral monasca murano neutr
# https://wiki.openstack.org/wiki/OpenStackClients
# http://docs.openstack.org/user-guide/common/cli-install-openstack-command-line-clients.html
local curcontext="$curcontext" state line expl ret=1
local -a clnts_compl_new clnts_compl_old clnts_swift_like
#
@philipsd6
philipsd6 / install-tmux
Last active February 22, 2021 14:41 — forked from rothgar/install-tmux
Install tmux 2.3 on rhel/centos 7
# Install tmux on rhel/centos 7
# install deps
yum install gcc kernel-devel make ncurses-devel
# DOWNLOAD SOURCES FOR LIBEVENT AND MAKE AND INSTALL
curl -OL https://github.com/libevent/libevent/releases/download/release-2.0.22-stable/libevent-2.0.22-stable.tar.gz
tar -xvzf libevent-2.0.22-stable.tar.gz
cd libevent-2.0.22-stable
./configure --prefix=/usr/local
# [Previewing Markdown Files from the Terminal][1]
# [1]: http://blog.metamatt.com/blog/2013/01/09/previewing-markdown-files-from-the-terminal/
mdless () {
pandoc -s -f markdown -t man $1 | groff -T utf8 -man| grep -v '()$' | less
}
# http://nparikh.org/notes/zshrc.txt
# Usage: smartextract <file>
# Description: extracts archived files / mounts disk images
# Note: .dmg/hdiutil is Mac OS X-specific.
smartextract () {
if [[ -f $1 ]]; then
case $1 in
*.tar.bz2) tar -jxvf $1 ;;
*.tar.gz) tar -zxvf $1 ;;
*.bz2) bunzip2 $1 ;;
@philipsd6
philipsd6 / _tmux_pane_words.zsh
Last active January 17, 2016 02:25 — forked from blueyed/_tmux_pane_words.zsh
ZSH configuration to complete words from tmux pane(s) Based on http://blog.plenz.com/2012-01/zsh-complete-words-from-tmux-pane.html
# complete words from tmux pane(s) {{{1
# Source: http://blog.plenz.com/2012-01/zsh-complete-words-from-tmux-pane.html
_tmux_pane_words() {
local expl
local -a w
if [[ -z "$TMUX_PANE" ]]; then
_message "not running inside tmux!"
return 1
fi
# capture current pane first
@philipsd6
philipsd6 / keybase.md
Last active August 17, 2018 19:30
Proving my GitHub identity on Keybase.io

Keybase proof

I hereby claim:

  • I am philipsd6 on github.
  • I am philipsd6 (https://keybase.io/philipsd6) on keybase.
  • I have a public key whose fingerprint is 0CE0 D71F 0491 3A03 AF2A D02E E66F DBF7 D927 3C2C

To claim this, I am signing this object:

@philipsd6
philipsd6 / sync pythonista scripts.py
Last active August 29, 2015 14:16
This will synchronize my pythonista scripts with Dropbox
# https://gist.github.com/philipsd6/3646b2856d2d6aaa2826
import dropboxlogin
gitlab-dirs:
file.directory:
- names:
- gitlab-satellites
- gitlab/tmp/pids
- gitlab/tmp/sockets
- gitlab/public/uploads
- user: git
- group: git
- mode: 755