ive made a mistake
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
-- media_rot.sql | |
-- | |
-- Copyright codl <[email protected]> | |
-- | |
-- Permission to use, copy, modify, and/or distribute this software for any | |
-- purpose with or without fee is hereby granted. | |
-- | |
-- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | |
-- WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | |
-- MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY |
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
--[[ | |
Copyright (c) 2021 codl | |
Permission to use, copy, modify, and/or distribute this software for any | |
purpose with or without fee is hereby granted. | |
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH | |
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY | |
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, | |
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM |
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
sub vcl_recv { | |
if(req.http.Accept-Encoding ~ "br") { | |
set req.http.X-brotli = "true"; | |
} | |
} | |
sub vcl_hash { | |
if(req.http.X-brotli == "true") { | |
hash_data("br"); | |
} |
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
{ | |
init: function(elevators, floors) { | |
let i = 0; | |
for(let elevator of elevators){ | |
elevator.num = i; | |
i++; | |
elevator.on('idle', ()=>{ | |
if(elevator.num % 2 == 1){ | |
elevator.goToFloor(0); | |
} else { |
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
vcl 4.0; | |
backend b2_f001 { | |
.host = "127.0.0.1"; | |
.port = "50676"; | |
} | |
backend s3_eu_west_1 { | |
.host = "127.0.0.1"; | |
.port = "29738"; |
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 psycopg2 | |
db = psycopg2.connect('postgresql:///mastodon_development') | |
cur = db.cursor() | |
for i in range(500): | |
screenname = "bogus_{}".format(i) | |
email = "bogus_{}@m.codl.fr".format(i) | |
acc_to_follow = 1 |
On 2018-08-11, from 01:36 to 04:13 UTC, chitter.xyz suffered an outage.
all times UTC
- 01:36 - the network goes down for an indeterminate length of time
- 01:XX - ImageMagick
convert
processes start hoarding memory - 01:XX - system goes under memory pressure
- 01:51 - mastodon app server serves its last request
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
# sidekiq.chart.sh by codl <[email protected]> | |
# | |
# put this in /usr/libexec/netdata/charts.d | |
# to let others know that | |
# you are gay too | |
sidekiq_update_every=5 | |
sidekiq_priority=9000 | |
sidekiq_check() { |
NewerOlder