Skip to content

Instantly share code, notes, and snippets.

View FilipChalupa's full-sized avatar
💭
I'm walking here

Filip Chalupa FilipChalupa

💭
I'm walking here
View GitHub Profile
@FilipChalupa
FilipChalupa / index.html
Created October 19, 2020 18:04
Položky
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Nákupní seznam</title>
<script src="script.js" defer></script>
</head>
<body>
<div id="app"></div>
@FilipChalupa
FilipChalupa / Česká republika-lau1.txt
Created October 1, 2020 14:38
Česká republika LAU1 (NUTS 4)
Benešov | CZ0201
Beroun | CZ0202
Blansko | CZ0641
Břeclav | CZ0644
Brno-město | CZ0642
Brno-venkov | CZ0643
Bruntál | CZ0801
Česká Lípa | CZ0511
České Budějovice | CZ0311
Český Krumlov | CZ0312
@FilipChalupa
FilipChalupa / Slovensko-lau1.txt
Created October 1, 2020 14:38
Slovensko LAU1 (NUTS 4)
Bánovce nad Bebravou | SK0221
Banská Bystrica | SK0321
Banská Štiavnica | SK0322
Bardejov | SK0411
Bratislava I | SK0101
Bratislava II | SK0102
Bratislava III | SK0103
Bratislava IV | SK0104
Bratislava V | SK0105
Brezno | SK0323

Keybase proof

I hereby claim:

  • I am FilipChalupa on github.
  • I am onset (https://keybase.io/onset) on keybase.
  • I have a public key whose fingerprint is C424 C1F6 E959 A672 5861 0EB9 BA16 A7E7 B665 0802

To claim this, I am signing this object:

Write-Host "Synchronizing your docker time."
$principal = New-Object Security.Principal.WindowsPrincipal([Security.Principal.WindowsIdentity]::GetCurrent())
if ($principal.IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)) {
$name = (Get-VMIntegrationService -VMName DockerDesktopVM | Where-Object { $_.Id.StartsWith("Microsoft:") -and $_.Id.EndsWith("\2497F4DE-E9FA-4204-80E4-4B75C46419C0") }).Name # "Time Synchronization" for English Windows
Get-VMIntegrationService -VMName DockerDesktopVM -Name $name | Disable-VMIntegrationService
Get-VMIntegrationService -VMName DockerDesktopVM -Name $name | Enable-VMIntegrationService
echo $name
Write-Host "Time synced!"
Read-Host -Prompt "Press Enter to exit."
@FilipChalupa
FilipChalupa / resize.sh
Last active January 30, 2021 19:06
SVG to webmanifest PNGs
#!/bin/bash
directory="$PWD/public/manifest-icon/"
icon="icon.svg"
iconMaskable="icon-maskable.svg"
sizes=(32 36 48 72 96 128 144 192 256 384 512 1024 2048)
for i in "${sizes[@]}"; do
echo Resizing $i

Keybase proof

I hereby claim:

  • I am Onset on github.
  • I am onset (https://keybase.io/onset) on keybase.
  • I have a public key whose fingerprint is 0509 A669 916F E84A 870D 14C7 FF86 ACC2 8468 4ECE

To claim this, I am signing this object:

#include <stdio.h>
#include <stdlib.h>
#define BOARD_SIZE 8
char **new_board(const int size) {
int i, k;
char **board;
board = (char**) malloc(sizeof(char*) * size);