This file contains hidden or 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
| \documentclass[10pt,a4paper]{article} | |
| \usepackage[utf8]{inputenc} | |
| \usepackage[T1]{fontenc} | |
| \usepackage{kpfonts} % KP Serif font | |
| %\usepackage{lmodern} % Latin Modern | |
| %\usepackage{antiqua} % Antiqua serif font | |
| %\usepackage{pandora} % Pandora serif font | |
| %\usepackage[default]{comfortaa} % Confortaa sans-serif font | |
| %\usepackage{libertine} |
This file contains hidden or 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
| { | |
| frankenphp | |
| } | |
| {$APP_URL} { | |
| root /srv/public | |
| encode zstd br gzip | |
| php_server | |
| } |
This file contains hidden or 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
| :80 { | |
| root invoiceninja/public | |
| encode gzip | |
| php_fastcgi unix/fpm.sock | |
| file_server | |
| } |
This file contains hidden or 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
| { | |
| "ipv6": true, | |
| "fixed-cidr-v6": "2001:db8::/64", | |
| "experimental": true, | |
| "ip6tables": true, | |
| "default-address-pools":[ | |
| {"base": "172.17.0.0/16", "size": 24 }, | |
| {"base": "2001:db8:1::/64", "size": 80 } | |
| ], | |
| "dns": [ |
This file contains hidden or 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
| fn main() { | |
| let mut items: Vec<&str> = vec!["a", "b", "c"]; | |
| let mut c = vec![0; items.len()]; | |
| println!("{:?}", items); | |
| let mut i = 0; | |
| while i < items.len() { | |
| if c[i] < i { | |
| if i % 2 == 0 { |
This file contains hidden or 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 argparse | |
| import multiprocessing | |
| import itertools | |
| from bip_utils import Bip39SeedGenerator, Bip44Changes, Bip84, Bip84Coins | |
| from bip_utils.utils.mnemonic import MnemonicChecksumError | |
| def validate_mnemonic(perm): | |
| mnemonic = " ".join(perm) | |
| return False |
This file contains hidden or 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
| #!/bin/sh | |
| # nat64.net NAT64 DNS resolvers | |
| # This can be removed once AWS adds IPv6 DNS records for various services, e.g. SSM | |
| echo 'DNS=2a00:1098:2c::1 2a01:4f9:c010:3f02::1 2a01:4f8:c2c:123f::1\nDomains=~.' >> /etc/systemd/resolved.conf | |
| systemctl restart systemd-resolved.service | |
| # AWS Ubuntu repo doesn't support IPv6 so use default | |
| sed -E -i 's/[a-z]{2}-[a-z]+-[0-9]\.ec2\.//g' /etc/apt/sources.list |
This file contains hidden or 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
| XMLHttpRequest = class extends XMLHttpRequest { | |
| send() { | |
| const onreadystatechange = this.onreadystatechange; | |
| this.onreadystatechange = () => { | |
| console.log(this.readyState); | |
| if (typeof onreadystatechange === 'function') { | |
| this._onreadystatechange(); | |
| } | |
| }; | |
| super.send(); |
This file contains hidden or 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
| #!/bin/sh | |
| snap switch --channel=candidate amazon-ssm-agent | |
| snap refresh amazon-ssm-agent |
This file contains hidden or 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
| #!/bin/sh | |
| hdiutil attach -readonly -imagekey diskimage-class=CRawDiskImage disk.img |
NewerOlder