Skip to content

Instantly share code, notes, and snippets.

@AndrewHazelden
AndrewHazelden / Copy to Clipboard.lua
Created March 13, 2017 09:47
A Blackmagic Design Fusion LUA script example to copy items into the clipboard using xclip (Linux), clip (Windows), and pbcopy (macOS)
------------------------------------------------------------------------------
-- Copy to Clipboard Script for Fusion - 2017-03-13 06.27 AM
-- by Andrew Hazelden
-- www.andrewhazelden.com
-- [email protected]
------------------------------------------------------------------------------
-- Display the extra debugging verbosity detail in the console log
printStatus = true
-- printStatus = false
@jhochwald
jhochwald / Blcoker_update.sh
Created January 25, 2017 07:49
Cron to update the IPTables Blocker
#!/usr/bin/env bash
# Cron to update the IPTables Blocker
# Needs some further tweaks and improvements
# Define some defaults
IPTABLES='/sbin/iptables'
BLOCKLIST='/tmp/enatec_blocked.txt'
# Get the latest List
@veggiemonk
veggiemonk / .gitconfig
Last active April 14, 2025 17:24
simple zshrc config file with Oh-My-ZSH
[user]
name = Julien Bisconti
email = ******
[core]
excludesfile = ~/.gitignore
pager = diff-so-fancy | less --tabs=1,5 -R
editor = /usr/bin/vim
[alias]
wow = log --all --graph --decorate --oneline --simplify-by-decoration
@santisbon
santisbon / Update-branch.md
Last active February 11, 2025 07:43
Deploying from #Git branches adds flexibility. Bring your feature branch up to date with master and deploy it to make sure everything works. If everything looks good the branch can be merged. Otherwise, you can deploy your master branch to return production to its stable state.

Updating a feature branch

First we'll update your local master branch. Go to your local project and check out the branch you want to merge into (your local master branch)

$ git checkout master

Fetch the remote, bringing the branches and their commits from the remote repository. You can use the -p, --prune option to delete any remote-tracking references that no longer exist in the remote. Commits to master will be stored in a local branch, remotes/origin/master.

@arturogutierrez
arturogutierrez / mongodb_ssl_with_letsencrypt.md
Created March 28, 2016 14:37 — forked from leommoore/mongodb_ssl_with_letsencrypt.md
MongoDB 3.2.x SSL with Letsencrypt

#MongoDB 3.2.x SSL with Letsencrypt Letsencrypt is an initative which aims to increase the use of encryption for websites. It basically allows people to apply for free certificates provided that they prove the they control the requested domain. We will look at the what is needed to secure your MongoDB installation. For more details on setting up a MongoDB server see MongoDB 3.2.x.

##Set the hostname We sould to set the hostname to match the name of the certificate we are going to optain.

sudo hostname mongo0.example.com

Then update the hostname file to set the server name permanently.

@ulve
ulve / du.ps1
Last active May 9, 2025 15:38
du-h in powershell
param([string]$Directory)
get-childitem $Directory |
% { $f = $_ ;
get-childitem -r $_.FullName |
measure-object -property length -sum |
select @{Name="Namn";Expression={$f}},@{Name="Sum (Mb)"; Expression={"{0:N1}" -f ($_.sum / 1MB)}}}
@AndrewHazelden
AndrewHazelden / FusionFileSelection.lua
Created February 11, 2016 12:05
A Blackmagic Design Fusion LUA script example to check the current comp's flow area for the currently selected Loader/Saver nodes.
-- Find out if we are running Fusion 6, 7, or 8
local fu_major_version = math.floor(tonumber(eyeon._VERSION))
-- Find out the current operating system platform. The platform local variable should be set to either "Windows", "Mac", or "Linux".
local platform = ""
if string.find(fusion:MapPath("Fusion:\\"), "Program Files", 1) then
-- Check if the OS is Windows by searching for the Program Files folder
platform = "Windows"
elseif string.find(fusion:MapPath("Fusion:\\"), "PROGRA~1", 1) then
@rickowski
rickowski / randomfilerenamer.py
Last active December 16, 2022 14:09
Python script to rename every file in a given folder to a random name, including the original file extension.
#!/usr/bin/python3
# Copyright © 2015 Ole Rickowski
# This work is free. You can redistribute it and/or modify it under the
# terms of the Do What The Fuck You Want To Public License, Version 2,
# as published by Sam Hocevar. See http://www.wtfpl.net/ for more details.
import os,sys,random,string
# Print help
@touilleMan
touilleMan / multiReplace.lua
Last active January 9, 2020 11:45
Aegisub script to do multiple replacements a once on the sub
--[[
multiReplace is (c) 2015 by Emmanuel Leblond <[email protected]>.
It is licensed to you under the terms of the WTFPLv2 (see below).
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2004 Sam Hocevar <[email protected]>
@psyrendust
psyrendust / org.samba.nmbd.plist
Last active October 18, 2020 13:22
LaunchDaemons for fixing Samba for OS X Mavericks.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>org.samba.nmbd</string>
<key>OnDemand</key>
<false/>
<key>ProgramArguments</key>
<array>