View sendmail.mc.diff
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
@@ -88,6 +88,12 @@ | |
dnl # Stop connections that overflow our concurrent and time connection rates | |
FEATURE(`conncontrol', `nodelay', `terminate')dnl | |
FEATURE(`ratecontrol', `nodelay', `terminate')dnl | |
+ | |
+MASQUERADE_AS(digitalinsightsplatform.nl)dnl | |
+FEATURE(masquerade_envelope)dnl | |
+FEATURE(masquerade_entire_domain)dnl | |
+MASQUERADE_DOMAIN(digitalinsightsplatform.nl)dnl | |
+ |
View main-disk-free.php
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 | |
$home = rtrim(getenv('HOME'), '\\/'); | |
$output = `df -h`; | |
if (!preg_match('#(\d+)% +/\s#', "$output ", $match)) { | |
echo trim($output) . "\n"; | |
exit(1); | |
} |
View versie1.xml
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
<analyses> | |
<analysis> | |
<test> | |
<testCode>A</testCode> | |
</test> | |
<package> | |
<packageCode>C</packageCode> | |
</package> | |
<package> | |
<packageCode>D</packageCode> |
View rwebsocket.js
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 http = require('http'); | |
var https = require('https'); | |
var websocket = require('websocket'); | |
var util = require('util'); | |
function _log(msg) { | |
console.log.apply(console, arguments); | |
console.log(''); | |
} |
View packagist-dependees.js
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 PACKAGE = 'rdx/db'; | |
ghGrapQL(`query { viewer { login, repositories(first: 100, privacy: PUBLIC, orderBy: {direction: DESC, field: PUSHED_AT}) { nodes { name } } } }`).then(rsp => { | |
return rsp.data.viewer.repositories.nodes.map(repo => `${rsp.data.viewer.login}/${repo.name}`) | |
}).then(repos => { | |
return repos.map(repo => { | |
return (rsps) => { | |
console.log(repo); | |
return fetch(`https://rawgit.com/${repo}/master/composer.json`).then(rsp => rsp.ok ? rsp.json() : null).then(rsp => rsps.concat([[repo, rsp]])); | |
} | |
}); |
View background.js
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 queue = []; | |
chrome.browserAction.onClicked.addListener(function(tab) { | |
var url = 'http://www.example.com/?x=' + String(Math.random()).substr(2); | |
queue.push(url); | |
console.log('queue', queue); | |
chrome.tabs.update({url}); | |
}); | |
chrome.runtime.onMessage.addListener(function(msg, sender, sendResponse) { |
View ss.bookmarklet.js
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: | |
document.addEventListener('mousedown', e => { | |
if (e.button == 2 && e.target.nodeName == 'SELECT') { | |
window.sst = setTimeout(function() { | |
var q = prompt('Search what?', ''); | |
if (q === '') { | |
[].forEach.call(e.target.options, o => o.style.display = ''); | |
} | |
else if (q != null) { | |
[].forEach.call(e.target.options, o => o.style.display = o.textContent.toLowerCase().indexOf(q) >= 0 ? '' : 'none'); |
View xmlencode.php
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 | |
/** | |
* Converts UTF-8 to XML-safe HTML entities: Изложение => Изложение | |
*/ | |
function xmlencode($string) { | |
$string = (string) $string; | |
// Replace < and ' and & etc. | |
$string = htmlspecialchars($string, ENT_XML1 | ENT_QUOTES); |
View ing-creditcard-export.js
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(f, a) { | |
f = new Blob(['"Date","Description","Amount"\n', [].map.call(queryAllShadow('[data-tag-name="ing-ow-expandable-item"]', queryAllShadow('[data-tag-name="ing-feat-transaction-period"]').reverse()[0]), row => ([ | |
row.closest('.date-item').querySelector('time').getAttribute('datetime'), | |
row.querySelector('h5').textContent.trim(), | |
row.querySelector('h5 + strong').textContent.trim().replace(',', '.').replace('−', '-'), | |
]).map(col => '"' + col.replace(/"/g, '""') + '"').join(',')).join('\n')], {type: 'text/plain'}); | |
a = document.createElement('a'); | |
a.download = 'trans.csv'; | |
a.href = URL.createObjectURL(f); | |
a.click(); |
View inc.explorer.php
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 | |
$utcStart = microtime(true); | |
// Last modified timestamp | |
defined('TIMESTAMP') or define('TIMESTAMP', 'D d-M-Y H:i'); | |
// Permissions | |
defined('ENABLE_DOWNLOAD') or define('ENABLE_DOWNLOAD', false); | |
defined('ENABLE_SOURCE') or define('ENABLE_SOURCE', false); |
NewerOlder