Skip to content

Instantly share code, notes, and snippets.

View jpuskar's full-sized avatar

John Puskar jpuskar

  • AmTrust
  • Cleveland, OH
View GitHub Profile

Enable authentication via Candid

This means that users with an account that Candid recognizes can access the controller as long as they have appropriate permissions granted. Note that Candid usernames are given an @external suffix to distinguish them from controller-local usernames.

Note that identity-url can only be set at bootstrap time and cannot be changed later.

The allow-model-access=true setting allows users to access models

@tirumaraiselvan
tirumaraiselvan / setupadmissionwebhook.md
Last active April 9, 2025 18:25
Setup admission webhooks in Kubernetes
@StevenACoffman
StevenACoffman / fluent-filebeat-comparison.md
Last active June 25, 2025 12:00
Fluentd Fluent-bit FileBeat memory and cpu resources

Fluent-bit rocks

A short survey of log collection options and why you picked the wrong one. 😜

Who am I? Where am I from?

I'm Steve Coffman and I work at Ithaka. We do JStor (academic journals) and other stuff. How big is it?

Number what it means
101,332,633 unique visitors in 2017
@gbakeman
gbakeman / defaultprofile.lua
Created December 20, 2017 21:42
Logitech Gaming Software F-key binding script
--[[
This allows you to bind any function-number key (F1-F24) to a "G" button on your mouse.
To add a binding, insert a new element in the bindings table below and save this script.
Script by tgp1994 (https://github.com/tgp1994)
]]
local bindings = {
G7 = "F13",
G8 = "F14"
}
@Neo23x0
Neo23x0 / audit.rules
Last active October 1, 2025 20:52
Linux Auditd Best Practice Configuration
# IMPORTANT!
# This gist has been transformed into a github repo
# You can find the most recent version there:
# https://github.com/Neo23x0/auditd
# ___ ___ __ __
# / | __ ______/ (_) /_____/ /
# / /| |/ / / / __ / / __/ __ /
# / ___ / /_/ / /_/ / / /_/ /_/ /
# /_/ |_\__,_/\__,_/_/\__/\__,_/
.PHONY: all plan apply destroy
all: help
# Add the following 'help' target to your Makefile
# And add help text after each target name starting with '\#\#'
help: ## Show this help
@fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | sed -e 's/\\$$//' | sed -e 's/##//'
@drmalex07
drmalex07 / README-tomcat-as-systemd-service.md
Last active February 26, 2025 15:22
An example configuration for Tomcat as systemd service. #tomcat #systemd #systemd.service

README

Let Tomcat is download and installed under /opt/tomcat. Also, let tomcat be a non-provileged user under which the server will be running.

We assume that we keep server's binaries under /opt/tomcat and we will create a server instance named foo under /var/tomcat/ (carrying its own conf, logs, webapps, work, lib directories). See also https://dzone.com/articles/running-multiple-tomcat.

Create a template service unit file at /etc/systemd/system/[email protected]:

Class LenovoBiosSetting {
[string]$Name
[string]$Value
LenovoBiosSetting([string]$Name, [string]$Value) {
$this.Name = $Name
$this.Value = $Value
}
}
@rsp
rsp / .tmux.conf
Last active August 6, 2024 10:54 — forked from spicycode/tmux.conf
The best and greatest tmux.conf ever - improved!
# The best and greatest tmux.conf ever - improved!
# https://gist.github.com/rsp/f4770a1fe8ea7e2378ac3a16e01a2b53
# Here are some customizations done by Rafał Pocztarski:
# use Ctrl+Backslash instead of Ctrl+A or Ctrl+B
# use Slash to split vertically
# use Backslash to split horizontally
unbind-key C-b
set -g prefix 'C-\'
bind-key 'C-\' send-prefix
@beeman
beeman / remove-all-from-docker.sh
Created November 15, 2016 03:04
Remove all from Docker
# Stop all containers
docker stop `docker ps -qa`
# Remove all containers
docker rm `docker ps -qa`
# Remove all images
docker rmi -f `docker images -qa `
# Remove all volumes