Skip to content

Instantly share code, notes, and snippets.

greister / shell-setup.ps1
Created August 7, 2022 03:03 — forked from mikepruett3/shell-setup.ps1
Packages to install via scoop, winget, choco, and other tools...
View shell-setup.ps1
Script to Initialize my custom powershell setup.
Script uses scoop
**NOTE** Will configure the Execution Policy for the "CurrentUser" to Unrestricted.
Author: Mike Pruett
Date: October 18th, 2018
greister / pandas_newline_strip.txt
Created October 14, 2019 04:54 — forked from smram/pandas_newline_strip.txt
[pandas] replace newlines,tabs,carriage returns in fields
View pandas_newline_strip.txt
# got to handle both escaped and literal
df.replace(to_replace=[r"\\t|\\n|\\r", "\t|\n|\r"], value=["",""], regex=True, inplace=<INPLACE>)
greister / weechat relay
Created February 27, 2018 06:43 — forked from meskarune/weechat relay
weechat relay with ssl
View weechat relay
mkdir ~/.weechat/ssl-cert
cd ~/.weechat/ssl-cert
openssl req -nodes -newkey rsa:2048 -keyout relay.pem -x509 -out relay.pem
In weechat:
/set "/home/username/.weechat/ssl-cert/relay.pem"
/relay add ssl.weechat 9001
greister /
Created February 6, 2018 17:48 — forked from Azoy/
Guide on how to install Swift on Ubuntu
View Vagrant debug log
vagrant : INFO global: Vagrant version: 2.0.1
+ vagrant up --debug 2>&1 | Tee-Object -FilePath ".\vagrant.log"
+ ~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: ( INFO global: Vagrant version: 2.0.1:String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError
INFO global: Ruby version: 2.4.2
INFO global: RubyGems version: 2.6.13
greister / Vagrantfile
Created January 31, 2018 10:16 — forked from leifg/Vagrantfile
Add a second disk to system using vagrant
View Vagrantfile
file_to_disk = './tmp/large_disk.vdi' do |config| = 'base'
config.vm.customize ['createhd', '--filename', file_to_disk, '--size', 500 * 1024]
config.vm.customize ['storageattach', :id, '--storagectl', 'SATA Controller', '--port', 1, '--device', 0, '--type', 'hdd', '--medium', file_to_disk]
greister /
Created January 26, 2018 06:59 — forked from firmanelhakim/
How to Download Vagrant Box Manually
/* this is the box (and the version) that we want to download from: */
wget -O
/* add the box to vagrant */
vagrant box add debian/jessie64
/* update box version */
cd ~/.vagrant.d/boxes/debian-VAGRANTSLASH-jessie64/
mv 0 8.9.0
greister / init.vim
Created December 16, 2017 16:31
neovim configuration
View init.vim
" vim:foldmethod=marker:foldlevel=0
" vim-plug {{{
call plug#begin()
" color scheme
Plug 'chriskempson/base16-vim'
" syntax highlighting
Plug 'peterhoeg/vim-qml'
View gist:95e5c1da35fa884a0fa0de971b0747e7
This file has been truncated, but you can view the full file.
INFO global: Vagrant version: 2.0.1
INFO global: Ruby version: 2.4.2
INFO global: RubyGems version: 2.6.13
INFO global: VAGRANT_EXECUTABLE="C:\\HashiCorp\\Vagrant\\embedded\\gems\\gems\\vagrant-2.0.1\\bin\\vagrant"
INFO global: VAGRANT_HOME="D:\\vagrant.d"
INFO global: VAGRANT_INSTALLER_EMBEDDED_DIR="C:\\HashiCorp\\Vagrant\\embedded"
INFO global: VAGRANT_LOG="debug"
INFO global: VAGRANT_OLD_ENV_="ExitCode=00000000"
greister /
Created November 20, 2017 12:07
Notes on preparation minimal Vagrant base box for Arch / Manjaro Linux.