create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
| i386 : iPhone Simulator | |
| x86_64 : iPhone Simulator | |
| arm64 : iPhone Simulator | |
| iPhone1,1 : iPhone | |
| iPhone1,2 : iPhone 3G | |
| iPhone2,1 : iPhone 3GS | |
| iPhone3,1 : iPhone 4 | |
| iPhone3,2 : iPhone 4 GSM Rev A | |
| iPhone3,3 : iPhone 4 CDMA | |
| iPhone4,1 : iPhone 4S |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
| #!/usr/bin/env python | |
| """ | |
| Fast duplicate file finder. | |
| Usage: duplicates.py <folder> [<folder>...] | |
| Based on https://stackoverflow.com/a/36113168/300783 | |
| Modified for Python3 with some small code improvements. | |
| """ | |
| import os | |
| import sys |
| [ | |
| { | |
| "name": "Afghanistan", | |
| "dial_code": "+93", | |
| "code": "AF" | |
| }, | |
| { | |
| "name": "Aland Islands", | |
| "dial_code": "+358", | |
| "code": "AX" |
We need to create a virtual env for our app to run in: More Here Run this command in whatever folder you want to create your venv folder
python -m venv ./venv
| from PIL import Image, ImageSequence | |
| # Output (max) size | |
| size = 320, 240 | |
| # Open source | |
| im = Image.open("in.gif") | |
| # Get sequence iterator | |
| frames = ImageSequence.Iterator(im) |
| import {CustomError} from "./error/custom-error.interface"; | |
| require('dotenv').config(); | |
| import {RequestHandler} from 'express'; | |
| import {MongoClient} from 'mongodb'; | |
| let client: MongoClient; | |
| const connectToClientIfDropped: () => Promise<void> = async () => { | |
| if (client && client.isConnected()) { |
| func processSampleBuffer(scale: Float, sampleBuffer: CMSampleBuffer, writerInput: AVAssetWriterInput) -> Bool { | |
| guard let blockBuffer = CMSampleBufferGetDataBuffer(sampleBuffer) else { | |
| return false | |
| } | |
| let length = CMBlockBufferGetDataLength(blockBuffer) | |
| var sampleBytes = UnsafeMutablePointer<Int16>.allocate(capacity: length) | |
| defer { sampleBytes.deallocate(capacity: length) } | |
| guard checkStatus(CMBlockBufferCopyDataBytes(blockBuffer, 0, length, sampleBytes), message: "Copying block buffer") else { | |
| return false |