I hereby claim:
- I am ankurp on github.
- I am ankurpatel (https://keybase.io/ankurpatel) on keybase.
- I have a public key whose fingerprint is 9A6F 968C DF90 6A1C F625 2406 B2AC 182B E6D3 987F
To claim this, I am signing this object:
I hereby claim:
- I am ankurp on github.
- I am ankurpatel (https://keybase.io/ankurpatel) on keybase.
- I have a public key whose fingerprint is 4006 E9D0 873E 6811 210B DF5D 464F B5B2 7E7F 509D
To claim this, I am signing this object:
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
import Darwin.C | |
let zero = Int8(0) | |
let transportLayerType = SOCK_STREAM // TCP | |
let internetLayerProtocol = AF_INET // IPv4 | |
let sock = socket(internetLayerProtocol, Int32(transportLayerType), 0) | |
let portNumber = UInt16(4000) | |
let socklen = UInt8(socklen_t(MemoryLayout<sockaddr_in>.size)) | |
var serveraddr = sockaddr_in() | |
serveraddr.sin_family = sa_family_t(AF_INET) | |
serveraddr.sin_port = in_port_t((portNumber << 8) + (portNumber >> 8)) |
I hereby claim:
- I am ankurp on github.
- I am ankurpatel (https://keybase.io/ankurpatel) on keybase.
- I have a public key whose fingerprint is 91A4 1857 EC5E A515 3C83 7E0B F91F CAD0 85DB 3C21
To claim this, I am signing this object:
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
pihole -b r1---sn-bvvbax-2ial.googlevideo.com r1---sn-ab5l6nsy.googlevideo.com r8---sn-bvvbax-2ial.googlevideo.com r6---sn-ab5szn7y.googlevideo.com r3---sn-bvvbax-2ial.googlevideo.com r5---sn-ab5l6ndr.googlevideo.com r9---sn-bvvbax-2ial.googlevideo.com r6---sn-bvvbax-2ial.googlevideo.com r11---sn-bvvbax-2ial.googlevideo.com r4---sn-bvvbax-2ial.googlevideo.com r4---sn-ab5szn7e.googlevideo.com r5---sn-ab5l6nsr.googlevideo.com r5---sn-ab5l6nsk.googlevideo.com r7---sn-bvvbax-2ial.googlevideo.com r5---sn-bvvbax-2ial.googlevideo.com r5---sn-ab5l6nsy.googlevideo.com r3---sn-ab5l6n67.googlevideo.com r1---sn-ab5l6nzr.googlevideo.com r2---sn-ab5l6nzl.googlevideo.com r3---sn-ab5szne7.googlevideo.com r1---sn-a5mlrn7y.googlevideo.com r3---sn-nx5s7n7z.googlevideo.com r2---sn-ab5l6nzr.googlevideo.com r3---sn-ab5sznl7.googlevideo.com r2---sn-ab5sznlk.googlevideo.com r2---sn-bvvbax-2ial.googlevideo.com r1---sn-p5qlsnd6.googlevideo.com r1---sn-ab5l6n67.googlevideo.com r2.sn-bvvbax-2ial.googlevideo.com r10---sn-bvvbax-2ial.goog |
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
version: "3.3" | |
services: | |
################################################ | |
#### Traefik Proxy Setup ##### | |
############################################### | |
traefik: | |
image: traefik:v2.0 | |
restart: always | |
container_name: traefik |
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
people = %w[John Mary Bob Peter Susan Paula] | |
# Works only for even number of participants | |
if people.size % 2 == 0 | |
half_index = (people.size / 2) - 1 | |
first_person = people.shift | |
rotating_people = people[0...half_index] + people[half_index..].reverse | |
(0..people.size - 1).each do |i| | |
first_half = [first_person, *rotating_people[0...half_index]] | |
second_half = rotating_people[half_index..].reverse |