Skip to content

Instantly share code, notes, and snippets.

View MadMcCrow's full-sized avatar
🤖
Learning Godot Engine

PERARD-G N. MadMcCrow

🤖
Learning Godot Engine
View GitHub Profile
@MadMcCrow
MadMcCrow / Compressor.py
Created June 28, 2023 15:31
Compress Everything !
#!/usr/bin/env python
# zip a file
def zip (pathstr) :
import zipfile, pathlib, shutil
dirpath = pathlib.Path(pathstr)
zip_file = f"{dirpath.stem}.zip"
original_size = 0
compressed_size = 0
# write to zip
@MadMcCrow
MadMcCrow / convert-vids.py
Created December 11, 2022 13:35
A nice tool to convert and optimize your videos
#!/usr/bin/python
# A simple script to compress videos and gain space on your drives
# TODO :
# Add a way to set parameters
# work with a Video-class to simplify parsing
import os
import shlex
import datetime
import time
@MadMcCrow
MadMcCrow / configuration.nix
Created July 2, 2022 17:50
NixOS install configuration
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).
{ config, pkgs, ... }:
{
nix = {
package = pkgs.nixUnstable;
extraOptions = ''
@MadMcCrow
MadMcCrow / cue_to_flac.py
Last active December 22, 2020 17:35 — forked from Theldus/cue_to_flac.py
CUE splitter using ffmpeg (to flac)
# read first agument (after python cue_to_flac)
# D is our actual disk data read from cue file
d=[]
try :
from sys import argv
cue_file = argv[1]
except:
cue_file = 'file.cue'
@MadMcCrow
MadMcCrow / .config
Created July 21, 2020 15:38
Linux kernel config file Chromebook Pro
#
# Config file for Samsung Chromebook Pro (Caroline)
# Linux/x86 5.8.0-rc6 Kernel Configuration
#
CONFIG_CC_VERSION_TEXT="gcc (GCC) 10.1.0"
CONFIG_CC_IS_GCC=y
CONFIG_GCC_VERSION=100100
CONFIG_LD_VERSION=234000000
CONFIG_CLANG_VERSION=0
CONFIG_CC_CAN_LINK=y
@MadMcCrow
MadMcCrow / fix_dotnet35_steamapp.sh
Created April 25, 2020 17:39
Script to fix dotnet35 for steamapps. may not work with all apps
#!/bin/bash
# First sanity check
if [ -z "$1" ]
then
echo "No app name supplied will exit"
exit
fi
if [ -z "$2" ]