Skip to content

Instantly share code, notes, and snippets.

View mattparlane's full-sized avatar

Matt Parlane mattparlane

View GitHub Profile
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
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
<?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);
<?xml version="1.0" ?>
<verbosegc xmlns="http://www.ibm.com/j9/verbosegc" version="Preview">
<exclusive-start id="1" timestamp="2015-12-17T02:16:21.389" intervalms="42.208">
<response-info timems="0.000" idlems="0.000" threads="0" lastid="0000000000000000" lastname="OMR_VMThread [" />
</exclusive-start>
<af-start id="2" threadId="00007F2F3137CFD0" totalBytesRequested="40" timestamp="2015-12-17T02:16:21.389" intervalms="42.392" />
<cycle-start id="3" type="global" contextid="0" timestamp="2015-12-17T02:16:21.389" intervalms="42.510" />
<gc-start id="4" type="global" contextid="3" timestamp="2015-12-17T02:16:21.389">
wg@wgdev:~/topaz$ ~/pypy/rpython/bin/rpython -Ojit targettopaz.py
[translation:info] 2.7.3 (140cb204a130, Jul 02 2013, 22:00:22)
[translation:info] [PyPy 2.1.0-alpha0 with GCC 4.6.3]
[platform:msg] Set platform with 'host' cc=None, using cc='gcc'
[translation:info] Translating target as defined by targettopaz
[platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused /tmp/usession-default-1/gcctest.c -o /tmp/usession-default-1/gcctest.o
[platform:execute] gcc /tmp/usession-default-1/gcctest.o -pthread -lrt -o /tmp/usession-default-1/gcctest
[platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused /tmp/usession-default-1/gcctest.c -o /tmp/usession-default-1/gcctest.o
[platform:execute] gcc /tmp/usession-default-1/gcctest.o -pthread -lrt -o /tmp/usession-default-1/gcctest
[platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused /tmp/usession-default-1/platcheck_0.c -o /tmp/usession-default-1/platcheck_0.o
require 'inline-style'
html = File.read('test.html')
count = 0
loop do
puts count
count += 1
InlineStyle.process(html)
end
<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;}
require 'inline-style'
html = File.read('test.html')
loop do
InlineStyle.process(html)
end
<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:visited:hover,td a:hover,td a:visited:hover{color:#0000CC;}
a:visited, td a:visited{color:#551A8B;}
Oct 7 10:13:46 nz1 wg-ruby: NoMethodError - undefined method `unpack' for nil:NilClass:
Oct 7 10:13:46 nz1 wg-ruby: #011/home/wg/.rvm/gems/jruby-1.6.8/gems/moped-1.2.5/lib/moped/connection.rb:88:in `read'
Oct 7 10:13:46 nz1 wg-ruby: #011/home/wg/.rvm/gems/jruby-1.6.8/gems/moped-1.2.5/lib/moped/connection.rb:169:in `with_connection'
Oct 7 10:13:46 nz1 wg-ruby: #011/home/wg/.rvm/gems/jruby-1.6.8/gems/moped-1.2.5/lib/moped/connection.rb:86:in `read'
Oct 7 10:13:46 nz1 wg-ruby: #011/home/wg/.rvm/gems/jruby-1.6.8/gems/moped-1.2.5/lib/moped/protocol/query.rb:140:in `receive_replies'
Oct 7 10:13:46 nz1 wg-ruby: #011/home/wg/.rvm/gems/jruby-1.6.8/gems/moped-1.2.5/lib/moped/connection.rb:125:in `receive_replies'
Oct 7 10:13:46 nz1 wg-ruby: #011org/jruby/RubyArray.java:2347:in `collect'
Oct 7 10:13:46 nz1 wg-ruby: #011/home/wg/.rvm/gems/jruby-1.6.8/gems/moped-1.2.5/lib/moped/connection.rb:124:in `receive_replies'
Oct 7 10:13:46 nz1 wg-ruby: #011/home/wg/.rvm/gems/jruby-1.6.8/gems/moped-1.2.5/lib/moped/node.rb: