Skip to content

Instantly share code, notes, and snippets.

@ppoffice
ppoffice / README.md
Last active April 30, 2024 20:48
Install Visual Studio Code (actually code-server) on Android
  1. Install Termux, an Android terminal emulator that provides a Linux execution environment and various tools.

  2. Update system packages in Termux:

    $ pkg update -y
@ricardodantas
ricardodantas / dbf2mysql.php
Created December 4, 2012 03:57
dbf2mysql.php
<?php
// sample to use: php dbf2mysql.php > {filename}.sql
$db = false;
if($argc >= 2) {
$table = 'table';
$iconvFrom = '866';
$iconvTo = 'UTF-8';
@ziahamza
ziahamza / server.js
Created September 18, 2012 17:37
trivial/simple nodejs document viewer, uses unoconv to convert docs and allows to preview pdf, docx and all libre office supported extentions right from the browser
var http = require('http'),
fs = require('fs'),
path = require('path'),
exec = require('child_process').exec;
function pipeDoc(inputPath, finalType, stream) {
var finalPath = path.dirname(inputPath)
+ "/" + path.basename(inputPath).split('.')[0] + ".html";
var convCommand = 'unoconv -f ' + finalType + " " + inputPath;
exec(convCommand,function(err, stdout, stderr) {