Skip to content

Instantly share code, notes, and snippets.

@a0s
a0s / brew-cask-cleanup.rb
Last active November 5, 2019 14:14
Clean (move to trash) old brew cask versions
#!ruby
# Requirements:
# brew install trash
casks_path = '/opt/homebrew-cask/Caskroom'
class Version < Array
def initialize s
super(s.split('.').map { |e| e.to_i })
@PiiXiieeS
PiiXiieeS / Insert a progress bar to Powerpoint presentation .md
Last active January 17, 2024 13:12
Insert a progress bar to Powerpoint presentation

Intro

To view the progress of a Powerpoint presentation, a progress bar can be displayed at the bottom of the slide show.

How to proceed

Once the slideshow is complete, go to Tools > Macro > Visual Basic Editor.

In the new window, select Insert > Module and copy this text in the blank page:

Sub AddProgressBar()
    On Error Resume Next
@font-face {
font-family: 'EntypoRegular';
src: url('font/entypo.eot');
src: url('font/entypo.eot?#iefix') format('embedded-opentype'),
url('font/entypo.woff') format('woff'),
url('font/entypo.ttf') format('truetype'),
url('font/entypo.svg#EntypoRegular') format('svg');
font-weight: normal;
font-style: normal;
}
@sergejmueller
sergejmueller / gist:4050524
Created November 10, 2012 09:12
Terminal-Befehl zur Entfernung doppelter Einträge im Menü "Öffnen mit..." unter Mac OS X. Danach den Finder neu starten.
/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain user