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
<html> | |
<head> | |
<title>Copy Of Confirmation</title> | |
<style>.tplMain{background-color:#4E8ABE;clear:both;border-color:#4E8ABE;border-style:solid;border-width:6px 6px 6px 6px;margin-left:auto;margin-right:auto;empty-cells:show;} | |
.tplLeftPanel{border-width:6px 6px 6px 6px;border-style:solid;padding:0px 0px 0px 0px;background-color:#4E8ABE;border-color:#4E8ABE;} | |
body{margin:12px 12px 12px 12px;background-color:#FFFFFF;} | |
a, td a{color:#0000CC;} | |
a:hover,a:hover,td a:hover,td a:hover{color:#0000CC;} | |
a, td a{color:#551A8B;} |
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
require 'inline-style' | |
html = File.read('test.html') | |
count = 0 | |
loop do | |
puts count | |
count += 1 | |
InlineStyle.process(html) | |
end |
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 | |
$token = '<token>'; | |
$c = curl_init("https://api.pipedrive.com/v1/organizations?api_token={$token}"); | |
curl_setopt_array($c, [ | |
CURLOPT_POST => true, | |
CURLOPT_POSTFIELDS => 'name=Matt %26 Co', | |
CURLOPT_RETURNTRANSFER => true, | |
]); | |
$result = json_decode(curl_exec($c), true); |
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
root@localhost:~# route -6 | |
Kernel IPv6 routing table | |
Destination Next Hop Flag Met Ref Use If | |
2400:8901::/64 :: UAe 256 0 0 eth0 | |
fe80::/64 :: U 256 0 0 eth0 | |
fe80::/64 :: U 256 0 0 docker0 | |
fe80::/64 :: U 256 0 0 vethd866ece | |
::/0 fe80::1 UGDAe 1024 4 24882 eth0 | |
::/0 :: !n -1 1 24936 lo | |
::1/128 :: Un 0 5 7375 lo |
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
root@localhost:~# route -6 | |
Kernel IPv6 routing table | |
Destination Next Hop Flag Met Ref Use If | |
2400:8901::/64 :: UAe 256 0 0 eth0 | |
2400:8901::/64 :: U 256 0 0 docker0 | |
2400:8901::/64 :: U 1024 0 0 docker0 | |
fe80::1/128 :: U 1024 0 0 eth0 | |
fe80::/64 :: U 256 0 0 eth0 | |
fe80::/64 :: U 256 0 0 docker0 | |
::/0 :: !n -1 1 203 lo |
This file has been truncated, but you can view the full file.
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
--- | |
hosts: | |
walnutblock.co.nz: | |
listen: | |
port: 443 | |
ssl: | |
key-file: "/etc/ssl/walnutblock.co.nz.key" | |
certificate-file: "/etc/ssl/walnutblock.co.nz.crt" | |
cipher-suite: ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA:ECDHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA256:DHE-RSA-AES256-SHA:ECDHE-ECDSA-DES-CBC3-SHA:ECDHE-RSA-DES-CBC3-SHA:EDH-RSA-DES-CBC3-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:DES-CBC3-SHA:!DSS | |
cipher-preference: server |
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 | |
/* | |
Plugin Name: Add Random Padding | |
Description: Adds random padding to the end of pages as an added (but not complete) mitigation against BREACH et al. | |
*/ | |
function add_random_padding() { | |
echo str_repeat(' ', mt_rand(0, 20)); | |
} | |
add_action( 'wp_footer', 'add_random_padding', 100 ); |
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
require 'json' | |
require 'hosts' | |
loop do | |
hosts = Hosts::File.read('/etc/hosts') | |
host_elements = hosts.elements | |
all_aliases = [] | |
`docker ps`.split(/\n/).each do |line| | |
cols = line.split(/\s/) | |
next if cols[0] =~ /[^a-f0-9]/ |
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
Contact[] contacts = [select Id, AccountId from Contact where AccountId != null and Account.RecordType.DeveloperName != 'HH_Account']; | |
List<Id> contactIds = new List<Id>(); | |
for (Contact c : contacts) contactIds.add(c.Id); | |
npe5__Affiliation__c[] affs = [select npe5__Contact__c, npe5__Organization__c from npe5__Affiliation__c where npe5__Contact__c in :contactIds]; | |
npe5__Affiliation__c[] inserts = new List<npe5__Affiliation__c>(); | |
for (Contact c : contacts) { | |
Boolean hasAff = false; | |
for (npe5__Affiliation__c aff : affs) { |
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
Contact[] contacts = [select Id, AccountId from Contact where Account.RecordType.DeveloperName != 'HH_Account']; | |
for (Contact contact : contacts) | |
contact.AccountId = null; | |
update contacts; |