Skip to content

Instantly share code, notes, and snippets.

View Cyklan's full-sized avatar
🏠
stay at home coder

Cyklan

🏠
stay at home coder
  • Germany
View GitHub Profile
@Cyklan
Cyklan / theme.json
Created March 23, 2021 15:11
Oh My Posh Theme
{
"final_space": true,
"blocks": [
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"type": "session",
"style": "diamond",
@Cyklan
Cyklan / Stitch.ps1
Created June 8, 2020 15:24
Stitch multiple video-files together in batches of n
param([int]$episodes_per_file)
$file_count = ( Get-ChildItem .\input | Measure-Object).Count;
$batches = $file_count / $episodes_per_file;
$files = Get-ChildItem .\input |
Foreach-Object {$_.Name}
for ($i = 0; $i -lt $batches; $i++) {
$file_text = 'ffmpeg -i "concat:'
for ($j = 0; $j -lt $episodes_per_file; $j++) {
$file = $files[$i * $episodes_per_file + $j]
@Cyklan
Cyklan / requirements.txt
Last active January 4, 2020 15:23
Twist.moe Download Script
twistdl
pushbullet.py
@Cyklan
Cyklan / ping.py
Created December 6, 2019 11:05
Ping an IP and log its availability
import datetime
import os
import platform
import sys
import threading
def how_to_use():
print("Usage: python3 ping.py [ip adress] [log|csv] [interval]\n")
print("\tip adress = server adress to ping\n")