Skip to content

Instantly share code, notes, and snippets.

Doing awesome stuff

Filip Troníček filiptronicek

Doing awesome stuff
View GitHub Profile
DavidWells / github-proxy-client.js
Last active Jun 30, 2022
Full Github REST api in 34 lines of code
View github-proxy-client.js
/* Ultra lightweight Github REST Client */
// original inspiration via
const token = 'github-token-here'
const githubClient = generateAPI('', {
headers: {
'User-Agent': 'xyz',
'Authorization': `bearer ${token}`

Hacky Way to Get Among Us Running with "Local" Rather than the Central Servers

You will need one user who is the Admin and will run the Local game, and all Users will connect to the Admin's network. Instructions for each user - Admin and User - are below.


  • Download and run ZeroTier on your machine
  • Sign in to the web client (
    • Ensure it's set to private so rando's don't join
  • Share the Network ID with all your users, and when they join click the checkbox in the in the "Auth?" Column
View GetHistoryItemsAsync.cs
var historyItems = await Clipboard.GetHistoryItemsAsync();
if (historyItems.Status == ClipboardHistoryItemsResultStatus.Success)
foreach (var item in historyItems.Items)
// ...
planecore / Coronavirus.js
Last active Apr 7, 2022
Coronavirus Scriptable Widget
View Coronavirus.js
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: deep-green; icon-glyph: user-md;
// change "country" to a value from
const country = "Israel"
const url = `${country}`
const req = new Request(url)
const res = await req.loadJSON()
if (config.runsInWidget) {
ciiqr /
Last active Aug 15, 2022
github actions, repository_dispatch with client_payload
# TODO: replace :token, :user, and :repo
curl -H "Authorization: token :token" \
-H 'Accept: application/vnd.github.everest-preview+json' \
"" \
-d '{"event_type": "awesomeness", "client_payload": {"foo": "bar"}}'
nycdotnet /
Last active Jan 16, 2022
Chocolatey Packages I use

I like to use the following Chocolatey packages

xavierfoucrier /
Last active Aug 4, 2022
GPG signing with Git and Github Desktop

Hi Github users,

You can now signed your commits on Github using at least Git 2.18.0 and Github Desktop 1.6.1.

  1. Generate a GPG key and add it to Github: (if you don't want to type a passphrase on every commit, you need to press "Enter" when the console will prompt you to type a passphrase)

  2. Configure Git properly by editing the .gitconfig file using the command line git config --global --edit in a terminal, then replace YOUR_GITHUB_EMAIL, YOUR_SIGNING_KEY and GPG_BINARY_PATH with your data

bkeating / graphiql-dark-mode.css
Last active May 18, 2022
GraphiQL One Dark Alt (Dark Mode) theme by Ben Keating
View graphiql-dark-mode.css
/* GraphiQL One Dark Alt (Dark Mode) theme by Ben Keating[1]
* Colors taken from Atom's One Dark theme[2]. Add this file to the end of
* your <head> block[3] to override built-in default styling.
* [1].
* [2].
* [3]. e.g. `.../site-packages/graphene_django/templates/graphene/graphiql.html`
smiley /
Last active Aug 2, 2022
How to make an automatic "stream's live" notification for your Discord server

Making an automatic Twitch -> Discord notification (using IFTTT)

So you went live and you want everyone to know. Here's how you do it:

Part 1 - Register on IFTTT

Go to and create an account (if you don't already have one)

Part 2 - Make a Discord Webhook

  • Find the Discord channel in which you would like to send Tweets.
  • In the settings for that channel, find the Webhooks option and create a new webhook. Note: This URL should be kept private. It allows anyone to write messages to that specific channel using that specific URL. Keep it safe!
stubailo / fetch-graphql.js
Created Sep 5, 2017
Call a GraphQL API with fetch
View fetch-graphql.js
fetch('', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ query: '{ posts { title } }' }),
.then(res => res.json())
.then(res => console.log(;