Skip to content

Instantly share code, notes, and snippets.

View damsonn's full-sized avatar

Damien Dormal damsonn

View GitHub Profile
### Keybase proof
I hereby claim:
* I am damsonn on github.
* I am damsonn (https://keybase.io/damsonn) on keybase.
* I have a public key ASC_aUnup0rSPzPXl2SwNMyjq1_8BYj-BCyZ2CsozccZKgo
To claim this, I am signing this object:
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
@damsonn
damsonn / mkv_to_264.sh
Created November 28, 2015 13:17
convert all the MKVs in the current directory to standard x264
#!/bin/bash
# convert all the .mkv in the current directory to standard x264
for ff in *.mkv;
do
filename=$(basename $ff)
extension=${filename##*.}
filename=${filename%.*}
ffmpeg -i "${ff}" -c:v libx264 -crf 23 -preset medium -map 0 -c:a copy "${filename}.h264.mkv"
done
@damsonn
damsonn / clipboard.html
Created May 15, 2015 06:18
ZeroClipboard and Bootstrap
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.4/css/bootstrap.css"/>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.4/js/bootstrap.min.js"></script>
<script src="ZeroClipboard.js"></script>
<style>
.btn-clipboard {
position: relative;