Skip to content

Instantly share code, notes, and snippets.

Avatar
🐢
Doing awesome stuff

Filip Troníček filiptronicek

🐢
Doing awesome stuff
View GitHub Profile
@filiptronicek
filiptronicek / api-commit.js
Created Oct 11, 2020
Get current Vercel deploy commit sha on your website
View api-commit.js
export default async (_req, res) => {
res.json({ data: process.env.VERCEL_GITHUB_COMMIT_SHA });
};
@filiptronicek
filiptronicek / conversion.md
Last active Oct 9, 2020
Converting from jQuery to vanilla JS
View conversion.md
View bash-stuff.md

Bash stuff

  • Ctrl + O - trigger next command in history
  • Ctrl + R - search in history
  • Ctrl + Z - run in background

alias update="sudo apt-get update && sudo apt-get upgrade && sudo apt-get full-upgrade autoremove"

Git stuff

Verbose before commit: git config --global commit.verbose 1

@filiptronicek
filiptronicek / qr.js
Created Jul 21, 2020
QR code generator in 5 lines or less
View qr.js
let toConvert = $("#content").val();
function generate(text) { $("#qrcode").html(""); $("#qrcode").qrcode(text);}
if($("#content").val() == "") $("#qrcode").html("");
View nehoda.txt
PN = počet nehod
Š = škody (in K)
TR = Těžce ranění
PVA = Pod Vlivem Alkoholu
NR = 19
LR = lehce zraněných
@filiptronicek
filiptronicek / dark.css
Created Jun 24, 2020
Mannoviny Darkmode (WIP)
View dark.css
@media (prefers-color-scheme: dark) {
header, .site-title a {
background: #2a2a2e !important;
color: white !important;
}
}
View undefined
🗣 Commented on #12186 in gitpod-io/gitpod
🗣 Commented on #633 in open-vsx/publish-extensions
💪 Opened PR #2579 in gitpod-io/website
🗣 Commented on #509 in eclipse/openvsx
🎉 Merged PR #2575 in gitpod-io/website
View 🐱 GitHub Data
🏆 1,774 Contributions in year 2020
📦 Used 286 MB in GitHub's Storage
📜 28 Public Gists
🔑 2 Public Keys
💼 Opted to Hire
View repeater.py
import subprocess as s
import sys
import time
delay = 30
def rpt()
s.call(["python",sys.argv[1])
time.sleep(delay)
rpt()