This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# First sanity check | |
if [ -z "$1" ] | |
then | |
echo "No app name supplied will exit" | |
exit | |
fi | |
if [ -z "$2" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 = '' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |