Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
lol no

Cameron Tod cam8001

💭
lol no
  • Wellington, New Zealand
View GitHub Profile
@jousby
jousby / macos-devenv-bootstrap.sh
Created Aug 9, 2021
A macOS shell and developer toolchain setup script updated for Big Sur (Aug 2021)
View macos-devenv-bootstrap.sh
#!/bin/bash
#####################################################################
#
# A macOS dev env setup script updated for a Big Sur
# install (08/2021). There isn't anything macos specific in here
# though, i just haven't tested it elsewhere.
#
# I have a seperate script that setups a fresh macOS install with
# a useful set of software applicatiions that you might want to run
@jousby
jousby / macos-software-bootstrap.sh
Last active Nov 24, 2021
A macOS software install script updated for a Big Sur install (Aug 2021)
View macos-software-bootstrap.sh
#!/bin/bash
#####################################################################
#
# A macOS software bootstrap script updated for a Big Sur
# install (08/2021).
#
# I have a seperate script that setups zsh and installs programming
# language toolchains that you would run after this if you are in
# software development game.
@Prakasaka
Prakasaka / bash-colors.md
Created Jul 25, 2020 — forked from JBlond/bash-colors.md
The entire table of ANSI color codes.
View bash-colors.md

Regular Colors

Value Color
\e[0;30m Black
\e[0;31m Red
\e[0;32m Green
\e[0;33m Yellow
\e[0;34m Blue
\e[0;35m Purple
@pkhabazi
pkhabazi / docker-compose-macvlan.yml
Created Jan 22, 2020
Docker compose with macvlan example
View docker-compose-macvlan.yml
version: "3.6"
networks:
macvlan_network:
driver: macvlan
driver_opts:
parent: eth01
ipam:
config:
- subnet: 192.168.1.0/24
@zopieux
zopieux / README.md
Last active Nov 18, 2022
QNAP TS-453 Pro: LCD, LEDs, fan & buttons
View README.md

QNAP TS-453 Pro: LCD, LEDs, fan & buttons

QNAP NAS model TS-453 Pro has limited documentation on how to control its various peripherals, namely:

  • the front LCD display, a 2 row, 16 column blue & white LCD display, and its two menu buttons ("ENTER", "SELECT")
  • the front LEDs "STATUS" (red & green) & "USB" (blue)
  • the 4 "disk error" LEDs (red)
  • the front "USB COPY" button
  • the main rear fan
@glnds
glnds / aws-transfer-sftp.yaml
Last active Oct 30, 2022
CloudFormation template for AWS Transfer for SFTP
View aws-transfer-sftp.yaml
---
AWSTemplateFormatVersion: '2010-09-09'
Description: some-sftp-server
Parameters:
HostedZoneIdParam:
Type: String
Description: Hosted Zone ID
SFTPHostnameParam:
Type: String
@bgulla
bgulla / imessage_dump.py
Created Jun 25, 2019
Dumps all images from iMessages.
View imessage_dump.py
import os
import shutil
mkdir ~/Desktop/imessage
rootDir = "/Users/${USER}/Library/Messages/Attachments"
destDir = "/Users/${USER}/Desktop/imessage"
IGNORE_STRING = "pluginPayloadAttachment"
for dirName, subdirList, fileList in os.walk(rootDir):
#print("Found directory: %s" % dirName)
View TREMA-UNH-CAR-N.pdf
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@cam8001
cam8001 / awscli.bash
Created May 6, 2019
awscli quick reference
View awscli.bash
# From here:
# https://blog.ashiny.cloud/page/awscli-query-quickref/
#!/bin/bash -ex
export AWS_REGION=your-region-here
export AWS_PROFILE=your-cli-access-profile-here
export AWS_DEFAULT_OUTPUT=text
# Get your user ARN
aws iam get-user --query 'User.Arn'
@odessky
odessky / ec2-get-security-credentials
Last active Mar 18, 2020 — forked from fgassert/ec2-get-security-credentials
Gets IAM Role Security Credentials from instance metadata and export they in bash session envirovment. Secured edition.
View ec2-get-security-credentials
#!/bin/bash
export-aws () {
# gets iam security credentials from instance metadata and export in envirovment for runtime script
# after script finished credentials is gone away
# system must have awscli&jq preinstalled
# converted to function
# Usage: export-aws ROLENAME