Skip to content

Instantly share code, notes, and snippets.

@wlib
wlib / LICENSE
Last active June 10, 2022 22:14
Run a shell script with bash, line-by-line, prompted on each command. Useful for running unknown scripts or debugging. Not a secure substitute for understanding a script beforehand.
MIT License
Copyright (c) 2021 Daniel Ethridge
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@pjobson
pjobson / preyosemite_usb_stick_creation.md
Last active January 29, 2024 23:54
How to Create a Bootable OS X USB Stick Pre-Yosemite

Pre-Yosemite USB Stick Creation

Yosemite and later used a built in program called createinstallmedia to automagically make a USB stick. It is possible to create a bootable USB stick without this program.

You'll need an 8GB USB stick and either the Install Mac OS X Lion.app or InstallESD.dmg or BaseInstall.dmg.

Open Terminal, you'll need it in most of this tutorial.

We're going to need to start by getting to the actual installation disk image.

@Jabarabo
Jabarabo / githubpull.md
Last active April 17, 2024 22:15
Gist of a stolen gist
@djdefi
djdefi / ghe-best-practices.md
Last active August 24, 2022 17:13
GitHub Enterprise Server best practices
@gilesdring
gilesdring / macOS Install Media.md
Last active August 10, 2020 16:08
Instructions to create installation media for macos

High Sierra (10.13)

hdiutil create -o /tmp/HighSierra.cdr -size 7316m -layout SPUD -fs HFS+J
hdiutil attach /tmp/HighSierra.cdr.dmg -noverify -nobrowse -mountpoint /Volumes/install_build
asr restore -source /Applications/Install\ macOS\ High\ Sierra.app/Contents/SharedSupport/BaseSystem.dmg -target /Volumes/install_build -noprompt -noverify -erase
hdiutil detach /Volumes/OS\ X\ Base\ System
hdiutil convert /tmp/HighSierra.cdr.dmg -format UDTO -o /tmp/HighSierra.iso
mv /tmp/HighSierra.iso.cdr ~/Desktop/HighSierra.iso
@sufuf3
sufuf3 / container-registry-list.md
Created March 12, 2018 14:10
container registry list

Services to securely store your Docker images.

  • Amazon EC2 Container Registry Amazon EC2 Container Registry (ECR) is a fully-managed Docker container registry that makes it easy for developers to store, manage, and deploy Docker container images.
  • Atomic Registry - Red Hat Atomic Registry is an open source enterprise registry based on the Origin and Cockpit projects, enhancing the Docker registry library.
  • Azure Container Registry Manage a Docker private registry as a first-class Azure resource
  • CargoOS A bare essential OS for running the Docker Engine on bare metal or Cloud.
  • Cycle.io Bare-metal container hosting.
  • Docker Hub provided by Docker Inc.
  • Docker Registry v2 - The Docker toolset to pack, ship, store, and deliver content
@leonardofed
leonardofed / README.md
Last active April 24, 2024 01:47
A curated list of AWS resources to prepare for the AWS Certifications


A curated list of AWS resources to prepare for the AWS Certifications

A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.


@Ratler
Ratler / gist:7756deecc330db9ce07a
Last active August 27, 2021 17:30
A few quick bash one-liners to export/save import/load docker containers/images

NOTE: make sure you export containers and images in separate directories or it's very likely there will be issues when importing or loading your backups using the following snippets

Export all containers

$ while read image container_id; do 
    docker export $container_id > ${image////_}-${container_id}.tar 
 done < <(docker ps -a -f status=exited | tail -n +2 | awk '{ print $2 " " $1 }')