Skip to content

Instantly share code, notes, and snippets.

Avatar

Yuji Kiriki yujikiriki

View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am yujikiriki on github.
  • I am yujikiriki (https://keybase.io/yujikiriki) on keybase.
  • I have a public key ASCzjlVMePkNkA2V5fyIpkxTQKC7uL3Ofn1bv3zrzlDiIQo

To claim this, I am signing this object:

View ubuntu101.md

Remove all nvidia packages

apt-get remove --purge nvidia*
apt-get autoremove
apt-get autoclean

Install nvidia driver dependencies

@yujikiriki
yujikiriki / grub
Created Nov 7, 2015
/etc/default/grub
View grub
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
# info -f grub -n 'Simple configuration'
GRUB_DEFAULT=0
#GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=2
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
View gist:bb0dc6a047b4647f1b27
Verifying that +yujikiriki is my blockchain ID. https://onename.com/yujikiriki
@yujikiriki
yujikiriki / jeff-son.scala
Created Oct 22, 2015
Tuple of Options filter with shapeless
View jeff-son.scala
import shapeless.syntax.std.tuple._
val optionTuple = (Some(Event("Jeff", 1)), None, None, Some(Event("Son", 1)))
println(s"optionTuple = $optionTuple")
val out = optionTuple.filter[Some[Event]]
println(s"out = $out")
case class Event(a: String, b: Int)
View aurora-cmd.md

zookeeper

./zookeeper/bin/zkServer.sh start-foreground ./zookeeper/bin/zkCli.sh -server 127.0.0.1:2181

mesos

sudo ./mesos/build/bin/mesos-master.sh --ip=127.0.0.1 --work_dir=/tmp/mesos --zk=zk://127.0.0.1:2181/mesos/master --advertise_ip=127.0.0.1 --advertise_port=5050 --quorum=1 sudo ./mesos/build/bin/mesos-slave.sh --master=127.0.0.1:5050

marathon

git submodule update --init --recursive

@yujikiriki
yujikiriki / scalabooks.md
Last active Oct 13, 2015
Bibliografía recomendada para aprender Scala, por niveles.
@yujikiriki
yujikiriki / Dockerfile
Created Sep 17, 2015
Mi primer aporte a SparkMDE. Con mucho cariño.
View Dockerfile
FROM nimmis/java:openjdk-8-jdk
MAINTAINER yujikiriki
# expose spark ports
EXPOSE 8080
EXPOSE 7077
EXPOSE 8081
EXPOSE 6066
WORKDIR /usr/local
View scheduler.sh
#!/usr/bin/env bash
# Location where aurora-scheduler.zip was unpacked.
AURORA_SCHEDULER_HOME=/home/yuji/git/aurora/dist/distributions/aurora-scheduler-0.9.0
# Flags that control the behavior of the JVM.
JAVA_OPTS=(
-server
-Xmx2g
-Xms2g
-Djava.library.path=/home/yuji/git/mesos/build/src/.libs/
View aurorastderr.log
I0911 15:50:48.986191 32028 fetcher.cpp:414] Fetcher Info: {"cache_directory":"\/tmp\/mesos\/fetch\/slaves\/20150911-154834-16777343-5050-31458-S0\/root","items":[{"action":"BYPASS_CACHE","uri":{"executable":true,"extract":true,"value":"\/dev\/null"}}],"sandbox_directory":"\/tmp\/mesos\/slaves\/20150911-154834-16777343-5050-31458-S0\/frameworks\/20150911-154834-16777343-5050-31458-0000\/executors\/thermos-1442004648901-www-data-devel-test-0-dca008b2-bd0c-46d7-9559-f6dac1c626fc\/runs\/fb5ec314-0585-4a98-a62e-3461d93a57b9","user":"root"}
I0911 15:50:48.989202 32028 fetcher.cpp:369] Fetching URI '/dev/null'
I0911 15:50:48.989217 32028 fetcher.cpp:243] Fetching directly into the sandbox directory
I0911 15:50:48.989236 32028 fetcher.cpp:180] Fetching URI '/dev/null'
I0911 15:50:48.989259 32028 fetcher.cpp:160] Copying resource with command:cp '/dev/null' '/tmp/mesos/slaves/20150911-154834-16777343-5050-31458-S0/frameworks/20150911-154834-16777343-5050-31458-0000/executors/thermos-1442004648901-www-data-devel-test-