This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Enable colored output using Zap Logger https://github.com/uber-go/zap/ | |
config := zap.NewDevelopmentConfig() | |
config.EncoderConfig.EncodeLevel = zapcore.CapitalColorLevelEncoder | |
logger, _ := config.Build() | |
defer logger.Sync() | |
sugar = logger.Sugar() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# After Ubuntu 16.04, Systemd becomes the default. | |
# It is simpler than https://gist.github.com/Doowon/38910829898a6624ce4ed554f082c4dd | |
# Ensure WorkDirectory exists otherwise the service won't launch correctly. | |
[Unit] | |
Description=Jupyter Notebook | |
[Service] | |
Type=simple | |
PIDFile=/var/run/jupyter.pid |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
""" | |
Checks your Certificate trust store within Mac OS X to find unknown certificates for High Sierra | |
""" | |
__author__ = 'Pegleg <[email protected]>' | |
__license__ = 'MIT' | |
import requests | |
from bs4 import BeautifulSoup | |
class Certificate(object): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Variables to iterate for | |
BATCH_SIZES=(512 1024 2048 4096) | |
CTX_SIZES=(4096 8192 16384 32768 65536 131072) | |
ROPE_SCALINGS=("linear" "yarn") | |
ROPE_SCALES=(1 1.5 2) | |
ROPE_FREQ_BASE=1000000 | |
ROPE_FREQ_SCALE=1 |