Updated for working with k3d 3.x
Prereqs:
- Assuming a Mac
- install k3d https://github.com/rancher/k3d
- Using Docker Desktop, must be installed and running
- kubectl, tkn installed
Updated for working with k3d 3.x
Prereqs:
| error_page 500 /500.html; | |
| location /500.html{ | |
| return 500 '{"error": {"status_code": 500,"status": "Internal Server Error"}}'; | |
| } | |
| error_page 502 /502.html; | |
| location /502.html{ | |
| return 502 '{"error": {"status_code": 502,"status": "Bad Gateway"}}'; | |
| } |
| /build/ |
| const fs = require("fs"); | |
| const getTimerTemplate = (platform, importType, interval) => ` | |
| [Unit] | |
| Description=Run ${platform}-${importType} every 15 minutes | |
| Requires=${platform}-${importType}.service | |
| [Timer] | |
| Unit=${platform}-${importType}.service | |
| OnUnitInactiveSec=${interval} |
| #!/usr/bin/env python | |
| import sys | |
| import pandas as pd | |
| import pymongo | |
| import json | |
| def import_content(filepath): | |
| mng_client = pymongo.MongoClient('localhost', 27017) |
This was only tested on a 'partial' SentinelOne installation on the High Sierra beta, where SentinelOne was never allowed to enable it's kernel extension. (Some things failed while I was messing around with OS betas.)
A lot happens in 2+ years, at this point there's a good chance this script will do more harm than good. Read the comments before using!
| String.prototype.toTitleCase = function () { | |
| return this[0].toUpperCase() + this.substring(1).toLowerCase(); | |
| }; | |
| module.exports = String; |
| /** | |
| * Example to refresh tokens using https://github.com/auth0/node-jsonwebtoken | |
| * It was requested to be introduced at as part of the jsonwebtoken library, | |
| * since we feel it does not add too much value but it will add code to mantain | |
| * we won't include it. | |
| * | |
| * I create this gist just to help those who want to auto-refresh JWTs. | |
| */ | |
| const jwt = require('jsonwebtoken'); |