As of July 2018, Raspbian does not yet include the latest Python release, Python 3.7.4. This means we will have to build it ourselves, and here is how to do it.
- Install the required build-tools (some might already be installed on your system).
#include <stdint.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
// munged from https://github.com/simontime/Resead | |
namespace sead | |
{ | |
class Random | |
{ |
command | args | description |
---|---|---|
status | [verbose] |
get current WPA/EAPOL/EAP status |
ifname | get current interface name | |
ping | pings wpa_supplicant | |
relog | re-open log-file (allow rolling logs) | |
note | <text> |
add a note to wpa_supplicant debug log |
mib | get MIB variables (dot1x, dot11) | |
help | [command] |
show usage help |
interface | [ifname] |
show interfaces/select interface |
// Get all users | |
var url = "http://localhost:8080/api/v1/users"; | |
var xhr = new XMLHttpRequest() | |
xhr.open('GET', url, true) | |
xhr.onload = function () { | |
var users = JSON.parse(xhr.responseText); | |
if (xhr.readyState == 4 && xhr.status == "200") { | |
console.table(users); | |
} else { | |
console.error(users); |
/* | |
* Generic hashmap manipulation functions | |
* SEE: http://elliottback.com/wp/hashmap-implementation-in-c/ | |
*/ | |
#ifndef __HASHMAP_H__ | |
#define __HASHMAP_H__ | |
#define MAP_MISSING -3 /* No such element */ | |
#define MAP_FULL -2 /* Hashmap is full */ |
# extract ILSVRC2012 without killing your SSD | |
import tarfile | |
import os | |
import sys | |
def mkdir(x): | |
try: | |
os.makedirs(x) | |
except OSError, e: |
Since the official ShareLaTeX documentation is primarily written with Ubuntu 12.04 LTS in mind, I tried to re-build the provided .deb from scratch using Ubuntu 14.04 TLS with the least amount of non-standard or non-packaged software.
Here are all the steps that were required (with sudo since Ubuntu doesn't want you to be root
).
First, install lots of packages - note that no additional repositories are required! (Dependencies):
$ sudo apt-get update
$ sudo apt-get install git build-essential curl python-software-properties zlib1g-dev zip unzip
$ sudo apt-get install ruby-dev
$ sudo apt-get install nodejs npm
With Node you can write very fast JavaScript programs serverside. It's pretty easy to install Node, code your program, and run it. But > how do you make it run nicely in the background like a true server?
/etc/init/
$ sudo vim yourapp.conf
$ sudo start yourapp
$ sudo stop yourapp
Edit /etc/network/interfaces
:
# interfaces(5) file used by ifup(8) and ifdown(8)
# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d
auto wlan0
iface wlan0 inet dhcp
wireless-essid MyHomeWifi