Skip to content

Instantly share code, notes, and snippets.

View derblub's full-sized avatar
✌️
I might be interested in cooperation.

Daniel Kurdoghlian derblub

✌️
I might be interested in cooperation.
View GitHub Profile
#!/usr/bin/env bash
# WP-CLI Back up Script to Amazon S3
# Source: https://www.jonathan.vc
# Author: Jonathan Dingman
# Adapted from Mike at WP Bullet
#define local path for backups
BACKUPPATH=/tmp/backups
#path to WordPress installations
@ncoder-1
ncoder-1 / gopro_hevc_to_dnxhd.sh
Last active January 10, 2023 22:21
Convert GoPro Hero7/Hero8 videos (mainly HEVC) to DNxHD and AAC to PCM which can be read with DaVinci Resolve 16 in Linux
#!/usr/bin/env bash
#
# Convert GoPro Hero7/Hero8 videos (mainly HEVC) to DNxHD and AAC to PCM which can be read with DaVinci Resolve 16 in Linux
# Also keeps GoPro's metadata
#
# Required dependency: ffmpeg 4.1
# To do: per-stream error handling, actually use datastream count and more efficient parsing of ffprobe
#
# Free for the taking.
#
@paulgregg
paulgregg / README.md
Last active July 7, 2024 03:29
Converting a gitlab export to simple git repo

Converting a gitlab export to simple git repo

Gitlab exports a tar.gz file which contains a file called project.bundle. We can convert this file into a normal git repo using the following steps:

Extract the project.bundle file

$ tar xvfz GitLabExport.gz
@vegard
vegard / primes.py
Created September 21, 2018 07:51
Prime factorisation diagram
# -*- coding: utf-8 -*-
#
# Author: Vegard Nossum <[email protected]>
import math
import os
import sys
import cairo
@spuniun
spuniun / A_Facebook_Group_Notification_Script_for_Taultulli.md
Last active July 10, 2020 16:25
Tautulli notification script for Facebook Groups

Since GraphAPI was revoked, no apps are getting approved and posting via email was shutdown, I pulled together a Tautulli notification python script for Facebook Groups using HTTP POST.

@nimag42
nimag42 / rc.lua
Last active June 6, 2022 09:45
AwesomeWM binding to configure positions of Monitors
-- This snippet is a code I wrote to configure the position of monitors with AwesomeWM
-- Usage :
-- Press your Display button (or whatever you binded it to)
-- Popup will show the name of a connected monitor
-- Press an arrow key or Display button to set this monitor in this direction relatively to your main monitor, (display for same position)
-- It will continue until you have configured all connected monitors
-- the name of your main screen as shown in xrandr
main_screen = "eDP1"
@tadly
tadly / rofi-emoji.sh
Last active June 14, 2024 16:40
Rofi emoji picker
#!/usr/bin/env bash
#
# Use rofi to pick emoji because that's what this
# century is about apparently...
#
# Requirements:
# rofi, xsel, xdotool, curl, xmllint
#
# Usage:
# 1. Download all emoji
@josephfinlayson
josephfinlayson / ofxconverter.ipynb
Created January 3, 2018 15:29
Convert N26 CSV to OFX
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
anonymous
anonymous / -
Created September 4, 2017 15:54
#!/usr/bin/env python
# select a colour with wxPython's
# wx.ColourDialog(parent, data)
# source: Dietrich 20nov2008
# Description: Python color wheel.
import wx
class MyPanel(wx.Panel):
def __init__(self, parent):
wx.Panel.__init__(self, parent, wx.ID_ANY)
@loyalvares
loyalvares / DeleteOverlayButton.js
Last active November 20, 2021 11:53
This is a custom library to add a Delete Button ( x mark) to a Google Maps v3 Circle or Polygon when drawn. This is the working JSFiddle link [ https://jsfiddle.net/foobarbazz/vn763fu7/ ] to see it in action.
/**
* author: Loy Alvares
* This utility was written to handle deletion of circles and polygons in Google Maps V3.
*
* Also thanks to Chris Veness for the distance calculation formulae from pointA to pointB
* ( Latitude/Longitude spherical geodesy formulae & scripts )
at http://www.movable-type.co.uk/scripts/latlong.html
(c) Chris Veness 2002-2010
*/