This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for i in $(seq 0 9999); do x=$(printf %04d $i); echo $x; adb shell input text $x; adb shell input tap 540 360; done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var eventName = 'offline'; | |
var event = document.createEvent('Event'); | |
event.initEvent(eventName, true, true); | |
document.dispatchEvent(event); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cat devices.txt | awk '{lc=$NF; $NF=""; print lc"\t"$0}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export JAVA_HOME=$(/usr/libexec/java_home) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[user] | |
name = User Name | |
email = username@example.com | |
[color] | |
ui = auto | |
[color "branch"] | |
current = yellow reverse | |
local = yellow | |
remote = green |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
hosts = { | |
"master" => { | |
:ip => "192.168.66.10", | |
:cpus => 1, | |
:memory => 1024 | |
}, | |
"node1" => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Setting up GlusterFS on Vagrant for Kubernetes | |
Note that since this is only a setup for local testing, there is no redundancy or authentication configuration. | |
* The Vagrantfile for a two-node set-up | |
``` | |
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
hosts = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import "fmt" | |
var letterValuesConfig = map[string]int{ | |
"AEIOULNRST": 1, | |
"DG": 2, | |
"BCMP": 3, | |
"FHVWY": 4, | |
"K": 5, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import boto3 | |
boto3.set_stream_logger('boto3.resources.action') | |
session = boto3.Session() | |
s3 = session.resource(service_name='s3') | |
bucket = s3.Bucket('bucket-name') | |
bucket.object_versions.delete() | |
bucket.delete() |
OlderNewer