Skip to content

Instantly share code, notes, and snippets.

View greister's full-sized avatar
🎯
Focusing

greister

🎯
Focusing
View GitHub Profile
@greister
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...
<#
.SYNOPSIS
Script to Initialize my custom powershell setup.
.DESCRIPTION
Script uses scoop
.NOTES
**NOTE** Will configure the Execution Policy for the "CurrentUser" to Unrestricted.
Author: Mike Pruett
Date: October 18th, 2018
@greister
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
# got to handle both escaped and literal
df.replace(to_replace=[r"\\t|\\n|\\r", "\t|\n|\r"], value=["",""], regex=True, inplace=<INPLACE>)
@greister
greister / weechat relay
Created February 27, 2018 06:43 — forked from meskarune/weechat relay
weechat relay with ssl
mkdir ~/.weechat/ssl-cert
cd ~/.weechat/ssl-cert
openssl req -nodes -newkey rsa:2048 -keyout relay.pem -x509 -out relay.pem
In weechat:
/set relay.network.ssl_cert_key "/home/username/.weechat/ssl-cert/relay.pem"
/relay add ssl.weechat 9001
@greister
greister / install-swift-ubuntu.md
Created February 6, 2018 17:48 — forked from Azoy/install-swift-ubuntu.md
Guide on how to install Swift on Ubuntu

Install Swift on Ubuntu

Requirements

  1. Ubuntu 14.04, 16.04, or 16.10

Step 1 - Dependencies

  1. Open up terminal
  2. Install core deps: sudo apt-get install clang libicu-dev git

Step 1.1 - Ubuntu 14.04 Clang

@greister
greister / Vagrantfile
Created January 31, 2018 10:16 — forked from leifg/Vagrantfile
Add a second disk to system using vagrant
file_to_disk = './tmp/large_disk.vdi'
Vagrant::Config.run do |config|
config.vm.box = '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]
end
@greister
greister / download_vagrant_box.sh
Created January 26, 2018 06:59 — forked from firmanelhakim/download_vagrant_box.sh
How to Download Vagrant Box Manually
/* this is the box (and the version) that we want to download from: https://app.vagrantup.com/debian/boxes/jessie64 */
wget https://app.vagrantup.com/debian/boxes/jessie64/versions/8.9.0/providers/virtualbox.box -O debian-jessie64-8.9.0.box
/* add the box to vagrant */
vagrant box add debian/jessie64 debian-jessie64-8.9.0.box
/* update box version */
cd ~/.vagrant.d/boxes/debian-VAGRANTSLASH-jessie64/
mv 0 8.9.0
@greister
greister / init.vim
Created December 16, 2017 16:31
neovim configuration
" vim:foldmethod=marker:foldlevel=0
" vim-plug {{{
call plug#begin()
" color scheme
Plug 'chriskempson/base16-vim'
" syntax highlighting
Plug 'peterhoeg/vim-qml'
@greister
greister / arch-vagrant-base-box-preparation.md
Created November 20, 2017 12:07
Notes on preparation minimal Vagrant base box for Arch / Manjaro Linux.
@greister
greister / Export-ExcelCSV.ps1
Created June 26, 2017 13:32
Export-ExcelCSV.ps1 #powershell #excel
# Author: Miodrag Milic <[email protected]>
# Last Change: 12-Feb-2016.
param(
# Path to Excel file
[string] $Path
)
if (!(Test-Path $Path)) { throw Path not found: $Path }
ps excel -ea 0| kill
@greister
greister / dnsmasq.conf
Created April 4, 2017 09:23 — forked from aa65535/dnsmasq.conf
dnsmasq config
# 并发查询所有上游DNS服务器
all-servers
# 本地DNS缓存最小有效期
min-cache-ttl=3600
# 本地DNS缓存数目
cache-size=65535
# 上游DNS服务器, 可设置多个
server=8.8.4.4
#server=8.8.8.8
server=114.114.114.114