Skip to content

Instantly share code, notes, and snippets.

View zenlor's full-sized avatar
🗡️
delving ...

Lorenzo Giuliani zenlor

🗡️
delving ...
View GitHub Profile
@zenlor
zenlor / responsive-font.css
Created March 13, 2024 09:51
responsive font css
:root {
font-size: calc(1rem + 0.25vw);
}
@zenlor
zenlor / keybase.md
Created August 1, 2023 07:47
keybase.md

Keybase proof

I hereby claim:

  • I am zenlor on github.
  • I am lor (https://keybase.io/lor) on keybase.
  • I have a public key ASB8C7_lhRiPGXjzUYex6lHElAz-Ss5EduFsLF-LrYXRRwo

To claim this, I am signing this object:

import telegram
from telegram.ext import Updater, CommandHandler, MessageHandler, Filters
import os
# Set up the Telegram bot
bot = telegram.Bot(token='YOUR_TELEGRAM_BOT_TOKEN')
updater = Updater(token='YOUR_TELEGRAM_BOT_TOKEN', use_context=True)
dispatcher = updater.dispatcher
# Set up the database
@zenlor
zenlor / 55-bytes-of-css.md
Created September 28, 2022 17:15 — forked from JoeyBurzynski/55-bytes-of-css.md
58 bytes of css to look great nearly everywhere

58 bytes of CSS to look great nearly everywhere

When making this website, i wanted a simple, reasonable way to make it look good on most displays. Not counting any minimization techniques, the following 58 bytes worked well for me:

main {
  max-width: 38rem;
  padding: 2rem;
  margin: auto;
}

Keybase proof

I hereby claim:

  • I am zenlor on github.
  • I am lor (https://keybase.io/lor) on keybase.
  • I have a public key ASDhum1no62LdXp2v_hbxlRDwFK3EH04z-4nWRh9z6Q4ugo

To claim this, I am signing this object:

@zenlor
zenlor / alpine-chroot.sh
Last active May 12, 2019 10:15 — forked from emolitor/alpine-chroot.sh
chroot script for testing aarch64
#!/bin/sh
#
# This simple script is setting up a Alpine Linux installation in a chroot.
# chroot will be placed in the current working directory.
#
# Most parts of this script are written down at
# http://wiki.alpinelinux.org/wiki/Setting_up_the_build_environment_in_chroot
#
# Licensed under GPLv2
#
@zenlor
zenlor / .cVimrc
Created May 10, 2019 06:34
my cvimrc
set autoupdategist
set noautofocus
set nocncpcompletion
set smoothscroll
set hud
set noregex
set noinsertmappings
set typelinkhints
set defaultnewtabpage
let scrollduration = 10
@zenlor
zenlor / poetrade.user.js
Created April 4, 2019 07:13
poe.trade copy to clipboard for Path of Building
// ==UserScript==
// @name PoeTrade Item Copy
// @version 0.1.9
// @description Copy items from Poe.Trade to Path of Building
// @author Fikal
// @match http://poe.trade/*
// @require https://gist.github.com/raw/2625891/waitForKeyElements.js
// @run-at document-ready
// @grant GM_setClipboard
// @grant GM_notification
@zenlor
zenlor / move_to_monorepo.sh
Last active December 27, 2018 14:32
create a monorepo from a list of repos http://sevangelatos.com/monorepo/
#!/bin/sh
# Creates a new monorepo by fusing multiple repositories
# Child repositories that are going to be fused
CHILDREN="bridge-apn bridge-broker-http-gateway bridge-node-gcm bridge-log-elasticsearch bridge-secretary-client bridge-worker-client bridge-legacy-crypto bridge-config hive-worker bridge-support bridge-start bridge-secretary bridge-net bridge-log-rollbar bridge-log bridge-id bridge-hive bridge-broker bridge-bakward"
CHILDREN_FOLDER="packages"
# Name of the created monorepo
MONOREPO="monorepo"
@zenlor
zenlor / readme.md
Last active June 8, 2018 10:07
tinc scripts

tinc config

home will be the name of the network

Main folder:

/etc/tinc/home/

generate key