Skip to content

Instantly share code, notes, and snippets.

View mft14's full-sized avatar
💭
I may be slow to respond.

Karim Kiel mft14

💭
I may be slow to respond.
View GitHub Profile
@mft14
mft14 / outlook_attachment_grabber.py
Last active September 18, 2023 13:38
Outlook Attachment grabber
#Outlook Attachment grabber Script by Kiel (Metal Fortress) 24.08.2022 --- mft14.github.com
# Update 18.09.2023 = Added some exceptions and changed filename creation as some mails have bad filenames
# How to use
# - 1: Put in as many file extensions as you need in the "attach_filter" array. Pattern looks like this ".pfd" , ".jpg" -- seperate with comma !
# - 2: Configure a path, where your attachmentUnknown exceptions should be saved (change output_dir)
# - Additionally rename the log file
#
# The log.html file will give you an overview of what has been automatically grabbed. Under the HTML table, you can also see a small result section.
# If your emails have special characters, it will skip creating that folder. To notify you, check the error.txt, that will be created.
# This script is for debian based systems. Tested with = Debian 11 / Ubuntu 20.04 / Linux Mint 21
# Anyway, use with care -- I recommend this after a fresh installation, if possible
import os
import getpass
print("Simple Samba Setup, made by mft14 - mft14.github.com (22.08.22)")
print("---------------------------")
print("This script creates two config files, that then will be moved into the samba directory. ")
print("You can create quickly file sharing through your computers in the same network. There is no password encryption.")
print("If you leave the questions blank, it will be filled with standard infos, that should generally work.")
@mft14
mft14 / .vimrc
Last active January 20, 2023 09:15
Neu mit allem Müll draus
set history=200
filetype plugin on
filetype indent on
set autoread
au FocusGained,BufEnter * checktime
" Komma Funktionen
let mapleader = ","
map <silent> <leader><cr> :noh<cr> " remove highlight
nnoremap <leader>s :%s///gc<Left><Left><Left><Left>
@mft14
mft14 / reaper-install.sh
Last active November 16, 2022 22:02
A install script to install Reaper from Cockos more rapidly
#Variables
version='669' #Change current Version here
desktop=$(xdg-user-dir DESKTOP) #Get desktop name
#Path to your license file
license=~/Sync/Config/reaper-license.rk
#My preferable location
mkdir ~/Apps/ ;
cd ~/Apps/ ;
@mft14
mft14 / mp3grabbo.sh
Last active March 4, 2024 20:49
mp3grabbo
#!/bin/bash
output=~/ #IMPORTANT: your path where the mp3 will be stored, for example ~/Music
makefolderfromalbum=true # change to false if you do not want to create folders based on the album tag name
normalizeAudio=true # change to false if you do not want to normalize the audio
# Requirements = sudo apt install mp3gain sox libsox-fmt-mp3 ffmpeg id3v2 python3 -y; pip3 install --upgrade yt-dlp;
#Variables
#
# Updated on :fulldate
# 2023-12-16//6 - 21h52 - sox trim working within a certain area
@mft14
mft14 / init.vim
Last active October 12, 2023 13:34
set history=200
filetype plugin on
filetype indent on
set autoread
au FocusGained,BufEnter * checktime
" Komma Funktionen
let mapleader = ","
map <silent> <leader><cr> :noh<cr> " remove highlight
nnoremap <leader>R :put=range(0,)<Left>