Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View jamesray1's full-sized avatar

James Ray jamesray1

  • Sydney, Australia
View GitHub Profile
@jamesray1
jamesray1 / docker-installing-viper
Created December 12, 2017 00:41
Commands before running `docker run -it viper:1 /bin/bash`
(viper-venv) james@james-Streacom:~/viper$ docker build https://github.com/ethereum/viper.git -t viper:1
The program 'docker' is currently not installed. You can install it by typing:
sudo apt install docker.io
(viper-venv) james@james-Streacom:~/viper$ sudo apt install docker.io
[sudo] password for james:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
bridge-utils cgroupfs-mount ubuntu-fan
{
"address": "1kdy2Ds8dbd6rg3oHy2TouwfYFjtJ3Pag",
"address_index": 12005246,
"background-color": "#FFF",
"clone_root": "template-new",
"cloned_from": "1HeLLo4uzjaLetFx6NH3PMwFP3qbRbTf3D",
"description": "",
"files": {
"index.html": {
"sha512": "d09673b02682be2bb8eccb39944234c8bcfeb497813790ec1d7de2103c706a00",
# Bought here: https://rover.ebay.com/rover/0/e11051.m43.l1123/7?euid=e37cba6f833f48758143a03348892b46&bu=44260427166&loc=http%3A%2F%2Fwww.ebay.com.au%2Fulk%2Fitm%2F112568140958&sojTags=bu=bu
james@james-Streacom:/media/james/RTL8814/Linux$ ./install.sh
bash: ./install.sh: Permission denied
james@james-Streacom:/media/james/RTL8814/Linux$ sudo ./install.sh
[sudo] password for james:
sudo: ./install.sh: command not found
james@james-Streacom:/media/james/RTL8814/Linux$ sudo bash ./install.sh
./install.sh: line 8: $'\r': command not found
##################################################
Realtek Wi-Fi driver Auto installation script
@jamesray1
jamesray1 / CMakeError.log
Last active January 9, 2018 08:39
Ethminer
Determining if the pthread_create exist failed with the following output:
Change Dir: /home/james/ethminer/build/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_8079e/fast"
/usr/bin/make -f CMakeFiles/cmTC_8079e.dir/build.make CMakeFiles/cmTC_8079e.dir/build
make[1]: Entering directory '/home/james/ethminer/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_8079e.dir/CheckSymbolExists.c.o
/home/james/.linuxbrew/bin/cc -o CMakeFiles/cmTC_8079e.dir/CheckSymbolExists.c.o -c /home/james/ethminer/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c
Linking C executable cmTC_8079e
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_8079e.dir/link.txt --verbose=1
james@james-Streacom:~/RTL8811AU/linux$ ./install.sh
##################################################
Realtek Wi-Fi driver Auto installation script
Novembor, 21 2011 v1.1.0
##################################################
Decompress the driver source tar ball:
rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51.tar.gz
rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51/
rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51/core/
rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51/core/rtw_mp.c
This file has been truncated, but you can view the full file.
Jan 19 00:07:17 james-Streacom kernel: [52772.610086] audit: type=1400 audit(1516280837.487:52060): apparmor="DENIED" operation="open" profile="snap.akasha.akasha" name="/sys/bus/usb/devices/" pid=31923 comm="geth" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
Jan 19 00:07:17 james-Streacom kernel: [52772.610290] audit: type=1400 audit(1516280837.487:52061): apparmor="DENIED" operation="open" profile="snap.akasha.akasha" name="/sys/bus/usb/devices/" pid=31923 comm="geth" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
Jan 19 00:07:18 james-Streacom kernel: [52773.610416] audit: type=1400 audit(1516280838.487:52062): apparmor="DENIED" operation="open" profile="snap.akasha.akasha" name="/sys/bus/usb/devices/" pid=31923 comm="geth" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
Jan 19 00:07:18 james-Streacom kernel: [52773.610516] audit: type=1400 audit(1516280838.488:52063): apparmor="DENIED" operation="open" profile="snap.akasha.akasha" name="/sys/bus/usb/devices/" pid=31923 comm="geth" reque
$ grep -i 'apparmor.*denied' /var/log/syslog | sort -uk12,12
Jan 19 12:11:44 james-Streacom kernel: [ 1243.518218] audit: type=1400 audit(1516324304.691:131): apparmor="DENIED" operation="create" profile="/usr/bin/evince//sanitized_helper" pid=4894 comm="WebKitWebProces" family="netlink" sock_type="raw" protocol=0 requested_mask="create" denied_mask="create"
Jan 19 11:01:55 james-Streacom kernel: [ 3443.867198] audit: type=1400 audit(1516320115.513:125): apparmor="DENIED" operation="exec" profile="/usr/bin/evince" name="/bin/dash" pid=7738 comm="evince" requested_mask="x" denied_mask="x" fsuid=1000 ouid=0
Jan 19 12:59:09 james-Streacom kernel: [ 4088.301201] audit: type=1400 audit(1516327149.446:146): apparmor="DENIED" operation="file_mmap" profile="snap.akasha.akasha" name="/usr/share/fonts/truetype/ubuntu-font-family/Ubuntu-R.ttf" pid=6997 comm="akasha" requested_mask="m" denied_mask="m" fsuid=1000 ouid=0
Jan 19 10:47:22 james-Streacom kernel: [ 2571.053151] audit: type=1400 audit(1516319242.706:123): appar
james@james-Streacom:~/pyethereum/sharding$ sudo docker build .
Sending build context to Docker daemon 711.7 kB
Step 1/24 : FROM ubuntu:trusty
trusty: Pulling from library/ubuntu
c954d15f947c: Pull complete
c3688624ef2b: Pull complete
848fe4263b3b: Pull complete
23b4459d3b04: Pull complete
36ab3b56c8f1: Pull complete
Digest: sha256:e1c8bff470c771c6e86d3166607e2c74e6986b05bf339784a9cab70e0e03c7c3
@jamesray1
jamesray1 / gist:74fa10b3f9f78f2c3c9ace21ada317bb
Created April 5, 2018 01:33
Parity bash partial output
james@james-Streacom  ~  parity --warp-barrier 5362706
2018-04-05 02:22:23 Starting Parity/v1.11.0-unstable-060205ab2-20180403/x86_64-linux-gnu/rustc1.25.0
2018-04-05 02:22:23 Keys path /home/james/.local/share/io.parity.ethereum/keys/Foundation
2018-04-05 02:22:23 DB path /home/james/.local/share/io.parity.ethereum/chains/ethereum/db/906a34e69aec8c0d
2018-04-05 02:22:23 Path to dapps /home/james/.local/share/io.parity.ethereum/dapps
2018-04-05 02:22:23 State DB configuration: fast
2018-04-05 02:22:23 Operating mode: active
2018-04-05 02:22:23 Configured for Foundation using Ethash engine
2018-04-05 02:22:24 Updated conversion rate to Ξ1 = US$375.07 (12696042 wei/gas)
2018-04-05 02:22:33 Public node URL: enode://9ef16ec635015d4a0609e333956f3ea1281f8c704f25d2d651f719a407ed5abf3b748a3e280474b23fbc13f43ec36972709fe34e400762a394332be07baf3852@10.0.0.67:30303
@jamesray1
jamesray1 / git_submodules.md
Created April 5, 2018 13:06 — forked from gitaarik/git_submodules.md
Git Submodules basic explanation

Git Submodules basic explanation

Why submodules?

In Git you can add a submodule to a repository. This is basically a repository embedded in your main repository. This can be very useful. A couple of advantages of using submodules:

  • You can separate the code into different repositories.