Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View cam8001's full-sized avatar
💭
lol no

Cameron Tod cam8001

💭
lol no
  • Amazon Web Services
  • Wellington, New Zealand
  • 04:40 (UTC +12:00)
View GitHub Profile
@sunflsks
sunflsks / oahd-wrapper.c
Last active January 12, 2024 07:09
convert an x86 bin to an arm through oahd-helper
#include <stdio.h>
#include <fcntl.h>
#include <stdlib.h>
#include <unistd.h>
void help(char* curbin) {
fprintf(stderr, "%s x86_bin arm64_output\n", curbin);
}
int main(int argc, char** argv) {
@jousby
jousby / macos-devenv-bootstrap.sh
Created August 9, 2021 04:22
A macOS shell and developer toolchain setup script updated for Big Sur (Aug 2021)
#!/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 November 24, 2021 04:29
A macOS software install script updated for a Big Sur install (Aug 2021)
#!/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.
@miguelmota
miguelmota / external_link_arrow.txt
Last active April 7, 2024 20:55
Unicode UTF-8 external link arrow symbol (closest thing to it)
@michaeljymsgutierrez
michaeljymsgutierrez / set-icon.sh
Last active March 17, 2024 11:55
Set icon on window and panel - xseticon
#! /bin/bash
# @params $1: APP_NAME
# @params $2: ICON_PATH
# set-icon.sh Slack /usr/share/pixmaps/slack.png
# Note: Make sure xseticon is installed on your system
# If not installed: https://github.com/xeyownt/xseticon
# Either/usr/bin or /usr/local/bin is fine for script directory
# sudo cp set-icon.sh /usr/bin
@Prakasaka
Prakasaka / bash-colors.md
Created July 25, 2020 09:14 — forked from JBlond/bash-colors.md
The entire table of ANSI color codes.

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 January 22, 2020 08:45
Docker compose with macvlan example
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 April 11, 2024 00:51
QNAP TS-453 Pro: LCD, LEDs, fan & buttons

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 February 23, 2024 09:53
CloudFormation template for AWS Transfer for SFTP
---
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 June 25, 2019 15:20
Dumps all images from iMessages.
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)