Skip to content

Instantly share code, notes, and snippets.

it ain't easy.

Matthew Davis mateothegreat

it ain't easy.
Block or report user

Report or block mateothegreat

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
mateothegreat / ansible.cfg
Created Apr 25, 2020
ansible configuration for speed
View ansible.cfg
host_key_checking = False
retry_files_enabled = False
localhost_warning = False
strategy_plugins = plugins/mitogen-0.2.9/ansible_mitogen/plugins/strategy
strategy = mitogen_linear
callback_whitelist = timer, profile_tasks
forks = 50
internal_poll_interval = 0.001

Keybase proof

I hereby claim:

To claim this, I am signing this object:

cat test.json| jq 'to_entries[] | select(.value | index("group3") | not)'
kubectl create clusterrolebinding cluster-admin-binding \
--clusterrole=cluster-admin \
--user=$(gcloud config get-value core/account)
mateothegreat / awesome.component.ts
Last active Feb 14, 2019
Retrieve the hash value of a route (#myhash)
View awesome.component.ts
import { Component } from '@angular/core';
import { ActivatedRoute } from '@angular/router';
selector: 'app-awesome',
templateUrl: './app-awesome.component.html',
styleUrls: [ './app-awesome.component.scss' ]
export class AwesomeComponent {
View request.js
const https = require('https')
const data = JSON.stringify({
someProp: 'some value'
const options = {
while true; do
mycommand &
sleep(60) // 60 seconds
kill -KILL $last_pid
View create_admin_user.json
user: "admin" ,
pwd: "password",
roles: ["userAdminAnyDatabase", "dbAdminAnyDatabase", "readWriteAnyDatabase"]
mateothegreat /
Created Oct 5, 2018
Install MySQL Top (mtop) on RHEL/CentOS
curl -L -O
tar -xvzf mtop-0.6.6.tar.gz
rm -rf mtop-0.6.6.tar.gz
cd mtop-0.6.6
yum install -y perl-devel cpan perl-DBD-MySQL
cpan force install Curses
You can’t perform that action at this time.