Skip to content

Instantly share code, notes, and snippets.

View mwermuth's full-sized avatar

Marcus Wermuth mwermuth

View GitHub Profile
@vgonda
vgonda / buffer-start.sh
Created August 2, 2019 13:47
Getting my day started at Buffer
#!/bin/bash
echo "Getting started for the day"
echo "Opening Chrome"
/usr/bin/open -a "/Applications/Google Chrome.app" 'https://messages.android.com/' 'https://hangouts.google.com/' 'https://buffer.slack.com' 'https://mail.google.com' 'https://buffer.atlassian.net/secure/RapidBoard.jspa?rapidView=63' 'https://threads.com' 'https://console.firebase.google.com/u/1/project/buffer-publish-mobile/crashlytics/app/android:org.buffer.android/issues?state=open&time=last-seven-days&type=crash' 'https://reply.buffer.com/open/1'
echo "Opening Slack"
/usr/bin/open -a "Slack"
@chriseidhof
chriseidhof / LICENSE
Last active July 16, 2019 13:14
A tiny networking library
Copyright 2015 Chris Eidhof
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHE
@ma11hew28
ma11hew28 / find-duplicate-files.rb
Last active January 25, 2022 18:48
Ruby script that finds identical (md5) files in all subdirectories (recursive)
# This Ruby script (regardless of where it's located on the file system) recur-
# sively lists all duplicate files in the direcotry in which it's executed.
require 'digest/md5'
hash = {}
Dir.glob('**/*', File::FNM_DOTMATCH).each do |f|
next if File.directory?(f)
key = Digest::MD5.hexdigest(IO.read(f)).to_sym