Skip to content

Instantly share code, notes, and snippets.

💭
I'm walking here

Filip Chalupa FilipChalupa

💭
I'm walking here
Block or report user

Report or block FilipChalupa

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View keybase.md

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:

View sync_docker_time.ps1
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
Created Aug 23, 2019
SVG to webmanifest PNGs
View resize.sh
#!/bin/bash
original="original.svg"
sizes=(36 48 72 96 128 144 192 256 384 512 1024 2048)
for i in "${sizes[@]}"; do
echo Resizing $i
name=$i"x"$i".png"
inkscape.exe -z $original --export-width $i -e $name
done
View keybase.md

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:

View Šachovnice
#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);
You can’t perform that action at this time.