- Twitter: @example
- Website or Blog: http://example.net
- Company: Example Ltd. http://example.com
[Feel free to add more details if you wish…]
#!/usr/bin/env ruby | |
# frozen_string_literal: true | |
require 'bundler/inline' | |
gemfile do | |
source "https://rubygems.org" | |
gem "csv" |
// ==UserScript== | |
// @id acegist | |
// @name ACEgist | |
// @author Antoine BERNIER (abernier) | |
// @version 0.1.1 | |
// @description ACE editor in your gists | |
// @match https://gist.github.com/gists/*/edit | |
// ==/UserScript== | |
(function (d, cb) { |
# Record screen from simulator: | |
xcrun simctl io booted recordVideo appVideo.mov | |
# Full size screen recording | |
ffmpeg -i screen-recording.mp4 -i iPhone12ProOverlay.png \ | |
-filter_complex "scale=-1:2532,pad=width=3656:height=2057:x=(ow-iw)/2:y=(oh-ih)/2,overlay=x=0:y=0" \ | |
output.mp4 | |
# Screen recording resized to 1920px height | |
ffmpeg -i screen-recording.mp4 -i iPhone12ProOverlay-3656.png \ |
HDCP MASTER KEY (MIRROR THIS TEXT!) | |
This is a forty times forty element matrix of fifty-six bit | |
hexadecimal numbers. | |
To generate a source key, take a forty-bit number that (in | |
binary) consists of twenty ones and twenty zeroes; this is | |
the source KSV. Add together those twenty rows of the matrix | |
that correspond to the ones in the KSV (with the lowest bit | |
in the KSV corresponding to the first row), taking all elements |
import Cocoa | |
import Photos | |
let original = URL(fileURLWithPath: "/Users/matt/Code/personal/PhotoKitPlayground/Test/DSC_6326.jpg") | |
let edited = URL(fileURLWithPath: "/Users/matt/Code/personal/PhotoKitPlayground/Test/DSC_6326-edit.jpg") | |
let status = PHPhotoLibrary.authorizationStatus(for: .readWrite) | |
if status != .authorized { | |
PHPhotoLibrary.requestAuthorization(for: .readWrite) { status in |
{ | |
"setarea": false, | |
"count": 170, | |
"searchtext": "currentarea: category: \"Espoo Rantapuolikas\"", | |
"categories": [ | |
"Espoo Rantapuolikas" | |
], | |
"results": [ | |
{ | |
"name": "Espoo Rantapuolikas", |
#!/usr/bin/env ruby | |
require "openssl" | |
require "time" | |
begin | |
require "origami" | |
rescue LoadError | |
abort "origami not installed: gem install origami" | |
end |
#!/usr/bin/env bash | |
set -e -o pipefail | |
checkRequirements() { | |
requiredCommands=("jq" "xargs" "xcrun") | |
for cmd in "${requiredCommands[@]}"; do | |
if ! command -v "$cmd" &> /dev/null | |
then |
[Feel free to add more details if you wish…]