Skip to content

Instantly share code, notes, and snippets.

View mjudeikis's full-sized avatar
👽
Brewing something new...

Mangirdas Judeikis mjudeikis

👽
Brewing something new...
View GitHub Profile
[root@k8s-master ~]# journalctl -u k8s-master -f
-- Logs begin at Sat 2016-06-25 21:58:01 EEST. --
Jul 18 23:00:37 k8s-master sh[1610]: E0718 20:00:37.436151 1619 machine.go:176] failed to get cache information for node 0: open /sys/devices/system/cpu/cpu0/cache: no such file or directory
Jul 18 23:00:40 k8s-master sh[1610]: I0718 20:00:40.188247 1619 manager.go:169] Machine: {NumCores:4 CpuFrequency:1200000 MemoryCapacity:967053312 MachineID:f21c916157f34d369cfa9e81943edba7 SystemUUID:f21c916157f34d369cfa9e81943edba7 BootID:a408bc6b-b32d-4316-b5be-3d0b96abae65 Filesystems:[{Device:/dev/root Capacity:62623985664 Type:vfs Inodes:3891776}] DiskMap:map[9:0:{Name:md0 Major:9 Minor:0 Size:0 Scheduler:none} 179:0:{Name:mmcblk0 Major:179 Minor:0 Size:63864569856 Scheduler:noop}] NetworkDevices:[{Name:eth0 MacAddress:b8:27:eb:15:c6:af Speed:100 Mtu:1500} {Name:wlan0 MacAddress:b8:27:eb:40:93:fa Speed:0 Mtu:1500}] Topology:[{Id:0 Memory:0 Cores:[{Id:0 Threads:[0] Caches:[]} {Id:1 Threads:[1] Caches:[]} {Id:2 Thr
[root@mj react-boilerplate]# npm run setup
> react-boilerplate@3.0.0 presetup /home/mangis/workspace/react-boilerplate
> npm i chalk
react-boilerplate@3.0.0 /home/mangis/workspace/react-boilerplate
├── chalk@1.1.3
├── UNMET PEER DEPENDENCY eslint@3.1.1
├── UNMET PEER DEPENDENCY eslint-plugin-jsx-a11y@2.0.1
└── UNMET PEER DEPENDENCY webpack@2.1.0-beta.15
{
"kind":"List",
"apiVersion":"v1",
"metadata":{
},
"items":[
{
"kind":"DeploymentConfig",
"apiVersion":"v1",
{
"kind":"ImageStream",
"apiVersion":"v1",
"metadata":{
"name":"gotest",
"creationTimestamp":null,
"annotations":{
"openshift.io/image.insecureRepository":"true"
}
},
{
"kind":"DeploymentConfig",
"apiVersion":"v1",
"metadata":{
"name":"gotest",
"creationTimestamp":null
},
"spec":{
"strategy":{
"type":"Rolling",
All my containers with oc cluster up cant reach outside
##### Version
oc v1.3.0
kubernetes v1.3.0+52492b4
features: Basic-Auth GSSAPI Kerberos SPNEGO
Server https://192.168.5.2:8443
openshift v1.3.0
kubernetes v1.3.0+52492b4
Pushing image 172.30.165.192:5000/1000/httpd:latest ...
E1024 09:01:45.094518 1 dockerutil.go:92] push for image 172.30.165.192:5000/1000/httpd:latest failed, will retry in 5s ...
E1024 09:01:50.266594 1 dockerutil.go:92] push for image 172.30.165.192:5000/1000/httpd:latest failed, will retry in 5s ...
E1024 09:01:55.423740 1 dockerutil.go:92] push for image 172.30.165.192:5000/1000/httpd:latest failed, will retry in 5s ...
E1024 09:02:00.655711 1 dockerutil.go:92] push for image 172.30.165.192:5000/1000/httpd:latest failed, will retry in 5s ...
E1024 09:02:05.867581 1 dockerutil.go:92] push for image 172.30.165.192:5000/1000/httpd:latest failed, will retry in 5s ...
E1024 09:02:11.044312 1 dockerutil.go:92] push for image 172.30.165.192:5000/1000/httpd:latest failed, will retry in 5s ...
E1024 09:02:16.293677 1 dockerutil.go:92] push for image 172.30.165.192:5000/1000/httpd:latest failed, will retry in 5s ...
Registry server Address:
Registry server User Name: servi
[mangis@mj cluster]$ ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=56 time=3.64 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=56 time=4.81 ms
64 bytes from 8.8.8.8: icmp_seq=3 ttl=56 time=15.5 ms
64 bytes from 8.8.8.8: icmp_seq=4 ttl=56 time=3.77 ms
64 bytes from 8.8.8.8: icmp_seq=5 ttl=56 time=64.5 ms
64 bytes from 8.8.8.8: icmp_seq=6 ttl=56 time=4.86 ms
64 bytes from 8.8.8.8: icmp_seq=7 ttl=56 time=7.52 ms
^C
Pi (1).cpp Pi.cpp
[root@mj Downloads]# rm -rf Pi*
[root@mj Downloads]# gcc -fopenmp Pi.cpp -o -pi.o
/tmp/ccc6coS1.o: In function `GetDistance(double, double)':
Pi.cpp:(.text+0x7b): undefined reference to `sqrt'
/tmp/ccc6coS1.o: In function `printInfo(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, int, long, long, double, int)':
Pi.cpp:(.text+0xc1): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::c_str() const'
/tmp/ccc6coS1.o: In function `OmpAutoRand(int, int, int)':
Pi.cpp:(.text+0x24e): undefined reference to `std::allocator<char>::allocator()'
Pi.cpp:(.text+0x263): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(char const*, std::allocator<char> const&)'
g++ -fopenmp Pi.cpp -o pi
[root@mj Downloads]# ./pi > ./pi.txt
^C
[root@mj Downloads]# ./pi >> ./pi.txt
cat pi.txt
[root@mj Downloads]# cat pi.txt
current result: 3.50000
current result: 3.50000
current result: 3.50000