- Dancing in the Dark / All My Friends
- BBC highlights
- Foo Fighters cancelled due to Dave Grohl’s broken leg
- The Libertines (BBC highlights) moved forward
- Without this, might have missed Hot Chip
- Baader–Meinhof phenomenon: tendency to notice something more often after becoming aware of it
- Dunning–Kruger effect: illusion of cognitive superiority
- Leidenfrost effect: droplets of water float on hot surface
- Mandela effect: false memories shared by multiple people
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
#!/bin/bash | |
echo 'This script checks the HIBP API to see if a password has been breached.' | |
echo 'Only the first 5 characters of the SHA1 hash of the password leave the device.' | |
echo | |
echo -n 'Password: ' | |
read -s password | |
hash=$(echo -n "$password" | sha1sum | cut -c 1-40) |
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
$.get('/users/daily-site-access/' + StackExchange.options.user.userId, t => { | |
eval(t.match(/var visited = {.+};/)[0]); | |
const firstYear = Object.keys(visited)[0], | |
firstMonth = Object.keys(visited[firstYear])[0], | |
firstDay = Object.keys(visited[firstYear][firstMonth])[0], | |
date = new Date(firstYear, firstMonth - 1, firstDay), | |
today = Date.now(); | |
let days = [], seq = 0, streaks = [0], fewest = 100, fewestDate; | |
do { | |
days[++seq] = !!visited[date.getFullYear()][date.getMonth() + 1][date.getDate()]; |
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
<?php | |
$request = <<<EOS | |
<?xml version="1.0" encoding="UTF-8"?> | |
<soap:Envelope | |
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" | |
xmlns:ns1="http://schemas.example.com" | |
xmlns:xsd="http://www.w3.org/2001/XMLSchema" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> |
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
<?php | |
$headers = [ | |
"Content-Security-Policy: style-src 'self'", | |
"Content-Type: application/json", | |
]; | |
foreach ($headers as $header) { | |
header($header); | |
} |
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
const config = { | |
'source.email@gmail.com': { | |
prefix: 'Source', | |
color: CalendarApp.EventColor.PALE_RED, | |
visibility: 'private' | |
}, | |
}; | |
function onCalendarChanged(trigger) { | |
copyEvents(trigger.calendarId); |
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
javascript:(function (doc) { | |
let cards = { | |
1111: 'Card #1', | |
2222: 'Card #2', | |
}; | |
doc.querySelectorAll('[data-number]').forEach(function (card) { | |
card.parentNode.querySelector('span').innerText = cards[card.dataset.number]); | |
}); | |
})(document); |
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
*.json diff=gron |
NewerOlder