Skip to content

Instantly share code, notes, and snippets.

View michaelcoyote's full-sized avatar
👀
building and learning

Michael michaelcoyote

👀
building and learning
View GitHub Profile
@michaelcoyote
michaelcoyote / tc_rate_limit.sh
Last active June 15, 2017 19:36
Script to rate limit port 443
#!/usr/bin/env bash
#
# Script to rate limit port 443
#
#network interface on which to limit traffic
IF="bond0"
#limit of the network interface in question
LINKCEIL="10gbit"
#limit outbound https protocol traffic to this rate

SupportChatOps

Similar to ChatOps What is ChatOps?

  • conversation-driven development and operations.
  • bring tools into your conversations
  • use a chat bot modified to work with key plugins and scripts
  • teams automate tasks and collaborate openly How would SupportChatOps work
  • Case bot and users (SupportEng, Eng, SalesEng) sit in slack channel
@michaelcoyote
michaelcoyote / crypt_drive_notes.md
Last active June 15, 2017 19:40
Linux encrypted LVM and luks notes.
@michaelcoyote
michaelcoyote / NetWorker_NMM_exchange_troubleshooting.md
Last active June 3, 2019 09:56
Troubleshooting NetWorker Module for Microsoft

NetWorker NMM & Exchange

Basic networker stuff to check.

  • Check that forward and reverse lookup works from each of the Exchange nodes
    • nslookup of networkerservername
    • nslookup of networker-ip-addr
    • ping from client to server

NMM and VSS stuff to check

@michaelcoyote
michaelcoyote / Mather_Modotti.md
Last active August 29, 2015 14:22
Tina Modotti and Margrethe Mather

Most of the day was spent reading up on Tina Modotti and Margrethe Mather.

Modotti was a model for Edward Weston, then a lover, then finally his assistant when he lived in Glendale/LA and who he travelled with to Mexico. She was an actress in the early 1910s and was part of the LA bohemian circles in that time. She was living as husband and wife with batik artist Roubaix de l'Abrie Richey (nicknamed "Robo") and started an affair with Weston. Robo died of smallpox while on a trip to Mexico and Modotti finished the exhibition he was working on at the time of his death. Two years later however she travelled back to Mexico with Weston and introduced him to that scene of people including Diego Rivera and others. Weston left Mexico and she stayed becoming involved in Mexican politics and the Mexican and International Communist Party and her photography became more political. In the 1930s she was deported from Mexico as an enemy of the state and sent to Europe where she spent the early 30s avoiding the Italian Fas

@michaelcoyote
michaelcoyote / odoo_error_001.md
Created April 9, 2015 06:36
Odoo error on editing a product within sales.

Getting this error when editing a product from the "sales" page.

Using the following version of odoo installed from packages on Mint 17 (Ubuntu Trusty) Version 8.0-20150408

Odoo Server Error

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 530, in _handle_exception
@michaelcoyote
michaelcoyote / networker_daemonlog.conf
Last active August 29, 2015 14:17
Basic dumb simple networker daemon log grok filter for logstash
# Basic dumb simple networker daemon log grok filter for the NetWorker daemon.log
filter {
grok {
patterns_dir => "./patterns"
#
# NetWorker logfiles have some unusual fields that include undocumented engineering codes and what not
# time is in 12h format (ugh) so custom patterns need to be used.
# engcode1_Date&time in ampm format_engcode2_engcode3_engcode4_Parent Process ID_Process ID_engcode5_Process Host_Process Name_Everything else
match => [ "message", "%{NUMBER:engcode1} %{DATESTAMP_12H:timestamp} %{NUMBER:engcode2} %{NUMBER:engcode3} %{NUMBER:engcode4} %{NUMBER:ppid} %{NUMBER:pid} %{NUMBER:engcode5} %{WORD:processhost} %{WORD:processname} %{GREEDYDATA:daemon_message}" ]
}
@michaelcoyote
michaelcoyote / DalyCity.geojson
Last active June 15, 2017 19:05
Daily City GEOjson map
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@michaelcoyote
michaelcoyote / java_sponsor_disable.reg
Created January 28, 2015 03:16
Disable the ask/yahoo/whatever toolbar install prompt
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft]
"SPONSORS"="DISABLE"
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\JavaSoft]
"SPONSORS"="DISABLE"
@michaelcoyote
michaelcoyote / grepip.sh
Last active August 29, 2015 14:13
grep for ip address
# This is a function so, source me in.
# really basic grep function to find IP/netmask octets.
function ipgrep()
{
# find any pattern from "0.0.0.0" to "259.259.259.259"
# TODO fix this so it checks for legal octets (255.255.255.255) (Note: may be some time)
grep -o -E '\b(((2[0-5]|1[0-9])|[0-9])?([0-9]){1,2}\.){3}((2[0-5]|1[0-9])|[0-9])?([0-9])\b'
}