All of the following information is based on go version go1.14.7 darwin/amd64
.
(Bold = supported by go
out of the box, ie. without the help of a C compiler, etc.)
aix
android
# This task will run once per day at 9AM, only on week days | |
$A = New-ScheduledTaskAction -Execute "c:\scripts\my_project\scheduled_task.bat" -WorkingDirectory "c:\scripts\my_project" | |
$T = New-ScheduledTaskTrigger -At 9am -Weekly -DaysofWeek Monday,Tuesday,Wednesday,Thursday,Friday | |
$P = New-ScheduledTaskPrincipal -UserId "LOCALSERVICE" -LogonType ServiceAccount | |
$S = New-ScheduledTaskSettingsSet | |
$D = New-ScheduledTask -Action $A -Principal $P -Trigger $T -Settings $S | |
Register-ScheduledTask "My Project" -InputObject $D |
@echo off | |
setlocal | |
rem ec2info.bat | |
rem -John Taylor | |
rem Jul-19-2020 | |
rem Retrieve all EC2 instance type info such as vCPU, clock speed, memory, network | |
rem Save results to a tab separated file, named 'ec2_types.tsv' | |
rem Note: the 'RAM in GB' column is rounded to the nearest whole number |
#!/bin/bash | |
# ec2info.sh | |
# -John Taylor | |
# Aug-03-2020 | |
# Retrieve EC2 instance type info such as vCPU, clock speed, memory, network | |
# This queries your default AWS region | |
# Results are saved to the user-defined file name: $TSV and also to the MacOS clipboard | |
# Note: the 'RAM in GB' column is rounded to the nearest whole number |
#!/bin/bash | |
# Update block lists in a dockerized version of PiHole | |
# the log file should be: update_pihole_block_lists.log | |
# | |
# run this script from cron each Saturday morning with this contab entry: | |
# 00 3 * * 6 /root/update_pihole_block_lists.sh | |
IMAGE=pihole | |
LENGTH=12 |
// Package main is a sample macOS-app-bundling program to demonstrate how to | |
// automate the process described in this tutorial: | |
// | |
// https://medium.com/@mattholt/packaging-a-go-application-for-macos-f7084b00f6b5 | |
// | |
// Bundling the .app is the first thing it does, and creating the DMG is the | |
// second. Making the DMG is optional, and is only done if you provide | |
// the template DMG file, which you have to create beforehand. | |
// | |
// Example use: |
A329,349,0,1,1,1,N,"REF: 3717559625" | |
A39,363,0,1,1,1,N,"INV: " | |
A39,377,0,1,1,1,N,"PO: " | |
A429,377,0,1,1,1,N,"DEPT: " | |
A329,349,0,1,1,1,N,"REF: 2222222333" | |
A39,363,0,1,1,1,N,"INV: " | |
A39,377,0,1,1,1,N,"PO: " | |
A429,377,0,1,1,1,N,"DEPT: " |
@echo off | |
setlocal | |
set PORT=%1 | |
if not defined PORT goto ERR | |
@echo conf t | |
@echo vlan 1 untag %PORT% | |
@echo no port-security %PORT% | |
@echo aaa port-access authenticator %PORT% client-limit 1 |
// https://github.com/auth0-community/auth0-xamarin-oidc-samples/tree/master/Quickstart/01-Login/iOS | |
using System; | |
using UIKit; | |
using Auth0.OidcClient; | |
using System.Text; | |
using LocalAuthentication; | |
using Foundation; | |
using Xamarin.Auth; |