Skip to content

Instantly share code, notes, and snippets.

View Nattefrost's full-sized avatar

Damien Escande Nattefrost

View GitHub Profile
@Nattefrost
Nattefrost / conkyrc
Last active June 20, 2017 10:47
basic conkyrc config
use_xft yes
xftfont Gnu Unifont Mono:size=14
xftalpha 0.8
update_interval 1.0
total_run_times 0
own_window yes
own_window_transparent yes
own_window_argb_visual yes
own_window_type normal
own_window_class conky-semi
@Nattefrost
Nattefrost / convert_to_16_9.py
Last active May 7, 2017 18:58
convert_to_16_9
# requires ffmpeg
# possible CLI argument -r to remove files from input_dir
import os
from colorama import *
import time
import argparse
YELLOW = Fore.YELLOW
@Nattefrost
Nattefrost / update_schemas.py
Last active May 19, 2017 15:07
SQL updater script
#!/usr/bin/env python3
import os
import sys
import subprocess
import argparse
import psycopg2
from app_config import cfg
from colorama import Fore, Back, Style
@Nattefrost
Nattefrost / config.fish
Last active July 2, 2017 18:06
Fish functions
# Fish functions
# for vagrant, postgresql and more on openSUSE
function fish_greeting
set_color 92FF7F
set os_version (cat /etc/os-release)
set os_v (echo $os_version | sed 's/\(NAME="openSUSE Leap" \).*/\1/') # catches
set os_v (echo $os_v | sed 's/^.*NAME="//') # removes stuff before
set os_v (echo $os_v | rev | cut -c 3- | rev) # removes last char "
set fish_version (fish -v)
echo $fish_version on $os_v
@Nattefrost
Nattefrost / tomorrow.lua
Last active November 20, 2017 13:10
ZerobraneStudio Lua IDE colour theme
-- Add this to the table 'colors' in /opt/zbstudio/cfg/tomorrow.lua
Nattefrost = { -- Nattefrost
Background = H'01000c', -- very dark blue
CurrentLine = H'293739',
Selection = H'49483E',
Foreground = H'F8F8F2', -- super-light-gray (everything else)
Comment = H'374DCC', -- bright green (comments)
Red = H'c2ddea', -- red(numbers)
Orange = H'AE81FF', -- lavendar?? (numbers)
## General
set number # Show line numbers
set linebreak # Break lines at word (requires Wrap lines)
set showbreak=+++ # Wrap-broken line prefix
set textwidth=100 # Line wrap (number of cols)
set showmatch # Highlight matching brace
set errorbells # Beep or flash screen on errors
set visualbell # Use visual bell (no beeping)
set hlsearch # Highlight all search results
@Nattefrost
Nattefrost / kill_process.ps1
Created December 4, 2018 17:13
killing a process
# call with :
# powershell.exe -file .\kill_process.ps1 'Dwarf Fortress'
param(
[string]$p_name = ""
)
$procid=get-process "$p_name" | select -expand id
Stop-Process -id $procid
@Nattefrost
Nattefrost / filebrowser_service.sh
Created May 8, 2021 16:17
bash script for Filebrowser on FreeBSD
# bash script for FreeBSD that acts as a daemon supporting
# stop/start/restart for the Filebrowser program
# - https://github.com/filebrowser/filebrowser
# drop in /usr/local/bin/ and chmod +x, then use as filebrowser_service stop|start|restart
workdir=/home/nattefrost/
pid_file=/tmp/filebrowser.pid
log_file=/tmp/filebrowser.log