Skip to content

Instantly share code, notes, and snippets.

View phwelo's full-sized avatar
🌈

Daniel Agans phwelo

🌈
View GitHub Profile
@phwelo
phwelo / powershell profile
Last active February 5, 2018 19:03
My Powershell Profile 11/1/2017 #powershell #windows
Import-Module VMware.VimAutomation.Core
# Connect-VIServer mtcvc01.llamasoft.local
function a ([string]$param) {
$apath = 'C:\Program Files\Atom x64\atom.exe'
[Diagnostics.Process]::Start($apath,$param)
}
Class IPAddressList {
[string]$Name
@phwelo
phwelo / start.rb
Last active February 5, 2018 19:18
[Artifactory for Chef] Takes identifying information and identifies release artifacts #Ruby #Chef #Artifactory
#!/usr/bin/ruby
require 'rest-client'
require 'json'
require 'uri'
artifactory_base_uri = 'http://artifactory.llamadev.local:8081/artifactory/'
artifactory_search_path = 'api/search/prop'
artifactory_search_uri = artifactory_base_uri + artifactory_search_path
@phwelo
phwelo / planning.md
Created February 6, 2018 17:28
[XML .config refactoring plans] Refactor the XML .config file handling by changing the config that comes with the file instead of using chef templates #chef #template #config #xml

XML .config Handling

Why

If we don't rely on each cookbook holding the correct configuration file, we become more version agnostic than we could be previously

How

Write either a powershell/ruby script or custom resource that will allow for specifying an XML key and the intended value

When

Not yet

Sonoff-Tasmota

Provide ESP8266 based Sonoff by iTead Studio and ElectroDragon IoT Relay with Serial, Web and MQTT control allowing 'Over the Air' or OTA firmware updates using Arduino IDE.

Current version is 5.12.0 - See sonoff/_releasenotes.ino for change information.

ATTENTION All versions

Only Flash Mode DOUT is supported. Do not use Flash Mode DIO / QIO / QOUT as it might seem to brick your device.

See Wiki for background information.

@phwelo
phwelo / Prereqs.md
Created March 6, 2018 16:24
Jenkins Slave Reqs Documentation

Jenkins Slave Software Requirements

BuildAMI

  • git: in $path
  • packer: c:\windows\system32\packer.exe

Deploy

DestroyEnvironment

@phwelo
phwelo / bs.sh
Created April 26, 2018 07:50
Workstation Bootstrap
#!/bin/bash -xev
# Do some package manager pre-work
sudo apt update
sudo apt upgrade -y
# Do some chef pre-work
/bin/mkdir -p /etc/chef
/bin/mkdir -p /var/lib/chef
/bin/mkdir -p /var/log/chef
@phwelo
phwelo / split.py
Created May 31, 2018 04:18
i3 split indicator script using nerdfonts
#!/usr/bin/env python3
import i3ipc
i3 = i3ipc.Connection()
splitv_text = '⿱'
splith_text = '⿰'
split_none = '•⿴'
parent = i3.get_tree().find_focused().parent
if parent.layout == 'splitv':
@phwelo
phwelo / cvim.conf
Last active September 14, 2018 04:24
cvim conf
" Synced from gist
set nohud
set nosmoothscroll
set noautofocus " The opposite of autofocus; this setting stops
" sites from focusing on an input box when they load
set typelinkhints
let searchlimit = 30
let scrollstep = 70
let barposition = "bottom"
let locale = "uk"
@phwelo
phwelo / config.py
Created September 14, 2018 20:47
QuteBrowser Config
# Autogenerated config.py
# Documentation:
# qute://help/configuring.html
# qute://help/settings.html
config.load_autoconfig()
# Enable JavaScript.
# Type: Bool
config.set('content.cookies.accept', 'all')
@phwelo
phwelo / .tmux.conf
Last active September 15, 2018 02:56
Holy hell I finally got the clipboard to work like I want. Save Save Save
# (‑●‑●)> dual licensed under the WTFPL v2 license and the MIT license,
# without any warranty.
# Copyright 2012— Gregory Pakosz (@gpakosz).
# /!\ do not edit this file
# -- general -------------------------------------------------------------------
setw -g xterm-keys on
set -s escape-time 10 # faster command sequences
set -sg repeat-time 600 # increase repeat timeout