Skip to content

Instantly share code, notes, and snippets.

View kenichi-shibata's full-sized avatar

Kenichi Shibata kenichi-shibata

View GitHub Profile
@kenichi-shibata
kenichi-shibata / jamf.md
Created February 24, 2020 09:16 — forked from a7ul/jamf.md
removing all restrictions on jamf managed macos device - Provided you have root access.

REMOVE JAMF RESTRICTIONS ON MAC

REMOVE ONLY RESTRICTIONS

sudo jamf removeMDMProfile removes all restrictions

sudo jamf manage brings back all restrictions and profiles

REMOVE ALL RESTRICTIONS AND DISABLE JAMF BINARIES WHILE KEEPING YOUR ACCESS TO VPN AND OTHER SERVICES

sudo jamf removeMDMProfile removes all restrictions

@kenichi-shibata
kenichi-shibata / prometheus.yml
Created January 14, 2020 14:05 — forked from reachlin/prometheus.yml
sample prometheus configuration explained
// For all the confusing Prometheus configuration and
// regular expressions,
// explained in examples.
// Remember, there are default values for each item if it's missing.
// regex is (.*),
// replacement is $1,
// separator is ;
// ,and action is replace
@kenichi-shibata
kenichi-shibata / README.md
Created December 10, 2019 15:44 — forked from prod3v3loper/README.md
ApacheBench AB Benchmark Testing

Apache Benchmark AB

Test your website and find out how it reacts if Surf 100 users at the same time and load your webpage with 10 requests each.

Information

-n requests

Number of requests to perform for the benchmarking session. The default is to just perform a single request which usually leads to non-representative benchmarking results.

@kenichi-shibata
kenichi-shibata / README.md
Last active December 10, 2019 15:44 — forked from prod3v3loper/README.md
ApacheBench AB Benchmark Testing

Apache Benchmark AB

Test your website and find out how it reacts if Surf 100 users at the same time and load your webpage with 10 requests each.

Information

-n requests

Number of requests to perform for the benchmarking session. The default is to just perform a single request which usually leads to non-representative benchmarking results.

@kenichi-shibata
kenichi-shibata / tutorial.md
Created June 15, 2018 10:02 — forked from swalkinshaw/tutorial.md
Designing a GraphQL API

Tutorial: Designing a GraphQL API

This tutorial was created by Shopify for internal purposes. We've created a public version of it since we think it's useful to anyone creating a GraphQL API.

It's based on lessons learned from creating and evolving production schemas at Shopify over almost 3 years. The tutorial has evolved and will continue to change in the future so nothing is set in stone.

@kenichi-shibata
kenichi-shibata / expand.js
Created March 21, 2018 13:11 — forked from tomgp/expand.js
uses of reduce
var arr = [
{count:20, type:'a'},
{count:19, type:'b'},
{count:8, type:'c'},
{count:34, type:'d'}
];
var expanded = arr.reduce(function(value, d){
var l = new Array( Number(d.count) )
for(var i=0;i<d.count;i++){
@kenichi-shibata
kenichi-shibata / cols.txt
Created March 12, 2018 15:07 — forked from 0/cols.txt
Brief awk tutorial
abc 1 2 3
def 4 5 6
ga 7 9 10
hij 1 5 99
@kenichi-shibata
kenichi-shibata / git+clone+ssh+agent+forward+sudo
Created October 16, 2017 01:06 — forked from scottjacobsen/git+clone+ssh+agent+forward+sudo
Git clone using ssh agent forwarding and sudo
SSH agent forwarding is great. It allows you to ssh from one server to
another all the while using the ssh-agent running on your local
workstation. The benefit is you don't need to generate ssh key pairs
on the servers you are connecting to in order to hop around.
When you ssh to a remote machine the remote machine talks to your
local ssh-agent through the socket referenced by the SSH_AUTH_SOCK
environment variable.
So you the remote server you can do something like:
@kenichi-shibata
kenichi-shibata / nginx-ssh.conf
Last active October 20, 2017 06:46 — forked from plentz/nginx.conf
Best nginx configuration for improved security(and performance). Complete blog post here http://tautt.com/best-nginx-configuration-for-security/
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048