Skip to content

Instantly share code, notes, and snippets.

@TemoPacheco
TemoPacheco / LXD-cheat-sheet.md
Created February 16, 2022 13:08 — forked from berndbausch/LXD-cheat-sheet.md
LXD cheat sheet

Useful LXD commands

Summarized from https://stgraber.org/2016/03/19/lxd-2-0-your-first-lxd-container-312/.

Interestingly, the LXD command line client is named.... lxc!

List available containers

lxc image list ubuntu:        # ubuntu: is officially supported image source
lxc image list images:        # images: is an unsupported source
lxc image alias list images:  # lists user-friendly names
@TemoPacheco
TemoPacheco / keybase.md
Created September 24, 2017 23:29
keybase.md

Keybase proof

I hereby claim:

  • I am temopacheco on github.
  • I am temo (https://keybase.io/temo) on keybase.
  • I have a public key ASCUpI55d5_7axCi-YHBnLTGJsDWNgfnNbA5153XxyrGhwo

To claim this, I am signing this object:

@TemoPacheco
TemoPacheco / ffmpeg-html5
Created May 15, 2017 12:55 — forked from yellowled/ffmpeg-html5
Convert videos to proper formats for HTML5 video on Linux shell using ffmpeg. Will probably convert this to a bash script later, but for the time being, here's some examples. Not sure there have actually sensible dimensions and bitrates for web video.
# webm
ffmpeg -i IN -f webm -vcodec libvpx -acodec libvorbis -ab 128000 -crf 22 -s 640x360 OUT.webm
# mp4
ffmpeg -i IN -acodec aac -strict experimental -ac 2 -ab 128k -vcodec libx264 -vpre slow -f mp4 -crf 22 -s 640x360 OUT.mp4
# ogg (if you want to support older Firefox)
ffmpeg2theora IN -o OUT.ogv -x 640 -y 360 --videoquality 5 --audioquality 0 --frontend
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width">
<title>Tutorial Push</title>
<script>
document.addEventListener("deviceready", deviceReady, false);
function deviceReady() {
var push = PushNotification.init({
android: {
@TemoPacheco
TemoPacheco / index.pl
Created April 11, 2017 16:14 — forked from dvinciguerra/index.pl
Mojolicious::Lite and Ajax Example
#!/usr/bin/env perl
use DateTime;
use Mojolicious::Lite;
get '/' => 'index';
get '/service/datetime' => sub {
my $self = shift;
my $dt = DateTime->now;
@TemoPacheco
TemoPacheco / limbo.fw
Created July 7, 2014 00:34
Funnelweb limbo TeX macros for formatting the weaved code based on the original funnelweb macros
@! Limbo. Tex macros for formatting the weaved code
@! based on the funnelweb macros.
\language4
%\input epsf
%\input latin1
\font\tit=cmssbx10
\font\tut=cmssq8
@! Macros usados en \TeX{}
@TemoPacheco
TemoPacheco / header.fw
Last active August 29, 2015 14:03
Funnelweb code for initial header
@!---------------------------------------!
@! Comment !
@!---------------------------------------!
@t vskip 40 mm
@t title titlefont centre "Program name"
@t vskip 10 mm
@t title smalltitlefont centre "Author name"
@t vskip 20 mm
@t table_of_contents
@p maximum_input_line_length = 300