Skip to content

Instantly share code, notes, and snippets.

View patryk's full-sized avatar
🍊

Patryk Szczygłowski patryk

🍊
View GitHub Profile
BARRON'S TAKE
Fastly Stock Is Tumbling. The Company’s Guidance May Be Too Conservative.
Fastly‘s stock is cratering Thursday after the content-delivery-network company’s weak 2022 guidance overshadowed the fourth-quarter report late Wednesday. Some analysts say the projection was simply too conservative.
Fastly (ticker: FSLY) stock is down 30% to $20.12 after the company said it sees 2022 revenue of $400 million to $410 million, and sees a non-GAAP loss for the year of 50 cents to 60 cents a share. Street consensus had been $419 million and a loss of 48 cents a share. For the fourth quarter, Fastly posted a non-GAAP loss of 10 cents a share on revenue of $97.7 million, both of which were better than expected.
RBC analyst Rishi Jaluria wrote in a research note Thursday that he expects Fastly to “stay in the penalty box,” that is, at least until the company’s analyst day in May. He cut his target price for Fastly stock to $20 from $30, but maintained a Sector Perform rating.
“Stepping back, we want to like Fa
BACKUP_PATHS="/etc /home /root /var/lib/mysql"
BACKUP_EXCLUDES="--exclude-file /home/rupert/.restic_excludes --exclude-if-present .exclude_from_backup --exclude-caches"
RETENTION_DAYS=7
RETENTION_WEEKS=4
RETENTION_MONTHS=6
RETENTION_YEARS=3
B2_ACCOUNT_ID=xxx
B2_ACCOUNT_KEY=yyy
RESTIC_REPOSITORY=b2:patryk-restic-backups:/restic/backup/felucia
RESTIC_PASSWORD=zzz
@patryk
patryk / openssl-notes.txt
Created April 11, 2020 21:40 — forked from tsaarni/openssl-notes.txt
Generate self-signed certs with different key types
*** RSA
# Generate self-signed certificate with RSA 4096 key-pair
openssl req -x509 -nodes -days 3650 -newkey rsa:4096 -keyout rsakey.pem -out rsacert.pem
# print private and public key
openssl rsa -in rsakey.pem -text -noout
# print certificate
openssl x509 -in rsacert.pem -text -noout
@patryk
patryk / worker.js
Created March 12, 2020 13:35
Worker subdomain to S3 path
addEventListener('fetch', event => {
event.respondWith(handleRequest(event.request))
})
/**
* Respond to the request
* @param {Request} request
*/
async function handleRequest(request) {
let url = new URL(request.url)
modules = {
'hints > iterate'
, 'policy'
, 'stats'
, predict = {
window = 30 -- 30 minutes sampling window
, period = 24*(60/30) -- track last 24 hours
}
}
hints.config('/tmp/kresd/hints.tmp')
@patryk
patryk / # curl - 2016-10-07_14-45-18.txt
Created October 7, 2016 13:51
curl on macOS 10.11.6 - Homebrew build logs
Homebrew build logs for curl on macOS 10.11.6
Build date: 2016-10-07 14:45:18
@patryk
patryk / gist:00f99468cc381412ec0f
Created March 31, 2015 12:41
Keep n newest directories deleting all older in a specified directory
#!/usr/bin/env bash
dir="$1"
min_dirs=5
exclude=$(readlink -f $(find "$dir" -maxdepth 1 -type l))
while [ $(find "$dir" -maxdepth 1 -type d -not -path $exclude | wc -l) -gt $min_dirs ] && IFS= read -r -d $'\0' line < <(find "$dir" -maxdepth 1 -type d -not -path $exclude -printf '%T@ %p\0' 2>/dev/null | sort -z -n);
do
file="${line#* }"
$ traceroute -A 141.101.116.244
traceroute to 141.101.116.244 (141.101.116.244), 30 hops max, 60 byte packets
1 129.10.static.dcenter.pl (213.5.10.129) [AS49895] 4.275 ms 4.184 ms 4.086 ms
2 * * *
3 r1.war1.pl.as5580.net (78.152.54.1) [AS5580] 7.352 ms 0.800 ms 0.654 ms
4 eth1-1.r1.pra1.cz.atrato.net (78.152.34.93) [AS5580] 21.784 ms 17.000 ms 16.950 ms
5 eth2-7.r1.fra1.de.atrato.net (78.152.44.14) [AS5580] 26.507 ms 26.433 ms 26.352 ms
6 eth13-1.core1.par2.fr.atrato.net (78.152.44.244) [AS5580] 31.342 ms 31.483 ms 31.362 ms
7 eth3-3.r1.ash1.us.atrato.net (78.152.44.249) [AS5580] 124.327 ms 124.930 ms 123.724 ms
8 eth1-2.core1.ash2.us.atrato.net (78.152.35.40) [AS5580] 112.321 ms 112.160 ms 112.129 ms