View code.py
This file contains 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
import board | |
import neopixel | |
import touchio | |
from time import sleep | |
import usb_hid | |
from adafruit_hid.keyboard import Keyboard | |
from adafruit_hid.keycode import Keycode | |
# pin that the NeoPixel is connected to | |
PIXEL_PIN: Pin = board.NEOPIXEL |
View markdown-cli.go
This file contains 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
package main | |
import ( | |
"io/ioutil" | |
"bytes" | |
"fmt" | |
"os" | |
"github.com/yuin/goldmark" | |
"github.com/yuin/goldmark/extension" | |
"github.com/yuin/goldmark/parser" | |
"github.com/yuin/goldmark/renderer/html" |
View minecraft
This file contains 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/sh | |
# from https://minecraft.fandom.com/wiki/Tutorials/FreeBSD_startup_script | |
# | |
# PROVIDE: minecraft | |
# REQUIRE: LOGIN DAEMON NETWORKING mountcritlocal | |
# KEYWORD: shutdown | |
# | |
# Add the following lines to /etc/rc.conf.local to enable the minecraft server: | |
# | |
# minecraft_enable="YES" |
View cub_scout_turtle.py
This file contains 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
import turtle | |
print("Hello World.") | |
t = turtle.Turtle() | |
t.color('white') | |
t.left(90) | |
t.forward(100) | |
t.left(270) |
View check_port_80.pl
This file contains 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/perl | |
#$Id$ | |
use strict; | |
use warnings; | |
my $VERSION=1.000; | |
=head1 NAME | |
check_port80.pl |
View chack_mysql.pl
This file contains 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/perl | |
# $Id$ | |
use strict; | |
use warnings; | |
my $VERSION = 0.006; | |
my $DEBUG = 1; | |
sub handle_wrn; | |
sub handle_err; |
View additional-memcached-setup.pl
This file contains 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/perl | |
# Copyright 2012 Cameron King. ISC License | |
use strict; | |
use warnings; | |
# changelog | |
# 1.00 - initial version | |
# 1.01 - change apc.include_once_override to 0 | |
sub block2 { |
View mysqldiag.pl
This file contains 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/perl | |
use strict; | |
use warnings; | |
system "mkdir /var/log/sec/" unless -d "/var/log/sec"; | |
my $date=`date -Is`; | |
chomp $date; | |
my $fn="/var/log/sec/mysql-diag_${date}_$$.log"; | |
open LOG, ">$fn"; |
View puppet-facts.pl
This file contains 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/perl | |
# Client Xenon Product Facts | |
# Cameron King <http://cameronking.me> | |
# Version 1.01 - add magento and wordpress counts | |
# Version 1.00 - initial version | |
use warnings; | |
use strict; | |
my $VERSION = 1.01; | |
my %facts = (); |
View vscode-server cloudinit user_data
This file contains 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/sh | |
# password for vscode | |
PASS=XXX | |
# hostname at duckdns.org | |
HOST=XXX | |
# duckdns.org token | |
DUCK=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX | |
# sysadmin email | |
EMAIL=XXX@XXX.XXX |
NewerOlder