How to make an application icon for macOS using
iconset
&iconutil
#!/bin/bash | |
# Icons and names | |
ICONS=( | |
"icon_16x16.png:16x16" | |
"[email protected]:32x32" | |
"icon_32x32.png:32x32" | |
"[email protected]:64x64" | |
"icon_128x128.png:128x128" | |
"[email protected]:256x256" |
#linux #mac #broadcom #hardware
⚠️ Although this procedure has been tested on a MacBook Air 6,2, it may vary depending on your hardware. If you have a different device or if your process differs from the instructions below, please leave a comment so that I can update this guide accordingly.
Before following the instructions below, make sure your machine is connected to a network. If your machine doesn't have an Ethernet adapter, you can use your phone's hotspot via USB.
// This is the code for the Flappy Bird game running in a Unix terminal. | |
// Demo: https://twitter.com/daniel_duan/status/1327735679657250816?s=21 | |
// To run it, simply do "swift bird.swift" in a Unix command line. | |
#if canImport(Darwin) | |
import Darwin | |
#else | |
import Glibc | |
#endif | |
enum RawModeError: Error { |
#if canImport(Darwin) | |
import Darwin | |
#else | |
import Glibc | |
#endif | |
enum RawModeError: Error { | |
case notATerminal | |
case failedToGetTerminalSetting | |
case failedToSetTerminalSetting |
Various Versions of macOS/OSX will fail on install for various reasons.
You can fix them by disconnecting from your wifi or network or resetting
your NVRAM. Booting from your USB stick, opening terminal and doing:
date ##########
where the # nubers are below. Format is: MMDDhhmmYY
10.16 - 0.5 Leopard - date 0101010121 <- Currently not needed
10.15 - Catalina - date 0101010120 <- Currently not needed
10.14 - Mojave - date 0101010119 <- Currently not needed
10.13 - High Sierra - date 0101010118
10.12 - Sierra - date 0101010117
$ diff -q sandbox_i6s_13.3.1_profiles/ sandbox_iX_12.4_profiles/ | /bin/grep Only | |
Only in sandbox_i6s_13.3.1_profiles/: adservicesd.sb | |
Only in sandbox_i6s_13.3.1_profiles/: akd.sb | |
Only in sandbox_i6s_13.3.1_profiles/: appsso.sb | |
Only in sandbox_i6s_13.3.1_profiles/: ArchiveService.sb | |
Only in sandbox_i6s_13.3.1_profiles/: asd.sb | |
Only in sandbox_iX_12.4_profiles/: assertiond.sb | |
Only in sandbox_i6s_13.3.1_profiles/: businesschatd.sb | |
Only in sandbox_i6s_13.3.1_profiles/: callservicesd.sb | |
Only in sandbox_i6s_13.3.1_profiles/: cfprefsd.sb |
#!/bin/bash | |
if [[ $# -ne 2 ]]; then | |
echo "Must only have two arguments, the URL and the collection" >&2 | |
exit 1 | |
fi | |
if [[ ! -d "/var/spool/openwayback/files2/${2}" ]]; then | |
mkdir "/var/spool/openwayback/files2/${2}" | |
fi |
Usage (using get-graphql-schema to fetch the schema):
get-graphql-schema https://hackerone.com/graphql --json | jq -rf graphql.jq
Supports Union types, Enum types, Interfaces, Input Objects and regular Objects.
See bored-engineer/hackeroni-ql for an example library generated with this script.