NOTE: the content is out-of-date. All development is moved to the https://github.com/yurydelendik/wasmception
# locations, e.g.
export WORKDIR=~/llvmwasm; mkdir -p $WORKDIR
export INSTALLDIR=$WORKDIR
#!/usr/bin/env python | |
import csv | |
import urllib | |
import zipfile | |
import os | |
link = 'http://geolite.maxmind.com/download/geoip/database/GeoLite2-Country-CSV.zip' | |
csv1 = 'GeoLite2-Country-Blocks-IPv4.csv' | |
csv2 = 'GeoLite2-Country-Locations-en.csv' |
NOTE: the content is out-of-date. All development is moved to the https://github.com/yurydelendik/wasmception
# locations, e.g.
export WORKDIR=~/llvmwasm; mkdir -p $WORKDIR
export INSTALLDIR=$WORKDIR
After reading [this Ars Technica article][1], I decided that I wanted to start using btrfs on my home fileserver. It had been running for a few years with an mdadm raid-10 array, formatted with ext4, holding about 3.4 TB of data. I figured I would take advantage of some of the special capabilities of btrfs to perform the conversion in place. After some research, I formed my basic plan.
The goal of this is to have an easily-scannable reference for the most common syntax idioms in JavaScript and Rust so that programmers most comfortable with JavaScript can quickly get through the syntax differences and feel like they could read and write basic Rust programs.
What do you think? Does this meet its goal? If not, why not?
JavaScript:
package util | |
{ | |
import flash.display.DisplayObject; | |
import flash.events.Event; | |
import flash.events.EventDispatcher; | |
import flash.events.TimerEvent; | |
import flash.utils.getTimer; | |
/** | |
* This is the timer class based on getTimer(). |
This installation is going to require 2 servers one acts as kerberos KDC server
and the other machine is going to be client. Lets assume the FQDN's are (here
cw.com
is the domain name, make a note of the domain name here):
Important: Make sure that both systems have their hostnames properly set and both systems have the hostnames and IP addresses of both systems in
function yuv2canvas(yuv, width, height, canvas) { | |
/* | |
canvas.width = width; | |
canvas.height = height; | |
*/ | |
context = canvas.getContext("2d"); | |
output = context.createImageData(width, height); | |
outputData = output.data; | |
yOffset = 0; |
[Unit] | |
Description=Keeps a tunnel to 'remote.example.com' open | |
After=network.target | |
[Service] | |
User=autossh | |
# -p [PORT] | |
# -l [user] | |
# -M 0 --> no monitoring | |
# -N Just open the connection and do nothing (not interactive) |
#!/bin/bash | |
wget() { | |
local PROTO=${1%%://*} | |
local NOPROTO=${1#*://} | |
local HOST=${NOPROTO%%/*} | |
local PORT=${HOST#*:} | |
[ "${HOST}" = "${PORT}" ] && PORT=80 | |
HOST=${HOST%:*} | |
local URI=${NOPROTO#*/} |