Skip to content

Instantly share code, notes, and snippets.

View OdinsHat's full-sized avatar
💭
Open to job offers

Doug OdinsHat

💭
Open to job offers
View GitHub Profile
#repost bot prevention
type: submission
author:
combined_karma: "< 150"
is_contributor: false
action: remove
comment: |
Sorry, you don't have enough karma (150 points total) to make posts on [sub name here]! You can either message the mod team [here]([link to message mod team]) and ask to be manually approved, or you can spend some more time engaging with the community and try again when you've accrued enough karma.
comment_stickied: true
@OdinsHat
OdinsHat / esptool-in-linux.sh
Last active May 17, 2024 13:57
Esptool being used to install ESPEasy in Linux
#!/bin/sh
#this is the command to type when installing ESP Easy to your ESP8266 device.
sudo python esptool.py --port /dev/ttyUSB0 write_flash 0x00000 ESP_Easy_mega-20200426_dev_ESP8266_4M1M.bin
@OdinsHat
OdinsHat / install-fluentbit-buster.sh
Created May 14, 2020 20:27
Installing fluent bit
#!/bin/sh
wget -qO - https://packages.fluentbit.io/fluentbit.key | sudo apt-key add -
sudo echo "deb https://packages.fluentbit.io/raspbian/buster buster main" > /etc/apt/sources.list
sudo apt-get update
sudo apt-get install td-agent-bit
@OdinsHat
OdinsHat / setup_dotfiles.sh
Created January 1, 2020 02:15
Generate Dotfiles config directory as described on my blog with inspiration from
#!/bin/sh
git init --bare $HOME/.cfg
alias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME'
config config --local status.showUntrackedFiles no
echo "alias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME'" >> $HOME/.bashrc
touch .zshrc
echo "alias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME'" >> $HOME/.zshrc
@OdinsHat
OdinsHat / castbox-opml-nov-19.xml
Created November 19, 2019 19:04
Castbox OPML
<?xml version="1.0" encoding="UTF-8"?>
<!-- OPML generated by Castbox -->
<opml version="2.0">
<head>
<title>Castbox Subscriptions</title>
</head>
<body>
<outline text="Path of Light - The Bodhi-Charyavatara of Santi-Deva by Shantideva" title="Path of Light - The Bodhi-Charyavatara of Santi-Deva by Shantideva" type="rss" htmlUrl="http://www.loyalbooks.com/book/the-path-of-light-the-bodhi-charyavatara-of-santi-deva-by-shantideva/feed" xmlUrl="http://www.loyalbooks.com/book/the-path-of-light-the-bodhi-charyavatara-of-santi-deva-by-shantideva/feed" />
<outline text="Dharmabytes from free buddhist audio" title="Dharmabytes from free buddhist audio" type="rss" htmlUrl="http://dharmabytes.libsyn.com/rss" xmlUrl="http://dharmabytes.libsyn.com/rss" />
<outline text="Free Buddhist Audio" title="Free Buddhist Audio" type="rss" htmlUrl="https://dharmachakra.libsyn.com/rss" xmlUrl="https://dharmachakra.libsyn.com/rss" />
// Add a space 3 from the end of a post code and make uppercase
this.address['postCode'] = this.address['postCode'].replace(/.{3}$/,' $&').toUpperCase();
// Add comma for thousand seperator
thousands = string.replace(/\B(?=(\d{3})+(?!\d))/g, ",");
@OdinsHat
OdinsHat / .gitconfig
Last active September 11, 2022 12:49
[user]
email = doug.bromley@gmail.com
name = Doug Bromley
[filter "lfs"]
process = git-lfs filter-process
required = true
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
[core]
editor = vim
@OdinsHat
OdinsHat / .vimrc
Created January 11, 2019 23:05
.vimrc file for vire to find
set nocompatible
" Powerline configs
let g:powerline_pycmd = 'py3'
set laststatus=2
" Plugin 'python.vim'
" Plugin 'python.vim--Vasiliev'
" Plugin 'pyflakes.vim'
" Plugin 'pydoc.vim'
@OdinsHat
OdinsHat / README-Template.md
Created July 28, 2018 09:53 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites