Skip to content

Instantly share code, notes, and snippets.

View trilom's full-sized avatar
🏠
always...Working from Home

Bryan Killian trilom

🏠
always...Working from Home
View GitHub Profile
@trilom
trilom / readme.md
Created June 4, 2022 00:42
Docker container work on UXG-Pro

Run something on boot for UXG

Prepare UXG:container:whoami

This is the "thing you want to run" like pihole, I am using a simple web server.

You'll want to prepare a tar of the container

#### FROM CLIENT (your laptop)
@trilom
trilom / japanese.hcl
Last active December 7, 2020 01:58
Any weebs know if this is anatomically correct?
source "null" "words" {
}
build {
name = "utils.words"
sources = ["null.words"]
provisioner "shell-local" {
# setulimit, this works with macbook https://gist.github.com/gerardkok/8e61df7bbb132522b8232fb3841ae3b4
# http(ie) is required here, curl could work
inline = concat(["ulimit -n 524288"],[
"mkdir -p ${path.cwd}/inventory",
@trilom
trilom / readme.md
Last active October 17, 2019 18:02
Shrink/Reduce Docker.raw file below 16 gb on MacOS

Simply open the ~/Library/Group\ Containers/group.com.docker/settings.json config file and set the diskSizeMiB field to your desired size.
Save, and Docker will now limit the size of the Docker.raw.
You might need to restart Docker to resize the Docker.raw.

@fengyuentau
fengyuentau / readme.md
Last active March 13, 2024 08:15
Enable X11 forward for ssh to load images from remote server on MacOS Mojave

Enable X11 forward to load images from remote server on MacOS Mojave

Steps

  1. Install Xquartz to get X11 support on MacOS. You can google Xquartz and download it from its official site, or install using HomeBrew.

    brew cask install xquartz
  2. Launch Xquartz. Go to Preference -> Security, click the box Allow connections from clients. NOTE: You have to lauch Xquartz with Allow connections from clients enable everytime you want to ssh to remote server with X11 forwarding support.

@oznu
oznu / README.md
Last active November 22, 2023 19:49
QEMU + Ubuntu ARM aarch64

QEMU + Ubuntu ARM aarch64

These are the steps I used to get Ubuntu ARM aarch64 running with QEMU on OSX.

Get Ubuntu Image and QEMU EFI:

wget https://cloud-images.ubuntu.com/releases/16.04/release/ubuntu-16.04-server-cloudimg-arm64-uefi1.img
wget https://releases.linaro.org/components/kernel/uefi-linaro/latest/release/qemu64/QEMU_EFI.fd
@singledigit
singledigit / cognito.yaml
Last active April 28, 2024 15:12
Create a Cognito Authentication Backend via CloudFormation
AWSTemplateFormatVersion: '2010-09-09'
Description: Cognito Stack
Parameters:
AuthName:
Type: String
Description: Unique Auth Name for Cognito Resources
Resources:
# Creates a role that allows Cognito to send SNS messages
SNSRole:
@keithmorris
keithmorris / drive-format-ubuntu.md
Last active May 1, 2024 12:39
Partition, format, and mount a drive on Ubuntu
@aaronshaf
aaronshaf / generator.js
Last active May 13, 2022 11:00
Use async generators and async iterators with DynamoDB's scan
const { docClient } = require('../services/dynamodb')
exports.findAllItems = async function* () {
let response = {}
let ExclusiveStartKey
do {
response = await docClient.scan({
TableName: 'mytable',
Limit: 500,
ExclusiveStartKey