Skip to content

Instantly share code, notes, and snippets.


Miro Mannino miromannino

View GitHub Profile
miromannino /
Last active Feb 7, 2021
Download Wistia videos in a Teachable course to be able to watch offline

Go to your teachable course and show the page where videos are.

Now open your Browser's console. For example in Chrome you can press F12 to open it.

Paste the following code in the console

$('.attachment-wistia-player').each(function () { console.log($(this).attr('data-wistia-id')); });

Press enter to retrieve all videos IDs that are present in the opened page. For example:

miromannino /
Created May 16, 2020
Convert .mov or .mp4 to .gif

How to convert .mov or .mp4 to .gif using the command line


brew install ffmpeg
brew install gifsicle

How to convert

miromannino /
Created Mar 16, 2020
Compile monetdb in macos from source
miromannino /
Last active May 8, 2020
Convert a SID to String with Java
public class SIDConverter {
public static String convertSidToStringSid(byte[] sid) {
int offset, size;
// sid[0] is the Revision, we allow only version 1, because it's the
// only that exists right now.
if (sid[0] != 1)
throw new IllegalArgumentException("SID revision must be 1");
miromannino / new_gist_file.css
Created Aug 23, 2016
View new_gist_file.css
.glyphicon-refresh-animate {
-animation: spin .7s infinite linear;
-webkit-animation: spin2 .7s infinite linear;
@-webkit-keyframes spin2 {
from { -webkit-transform: rotate(0deg);}
to { -webkit-transform: rotate(360deg);}
miromannino / info.txt
Created Aug 22, 2016
Home End Keys in Apple keyboard
View info.txt
One option is to create ~/Library/KeyBindings/ and save a property list like this as ~/Library/KeyBindings/DefaultKeyBinding.dict:
"\UF729" = moveToBeginningOfLine:;
"\UF72B" = moveToEndOfLine:;
"$\UF729" = moveToBeginningOfLineAndModifySelection:;
"$\UF72B" = moveToEndOfLineAndModifySelection:;
Quit and reopen applications to apply the changes. Note that DefaultKeyBinding.dict is not supported by some applications like Xcode or Firefox.
miromannino /
Last active Aug 22, 2016
Disable all osx animations
# Disable some animations
# ———————————————————————
# opening and closing windows and popovers
defaults write -g NSAutomaticWindowAnimationsEnabled -bool false
# smooth scrolling
defaults write -g NSScrollAnimationEnabled -bool false
# showing and hiding sheets, resizing preference windows, zooming windows
miromannino /
Created Dec 15, 2015 — forked from lopezjurip/
Write to NTFS on OSX Yosemite and El Capitan

Install Homebrew:

ruby -e "$(curl -fsSL"

Update Homebrew formulae:

brew update
View index.html
<!DOCTYPE html>
<html ng-app="PaperAngularExample">
<script type="text/javascript" src="bower_components/angular/angular.js"></script>
<script type="text/javascript" src="bower_components/paper/dist/paper-full.js"></script>
var app = angular.module('PaperAngularExample', []);
app.directive('draw', function() {
return {
miromannino /
Last active Aug 13, 2019 — forked from naholyr/
Sample /etc/init.d script

Sample service script for debian/ubuntu

Look at LSB init scripts for more information.


Copy to /etc/init.d:

# replace "$YOUR_SERVICE_NAME" with your service's name