Skip to content

Instantly share code, notes, and snippets.

Avatar
🤘
it ain't easy.

Matthew Davis mateothegreat

🤘
it ain't easy.
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am mateothegreat on github.
  • I am matthewbdavis (https://keybase.io/matthewbdavis) on keybase.
  • I have a public key ASAehsbCoBdkPerCbsKs-2rt3NgU_OawJs4HxthGhWMZigo

To claim this, I am signing this object:

@mateothegreat
mateothegreat / ansible.cfg
Created Apr 25, 2020
ansible configuration for speed
View ansible.cfg
[defaults]
host_key_checking = False
retry_files_enabled = False
ansible_python_interpreter=python3
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
View keybase.md

Keybase proof

I hereby claim:

To claim this, I am signing this object:

View jq.sh
cat test.json| jq 'to_entries[] | select(.value | index("group3") | not)'
View create_clusterrolebinding.sh
kubectl create clusterrolebinding cluster-admin-binding \
--clusterrole=cluster-admin \
--user=$(gcloud config get-value core/account)
@mateothegreat
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';
@Component({
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 = {
View restarter.sh
while true; do
mycommand &
last_pid=$!
sleep(60) // 60 seconds
kill -KILL $last_pid
View create_admin_user.json
db.createUser({
user: "admin" ,
pwd: "password",
roles: ["userAdminAnyDatabase", "dbAdminAnyDatabase", "readWriteAnyDatabase"]
})