start new:
tmux
start new with session name:
tmux new -s myname
// delete photos from Google Maps | |
(async () => { | |
const sleep = (time) => new Promise(resolve => setTimeout(resolve,time)); | |
const go = async () => { | |
// click the kebab | |
document.querySelector('button[jsaction*="pane.photo.actionMenu"]:not([aria-hidden="true"])').click(); | |
await sleep(200); | |
// click the delete menu item | |
document.querySelector('#action-menu div[role="menuitemradio"]').click(); |
class Model < ActiveRecord::Base | |
include UuidConcern | |
# uuid attribute is `:uuid` by default. Optionally pass in attribute name, e.g `has_uuid :unique_token` | |
has_uuid | |
end |
FROM ruby:2.7.1-slim AS base | |
LABEL maintainer="Yann Defretin <yann@defret.in" | |
# Common dependencies | |
RUN apt-get update -qq \ | |
&& DEBIAN_FRONTEND=noninteractive apt-get install -yq \ | |
--no-install-recommends \ | |
build-essential=12.6 \ | |
gnupg2=2.2.12-1+deb10u1 \ |
#!/bin/bash | |
# curl -sL https://gist.githubusercontent.com/vishvish/70d12682c29927dabbeb48fa7b3defca/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(){ |
#!/bin/sh | |
# Set the macOS installer path as a variable | |
MACOS_INSTALLER="/Applications/$(ls /Applications | grep "Install macOS")" | |
MOUNT_POINT="$MACOS_INSTALLER/Contents/SharedSupport" | |
echo "macOS installer is \"$MACOS_INSTALLER\"" | |
# Set the target disk as a variable | |
TARGET=$(diskutil info "$(bless --info --getBoot)" | awk -F':' '/Volume Name/ { print $2 }' | sed -e 's/^[[:space:]]*//') | |
echo "Target disk is \"$TARGET\"" |
# This hosts file is brought to you by Dan Pollock and can be found at | |
# http://someonewhocares.org/hosts/ | |
# You are free to copy and distribute this file for non-commercial uses, | |
# as long the original URL and attribution is included. | |
#<localhost> | |
127.0.0.1 localhost | |
127.0.0.1 localhost.localdomain | |
255.255.255.255 broadcasthost | |
::1 localhost |
#This isn't very secure, but its for demo purposes | |
docker run --name postgres -e POSTGRES_PASSWORD=password -d -p 54320:5432 \ | |
-v $(pwd)/postgresql.conf:/srv/postgresql.conf \ | |
-v $(pwd)/server.crt:/srv/server.crt \ | |
-v $(pwd)/server.key:/srv/server.key \ | |
-v $(pwd)/reconfigure_postgres.sh:/docker-entrypoint-initdb.d/reconfigure_postgres.sh \ | |
postgres:9.5 |
import Foundation | |
let notified = dispatch_semaphore_create(0) | |
let group = dispatch_group_create() | |
let queue = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0) | |
for n in 0..<20 { | |
dispatch_group_async(group, queue) { | |
let timeInterval = Double(arc4random_uniform(1000)) * 0.01 |
Adyen Test Card Numbers | |
These cards are only valid on our TEST system and they will never involve any actual transaction or transfer of funds. The TEST card numbers will not work on the Adyen LIVE Platform. | |
For all cards use the following expiration and CVV2/CVC2/or CID for Amex. | |
For all cards: | |
Expiration Dates CVV2 / CVC3 CID (American Express) | |
06/2016 OR 08/2018 737 7373 |