Skip to content

Instantly share code, notes, and snippets.

View tassoevan's full-sized avatar
🏠
Working from home

Tasso Evangelista tassoevan

🏠
Working from home
View GitHub Profile
@tassoevan
tassoevan / ffmpeg.md
Created September 17, 2020 22:18 — forked from dvlden/ffmpeg.md
Convert video files to MP4 through FFMPEG

This is my personal list of functions that I wrote for converting mov files to mp4!

Command Flags

Flag Options Description
-codec:a libfaac, libfdk_aac, libvorbis Audio Codec
-quality best, good, realtime Video Quality
-b:a 128k, 192k, 256k, 320k Audio Bitrate
-codec:v mpeg4, libx264, libvpx-vp9 Video Codec
@tassoevan
tassoevan / dual_boot_setup.md
Created April 17, 2016 01:19 — forked from saltlakeryan/dual_boot_setup.md
Family PC Windows / Linux Dual Boot Setup

Poor Man's SteadyState (or DeepFreeze or ReturnNil or ...)

This is the configuration I have used to set up home PCs to be resistant to the kinds of bugs and malware and spyware that seem to get installed over time on a windows PC. This is in combination with using limited accounts for everyone who uses the PC.

The quick overview is:

  • Partition hard disk into 3 partitions:
@tassoevan
tassoevan / session-life-cycle.md
Last active September 15, 2015 14:38 — forked from mindplay-dk/session-life-cycle.md
Complete overview of the PHP SessionHandler life-cycle

This page provides a full overview of PHP's SessionHandler life-cycle - this was generated by a set of test-scripts, in order to provide an exact overview of when and what you can expect will be called in your custom SessionHandler implementation.

Each example is a separate script being run by a client with cookies enabled.

To the left, you can see the function being called in your script, and to the right, you can see the resulting calls being made to a custom session-handler registed using session_set_save_handler().

@tassoevan
tassoevan / json_enconde_jp.php
Last active August 29, 2015 14:27 — forked from hayatravis/json_enconde_jp.php
json_encode($array,JSON_UNESCAPED_UNICODE) For PHP5.3. Except json encoding japanese For php5.3. php5.3のjson_encodeで日本語をエンコードさせない関数。
function json_encode_jp($array) {
return preg_replace_callback(
'/\\\\u([0-9a-zA-Z]{4})/',
function ($matches) {
return mb_convert_encoding(pack('H*',$matches[1]),'UTF-8','UTF-16');
},
json_encode($array)
);
}
@tassoevan
tassoevan / kiosk.py
Last active August 29, 2015 14:23 — forked from benfairless/kiosk.py
#!/usr/bin/env python
import pygtk
import gtk
import webkit
import sys
class Browser:
def __init__(self):
body {
-webkit-font-smoothing: antialiased;
-moz-font-smoothing: antialiased;
-ms-font-smoothing: antialiased;
font-smoothing: antialiased;
-moz-text-shadow: 0 0 1px rgba(0, 0, 0, 0.01);
-ms-text-shadow: 0 0 1px rgba(0, 0, 0, 0.01);
text-shadow: 0 0 1px rgba(0, 0, 0, 0.01);