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
#!/usr/bin/env python | |
""" | |
no more embarrasing "removed pdb, sorry" commits | |
install | |
------- | |
save it as .git/hooks/pre-commit giving +x permission | |
""" |
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 requests | |
import time | |
import telegram_send | |
import datetime | |
from collections import defaultdict | |
telegram_send.send(['Starting bot']) | |
known_data = defaultdict(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
import { getSession } from 'next-auth/client'; | |
import { NextApiRequest, NextApiResponse } from 'next'; | |
export default async (req: NextApiRequest, res: NextApiResponse) => { | |
const { pod, container, env } = req.query; | |
const session = await getSession({ req }); | |
if (!session) { | |
return res.status(403).end('Forbidden'); | |
} | |
res.writeHead(200, { |
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
watch "(curl -s https://www.buenosaires.gob.ar/coronavirus/vacunacion-covid-19/poblacion-general | grep -q '40 años') && echo 'Falta un poco...' || echo 'A anotarse!'" |
OlderNewer