How to make an application icon for macOS using
iconset
&iconutil
version: '3.7' | |
services: | |
unifi-db: | |
image: docker.io/mongo:latest | |
container_name: unifi-db | |
volumes: | |
- ./data:/data/db | |
- ./init-mongo.js:/docker-entrypoint-initdb.d/init-mongo.js:ro |
// | |
// ContentView.swift | |
// InfinityTabView | |
// | |
// Created by beader on 2022/10/9. | |
// | |
import SwiftUI | |
struct ContentView: View { |
<body onload=z=c.getContext`2d`,setInterval(`c.width=W=150,Y<W&&P<Y&Y<P+E|9<p?z.fillText(S++${Y=`,9,9|z.fillRect(p`}*0,Y-=--M${Y+Y},P+E,9,W),P))):p=M=Y=S=6,p=p-6||(P=S%E,W)`,E=49) onclick=M=9><canvas id=c> |
- Ensure your certificate for the MITM application is in PEM format. For example, Burp Suite generates the certificate in DER, so in this case, to convert from DER to PEM:
openssl x509 -inform der -in cacert.der -out cacert.pem
Note this certificate needs to also be installed on the Android device. Android expects DER format with the file extension .crt
. If in doubt, consult google.com.
- Extract all three APKs. To avoid issues,
-r
is used.
apktool d -f -r au.gov.health.covidsafe.apk
apktool d -f -r config.xxhdpi.apk
import AVFoundation | |
extension Data { | |
func convertToURL() -> URL { | |
let tempURL = URL(fileURLWithPath: NSTemporaryDirectory()).appendingPathComponent("video").appendingPathExtension("mp4") | |
do { | |
try self.write(to: tempURL, options: [.atomic]) | |
} catch { | |
print() | |
} |
This gist is an ES module which provides functions to import and export data from an IndexedDB database as JSON. It's based on Justin Emery's indexeddb-export-import
package, but applies some adjustments that reflect better on the current browser landscape (i.e. better developer ergonomics but no support for Internet Explorer).
For each of the provided functionalities, you need a connected IDBDatabase
instance.
import { idb } from 'some-database'
#!/bin/bash | |
# curl -sL https://gist.githubusercontent.com/RichardBronosky/31660eb4b0f0ba5e673b9bc3c9148a70/raw/touchid_sudo.sh | bash | |
# This script is ready to copy-paste in whole, or just the line above (without the leading #) | |
# Use TouchID for sudo on modern MacBook Pro machines | |
# This script adds a single line to the top of the PAM configuration for sudo | |
# See: https://apple.stackexchange.com/q/259093/41827 for more info. | |
touchid_sudo(){ |
*update: TBC, but this new might affect how easy it is to use this technique past August 2024: Authy is shutting down its desktop app | The 2FA app Authy will only be available on Android and iOS starting in August
This gist, based in part on a gist by Brian Hartvigsen, allows you to export from Authy your TOTP tokens you have stored there.
Those can be "standard" 6-digits / 30 secs tokens, or Authy's own version, the 7-digits / 10 secs tokens.
import CoreLocation | |
// A Swift reimplementation of the Objective-C code listed here : | |
// http://www.hannahfry.co.uk/blog/2014/12/26/more-on-converting-british-national-grid-to-latitude-and-longitude | |
extension CLLocation { | |
convenience init(easting E: Double, northing N: Double) { | |
// The Airy 180 semi-major and semi-minor axes used for OSGB36 (m) | |
let (a, b) = (6377563.396, 6356256.909) |