Docker шпаргалка =)
установка
sudo nano /etc/apt/sources.list.d/docker.list
Добавляем (для Ubuntu Wily 15.10)
package main | |
import ( | |
"testing" | |
) | |
type bar struct { | |
} | |
func (b *bar) foo() {} |
package main | |
import ( | |
"fmt" | |
"io/ioutil" | |
"net" | |
"net/http" | |
"time" | |
) |
package main | |
import ( | |
"encoding/hex" | |
"fmt" | |
"math/rand" | |
"time" | |
) |
#include <stdio.h> | |
#include <unistd.h> | |
#include <pthread.h> | |
#include <stdlib.h> | |
#include <string.h> | |
typedef union { | |
char str[4]; | |
struct { | |
char c1; |
<?php | |
/* | |
* Создает блок для с привязкой к плану по $plan_id и $position_number для вставки в xml | |
*/ | |
use Integration\ZGR\Helper\PlanParser; | |
use Integration\ZGR\Model\ZgrExternalPlanItems; | |
use Integration\ZGR\Model\ZgrExternalPlans; |
<?php | |
class seaBot | |
{ | |
private $map = []; | |
private $true_cell = []; | |
private $game_id = ''; | |
public function __construct($game_id) | |
{ | |
$this->game_id = $game_id; | |
if (!$this->load()) { |
nobody:x:65534:65534:nobody:/nonexistent:/bin/sh | |
libuuid:x:100:101::/var/lib/libuuid:/bin/sh | |
vagrant:x:1000:1000::/home/vagrant:/bin/sh | |
aerospike:x:999:1001::/opt/aerospike:/bin/sh | |
nginx:x:101:103:nginx user,,,:/nonexistent:/bin/false | |
root@b89373304c85:~# grep -qw ^vagrant /etc/passwd | |
root@b89373304c85:~# grep -q ^vagrant /etc/passwd | |
root@b89373304c85:~# grep -w ^vagrant /etc/passwd | |
vagrant:x:1000:1000::/home/vagrant:/bin/sh | |
root@b89373304c85:~# grep ^vagrant /etc/passwd |
sudo nano /etc/apt/sources.list.d/docker.list
Добавляем (для Ubuntu Wily 15.10)
#!/bin/bash | |
mkdir /tmp/bison | |
cd /tmp/bison | |
apt-get update | |
apt-get install -y build-essential m4 | |
wget http://ftp.gnu.org/gnu/bison/bison-2.7.tar.gz | |
tar -xvf bison-2.7.tar.gz |