Skip to content

Instantly share code, notes, and snippets.

View dentarg's full-sized avatar
🌦️
=:D><!

Patrik Ragnarsson dentarg

🌦️
=:D><!
View GitHub Profile
@dentarg
dentarg / patrik.photos.txt
Created April 25, 2019 21:32
https://exposure.co getting SSL certificate from Let's Encrypt on-the-fly
$ curl -s -v https://patrik.photos
* Rebuilt URL to: https://patrik.photos/
* Trying 100.25.9.126...
* TCP_NODELAY set
* Connected to patrik.photos (100.25.9.126) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH
* successfully set certificate verify locations:
* CAfile: /etc/ssl/cert.pem
@dentarg
dentarg / Idera Acquires Travis CI.md
Created March 7, 2019 22:13
Email 4 Mar 2019, 17:01

Dear Customer,

I am Randy Jacops, the CEO of Idera, Inc. You likely saw the press announcement last month announcing Idera’s acquisition of Travis CI (hereafter, Travis). Here is a link to the announcement if you have not seen it: Idera, Inc. Acquires Travis CI GmbH for Continuous Integration Capabilities.

I’d like to welcome you to the Idera family and look forward to building on Travis’ history of market leading continuous integration products for software developers and testing professionals. I’m writing this letter to introduce Idera and explain why we are excited to acquire Travis.

Idera delivers B2B software productivity tools that allow technical users to do more with less, faster. The company's brands span three divisions—Database Tools, Developer Tools and Testing Tools—with products used and evangelized by millions of community members and more than 50,000 customers worldwide. Continuous integration accelerates software delivery, improves developer productivity, and enables technical innovation t

@dentarg
dentarg / email.md
Created March 7, 2019 21:31
46elks Security Notice

From: 46elks
Date: Wed, 06 Mar 2019 16:58:56 +0100

Hello.

I am writing to inform you that yesterday at 15:46 CET one of 46elks’ physical servers was compromised by an unauthorized third party. The breach was possible due to weaknesses in the remote control system (IPMI). The server hosts virtual servers and one of those is a full node in our API cluster. This means that your data has potentially been compromised.

We have investigated this problem since 15:48 CET and have worked hard to figure out what was going on. We have no indications that any of the virtual servers or the data contained therein has been accessed or modified by this unauthorized third party.

>You are receiving this email because you have a 46elks account and, although we do not believe your personal data has been compromised, there is a possibility they might have been. We are sorry for this.

#### Contents of the preconfiguration file (for stretch)
### Localization
# Preseeding only locale sets language, country and locale.
d-i debian-installer/locale string en_US
# The values can also be preseeded individually for greater flexibility.
#d-i debian-installer/language string en
#d-i debian-installer/country string NL
#d-i debian-installer/locale string en_GB.UTF-8
# Optionally specify additional locales to be generated.
@dentarg
dentarg / clamp.rb
Created February 8, 2019 12:38
RubyTapas: 542-abstraction-and-performance-part-2-with-chris-seaton.mp4, 541-abstraction-and-performance-part-1-with-chris-seaton.mp4
num = 50
min = 100
max = 10
def clamp_slow(num, min, max)
print "#{__method__}(num=#{num}, min=#{min}, max=#{max}) => "
print [num, min, max].sort[1]
end
def clamp_fast(num, min, max)
@dentarg
dentarg / a-2019-01-02.txt
Last active April 10, 2023 09:44
A3 / T3 Cloudflare 1.1.1.1 issues
$ ifconfig en2
en2: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
options=4<VLAN_MTU>
ether a0:ce:c8:c0:7a:22
inet6 fe80::99:b10a:761a:3a90%en2 prefixlen 64 secured scopeid 0xc
inet 213.21.109.70 netmask 0xffffff80 broadcast 213.21.109.127
nd6 options=201<PERFORMNUD,DAD>
media: autoselect (1000baseT <full-duplex>)
status: active
@dentarg
dentarg / jävla-ruby.rb
Last active June 16, 2018 16:34
nil smyger sig på
irb(main):001:0> foo
NameError: undefined local variable or method `foo' for main:Object
from (irb):1
from /Users/dentarg/.rubies/ruby-2.2.10/bin/irb:11:in `<main>'
irb(main):002:0> if false ; foo = 1 ; end
=> nil
irb(main):003:0> foo
=> nil
irb(main):004:0> bar
NameError: undefined local variable or method `bar' for main:Object
@dentarg
dentarg / one-one-one-one.txt
Created April 23, 2018 22:57
Bredband från T3
$ traceroute 1.1.1.1
traceroute to 1.1.1.1 (1.1.1.1), 64 hops max, 52 byte packets
1 router.asus.com (192.168.1.1) 0.970 ms 0.447 ms 0.410 ms
2 213-21-109-1.customer.t3.se (213.21.109.1) 1.508 ms 1.309 ms 1.436 ms
3 172.16.0.231 (172.16.0.231) 5.360 ms 124.284 ms 7.722 ms
4 172.16.0.242 (172.16.0.242) 2.285 ms 1.976 ms 1.927 ms
5 172.16.0.241 (172.16.0.241) 2.314 ms 2.128 ms 2.202 ms
6 172.16.0.235 (172.16.0.235) 15.092 ms 4.648 ms 17.636 ms
7 1dot1dot1dot1.cloudflare-dns.com (1.1.1.1) 2.920 ms 2.132 ms 2.258 ms
@dentarg
dentarg / test2.rb
Created February 13, 2018 17:06
Problematic spec
$stdout.sync = true
$stderr.sync = true
require "socket"
require "timeout"
module PortProber
module_function
def random(host)
@dentarg
dentarg / test2.rb
Created February 13, 2018 16:44
Problematic spec repro
$stdout.sync = true
$stderr.sync = true
require "socket"
require "timeout"
module PortProber
module_function
def random(host)