Skip to content

Instantly share code, notes, and snippets.

@tijme
tijme / FileZillaXML.php
Last active June 28, 2017 15:14
Manage FileZilla servers using PHP
<?php
/**
* FileZillaXML library
*
* ### DESCRIPTION
*
* With the FileZillaXML library you can easily create an XML with servers and folders that can be
* imported into FileZilla.
*
@chris-hailstorm
chris-hailstorm / clean_mac_files_from_zip.sh
Created December 2, 2012 01:32 — forked from 9re/clean_mac_files_from_zip.sh
remove __MACOSX and .DS_Store files from zip files
##
## zip command itself can clean it up for you
Can be fixed after the fact by `zip -d filename.zip __MACOSX/\*`
@JamieMason
JamieMason / watch.rb
Created September 26, 2012 08:16
Watch a folder for changes to files, then reload Chrome
#!/usr/bin/env ruby
require 'tempfile'
require 'fileutils'
# Signals
trap("SIGINT") { exit }
# Setup
TARGET_FOLDER = ARGV[0]
TARGET_URL = ARGV[1]
@nils-werner
nils-werner / ReadDirAssistant.js
Created June 8, 2011 10:44
Simple FileIO Service for WebOS
var ReadDirAssistant = function() {
}
ReadDirAssistant.prototype.run = function(future) {
var fs = IMPORTS.require("fs");
var path = this.controller.args.path;
fs.readdir(path, function(err, files) { future.result = { path: path, files: files }; });
}