Skip to content

Instantly share code, notes, and snippets.

View eliziario's full-sized avatar

Marcos Eliziario Santos eliziario

View GitHub Profile
sudo apt-get -y install build-essential autoconf automake cmake libtool git nasm checkinstall
checkinstall
mkdir ffmpegtemp
cd ffmpegtemp
mkdir aom
cd aom
git clone https://aomedia.googlesource.com/aom
cmake aom/ -DBUILD_SHARED_LIBS=1
public static String testableHtml(
PageData pageData,
boolean includeSuiteSetup
) throws Exception {
WikiPage wikiPage = pageData.getWikiPage();
StringBuffer buffer = new StringBuffer();
if (pageData.hasAttribute("Test")) {
if (includeSuiteSetup) {
WikiPage suiteSetup =
PageCrawlerImpl.getInheritedPage(
@eliziario
eliziario / install_python.ps1
Last active October 25, 2017 17:49 — forked from carlosfunk/install_python.ps1
Powershell scripts for setting up a Python environment under Windows
$save_dir=Resolve-Path ~/Downloads
$project_dir = "C:\Projects"
$virtualenv_dir = $project_dir + "\virtualenvs"
$client = New-Object System.Net.WebClient
function InstallPythonExe($installer) {
$Arguments = @()
$Arguments += "InstallAllUsers=`"1`""
$Arguments += "DefaultCustomTargetDir=C:\\Python"
using System;
using System.Data;
using System.Data.SqlClient;
using System.Data.SqlTypes;
using Microsoft.SqlServer.Server;
using System.Linq;
using System.Numerics;
using System.Runtime.InteropServices;
using System.Collections.Generic;
using MathNet.Numerics.LinearAlgebra;
@eliziario
eliziario / gist:1697ce582e8e8459e7f7
Created March 12, 2015 13:04
mac os hard link - useful for backuping things with services like google drive or onedrive
#include <unistd.h>
#include <stdio.h>
int main(int argc, char* argv[]) {
if (argc != 3) {
fprintf(stderr,"Use: hlink <src_dir> <target_dir>\n");
return 1;
}
int ret = link(argv[1],argv[2]);
if (ret != 0)
### Keybase proof
I hereby claim:
* I am eliziario on github.
* I am marcos (https://keybase.io/marcos) on keybase.
* I have a public key whose fingerprint is A2CE 6126 CE78 248D 98D8 D430 05BB D4FE 0BE4 B611
To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am eliziario on github.
  • I am marcos (https://keybase.io/marcos) on keybase.
  • I have a public key whose fingerprint is 9CBE D213 534D 50D9 421D 3FD3 5604 E46A 8942 1750

To claim this, I am signing this object:

@eliziario
eliziario / nginx.conf
Created December 20, 2013 12:55
Nginx conf for unicorn with ssl, spdy
user www;
worker_processes 2;
worker_priority -5;
timer_resolution 100ms;
error_log logs/nginx.error.log;
events {
use epoll;
worker_connections 2048;