Skip to content

Instantly share code, notes, and snippets.

View Dave-Snigier's full-sized avatar

Dave Snigier Dave-Snigier

  • University of Massachusetts
  • Boston, MA
View GitHub Profile
@oscarmorrison
oscarmorrison / IFTTTDate.md
Last active January 29, 2025 23:07
Make IFTTT Date Format play nice with Google Spreadsheets

##Date and Time

=TIMEVALUE(SUBSTITUTE("{{OccurredAt}}"," at ", " ")) + DATEVALUE(SUBSTITUTE("{{OccurredAt}}"," at ", " "))

##Date

=DATEVALUE(SUBSTITUTE("{{OccurredAt}}"," at ", " "))

##Time

@scottstanfield
scottstanfield / convertOM2OSXTags.sh
Created May 2, 2016 03:51 — forked from code2k/convertOM2OSXTags.sh
This script converts OpenMeta to OS X Mavericks tags.
#!/bin/bash
#
# This script converts OpenMeta to OS X Mavericks tags.
#
# http://code2k.net
#
# Copyright © 2013 CODE2K:LABS. All Rights Reserved.
mdfind "kMDItemOMUserTags == *" -onlyin "." | while IFS= read -r file; do
echo "$file"
@Brainiarc7
Brainiarc7 / ffmppeg-advanced-playbook-nvenc-and-libav-and-vaapi.md
Last active September 2, 2024 14:37
FFMpeg's playbook: Advanced encoding options with hardware-accelerated acceleration for both NVIDIA NVENC's and Intel's VAAPI-based hardware encoders in both ffmpeg and libav.

FFmpeg and libav's playbook: Advanced encoding options with hardware-based acceleration, NVIDIA's NVENC and Intel's VAAPI-based encoder.

Hello guys,

Continuing from this guide to building ffmpeg and libav with NVENC and VAAPI enabled, this snippet will cover advanced options that you can use with ffmpeg and libav on both NVENC and VAAPI hardware-based encoders.

For ffmpeg:

@ruario
ruario / auto-unpack-dmgs.md
Last active December 8, 2024 21:43
A folder action to automount and extract downloaded .dmg files on macOS

This Automator folder action will monitor the Downloads folder for new dmg files and automatically unpack them into a similarly named sub directory. It requires no interaction from the user. On completion a notification will display.

As mounting and extraction happens in the background you save time, since you can continue to work. In addition with all disk image contents pre-copied to disk, moving any .app to "/Applications" is pretty much instant (or in the case of Vivaldi, you could run it in standalone mode directly from the created extraction folder).

To setup

  • Open the Automator.app (part of macOS) and create a new "Folder Action"
  • Choose the Downloads folder
  • Drag "Run Shell Script" (found under "Utilities") into the actions area
  • Change the Pass Input drop down to "as arguments"
@bsodmike
bsodmike / README.md
Last active April 30, 2025 11:27
OC Nvidia GTX1070s in Ubuntu 16.04LTS for Ethereum mining

Following mining and findings performed on EVGA GeForce GTX 1070 SC GAMING Black Edition Graphics Card cards.

First run nvidia-xconfig --enable-all-gpus then set about editing the xorg.conf file to correctly set the Coolbits option.

# /etc/X11/xorg.conf
Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
@samirreza
samirreza / changeRemoteUrl.sh
Created April 19, 2019 13:16
Shell script to bulk change git remote url
directoryContainingAllRepos="" # directory containing all git repo's
oldGitRemoteServer="" # current remote server url for example gitlab.com
newGitRemoteServer="" # new remote server url for example git.example.com
cd $directoryContainingAllRepos
find * -maxdepth 0 -type d \( ! -name . \) -print | while read dir
do
cd $dir
if [ -d ".git" ]
then
remoteUrl1="$(git config --get remote.origin.url)"
@taneltm
taneltm / README.md
Last active April 12, 2024 08:47
Obsidian timeline CSS snippet

Obsidian timeline

This is a CSS snippet for Obsidian.md to create a timeline in your daily notes.

To include the timeline in your daily note, add the following to your daily note template:

<div data-timeline="{{date:DDD}}"></div>

Preview can be found here: https://codepen.io/taneltm/pen/eYyeyBe