Keybase proof
I hereby claim:
- I am paulmillr on github.
- I am paulmillr (https://keybase.io/paulmillr) on keybase.
- I have a public key whose fingerprint is E0B4 E9E1 A4B9 C96F 889E 6C6F 6128 0CD9 A383 C2E5
To claim this, I am signing this object:
const {readdir, opendir, stat} = require('fs').promises; | |
const sysPath = require('path'); | |
async function* open(parentPath) { | |
if (opendir) { // switch this | |
yield* await opendir(parentPath); | |
} else { | |
yield* await readdir(parentPath, {withFileTypes: true}); | |
} | |
} |
const chokidar = require('chokidar'); | |
const root = 'directory'; | |
function runChokidar() { | |
const start = new Date; | |
console.log('start', start); | |
let index = 0; | |
chokidar.watch(root) | |
.on('add', () => ++index) | |
.on('ready', () => { |
I hereby claim:
To claim this, I am signing this object:
This post by a security researcher who prefers to remain anonymous will elucidate concerns about certain problematic decisions Apple has made and caution about future decisions made in the name of “security” while potentially hiding questionable motives. The content of this article represents only the opinion of the researcher. The researcher apologises if any content is seen to be inaccurate, and is open to comments or questions through PGP-encrypted mail.
TL;DR
#!/bin/bash | |
# | |
# DROPKICK.SH | |
# | |
# Detect and Disconnect the DropCam and Withings devices some people are using to | |
# spy on guests in their home, especially in AirBnB rentals. Based on Glasshole.sh: | |
# | |
# http://julianoliver.com/output/log_2014-05-30_20-52 | |
# | |
# This script was named by Adam Harvey (http://ahprojects.com), who also |
require 'aws-sdk' | |
require 'aws-sdk-resources' | |
config = {region: 'us-west-1', bucket: 'test', key: 'key', secret: 'secret'} | |
Aws.config.update({region: config[:region], credentials: Aws::Credentials.new(config[:key], config[:secret])}) | |
bucket = Aws::S3::Resource.new.bucket(bucket: config[:bucket]) | |
# ============ | |
# Create file. | |
obj = bucket.object(path) |
import reclaimer | |
import uploader | |
# Example app code is mp7sh5jd6 |
module.exports = function ( grunt ) { | |
/** | |
* Load required Grunt tasks. These are installed based on the versions listed | |
* in `package.json` when you do `npm install` in this directory. | |
*/ | |
grunt.loadNpmTasks('grunt-contrib-clean'); | |
grunt.loadNpmTasks('grunt-contrib-copy'); | |
grunt.loadNpmTasks('grunt-contrib-jshint'); | |
grunt.loadNpmTasks('grunt-contrib-concat'); |
/* iPhone 6 Plus & iPad Air 2 media query (Retina HD displays). | |
Also works for similar Android devices. */ | |
/* Use x2 images by default. */ | |
.logo { | |
background-image: url(http://hellyeah.is/images/text-logo-ns@x2.png); | |
height: 300px; | |
width: 100%; | |
background-size: contain; | |
background-repeat: no-repeat; | |
background-position: center; |
[].slice.call(document.querySelectorAll('#das_result .das_stream_item')) | |
.filter(function(el) { | |
return el.classList.contains('taken') || el.classList.contains('unavailable') || el.classList.contains('syntax') || el.dataset.domainName.split('.').length > 2; | |
}) | |
.forEach(function(el) { | |
el.setAttribute('hidden', 'hidden'); | |
}); |