Install LXC:
apt-get install linux-hwe-generic # update to 3.13 on Precise
apt-add-repository ppa:ubuntu-lxc/stable
apt-get update
apt-get install lxc lxc-templates cgmanager cgroup-lite
reboot
def run_script(script, stdin=None): | |
"""Returns (stdout, stderr), raises error on non-zero return code""" | |
import subprocess | |
# Note: by using a list here (['bash', ...]) you avoid quoting issues, as the | |
# arguments are passed in exactly this order (spaces, quotes, and newlines won't | |
# cause problems): | |
proc = subprocess.Popen(['bash', '-c', script], | |
stdout=subprocess.PIPE, stderr=subprocess.PIPE, | |
stdin=subprocess.PIPE) | |
stdout, stderr = proc.communicate() |
#!/bin/bash | |
#Arguments | |
export NOVO_LOCALE="EN" | |
#Constants | |
export DEPENDS_CMD=( ) | |
export EXIT_CODE_OK=0 | |
export EXIT_CODE_DEPENDENCIES_FAILED=-1 | |
export UI_HORIZONTAL_RULER="================================================================================" |
#!/bin/bash | |
#Argument parsing | |
#Cross-platform: GNU getopt (Linux, Macports), MacOSX getopt | |
#http://stackoverflow.com/questions/2721946/cross-platform-getopt-for-a-shell-script | |
PROG=`basename $0` | |
getopt -T > /dev/null | |
if [ $? -eq 4 ]; then | |
# GNU enhanced getopt is available |
using System; | |
using System.Net; | |
using System.IO; | |
namespace FlussonicApiTest | |
{ | |
class MainClass | |
{ | |
public static void Main (string[] args) | |
{ |
using UnityEngine; | |
using System.Collections; | |
public class MouseLookScript : MonoBehaviour { | |
[HideInInspector] | |
public float xRotation; | |
[HideInInspector] | |
public float yRotation; | |
public float lookSensitivity = 5; |
<html><head> | |
<meta http-equiv="content-type" content="text/html; charset=UTF-8"> | |
<!-- This example based on this article: http://flash.flowplayer.org/demos/plugins/streaming/bwcheck-hds-live.html --> | |
<title>Flowplayer HDS Example</title> | |
<style> | |
body{ | |
width:982px; | |
margin:50px auto; | |
font-family:sans-serif; |
import java.util.ArrayList; | |
import java.util.List; | |
public class Main { | |
public static void main(String[] args) { | |
БатяМолоток g = ()-> System.out.println("Привет"); | |
NickVolynkin.welcome(g); | |
} | |
} |
import javax.swing.*; | |
import java.awt.*; | |
import java.awt.event.ActionEvent; | |
import java.awt.event.ActionListener; | |
import java.util.concurrent.BlockingQueue; | |
import java.util.concurrent.LinkedBlockingQueue; | |
class ParallelPrinter { | |
final BlockingQueue<String> messageQueue; |
olegchir@portal:~/git/rasp-spect$ make | |
gcc -Wall -Werror -Wextra -D_XOPEN_SOURCE=501 -DCUR_PATH=\"/home/olegchir/git/rasp-spect\" -c -o test.o test.c | |
test.c:422:3: error: initialization makes integer from pointer without a cast [-Werror] | |
0, NULL, 0, 0 | |
^ | |
test.c:422:3: error: (near initialization for ‘protocols[0].protocol_index’) [-Werror] | |
test.c:422:3: error: excess elements in struct initializer [-Werror] | |
test.c:422:3: error: (near initialization for ‘protocols[0]’) [-Werror] | |
test.c:423:2: error: excess elements in struct initializer [-Werror] | |
}, |