Skip to content

Instantly share code, notes, and snippets.

@yujikiriki
yujikiriki / trm.sh
Created October 5, 2023 02:13
BanRep TRM
curl \
-H 'cookie: ORA_BIPS_NQID=260ft5kcl05t64sqmmib62tkh00umdu4fu2siqc23bhk7dq2' \
-X POST 'https://totoro.banrep.gov.co/analytics/saw.dll?Go' \
-d 'ViewID=o%3Ago%7Er%3Areport&Action=Download&SearchID=6afbu6pgl37fsrgraj1ibakrku&Style=Alta&Options=rdf&ViewState=u7om4o1gcqgpnliqean258iojm&ItemName=Cambiaria+-+TRM&path=%2Fshared%2FSeries+Estad%C3%ADsticas_T%2FWAP%2FCambiaria+-+TRM&Format=csv&Extension=.xml&bNotSaveCommand=true&DownloadId=1696469121019&clientStateXml=%3Csawst%3AenvState+xmlns%3Asawst%3D%22com.siebel.analytics.web%2Fstate%2Fv1%22+xmlns%3Axsi%3D%22http%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema-instance%22+xmlVersion%3D%22200811100%22%3E%3Csawst%3Acontainer+cid%3D%22o%3Ago%22+xsi%3Atype%3D%22sawst%3Aunknown%22%3E%3Csawst%3Acontainer+cid%3D%22r%3Areport%22+xsi%3Atype%3D%22sawst%3Areport%22+links%3D%22bsfrd%22+defaultView%3D%22compoundView%211%22+searchId%3D%226afbu6pgl37fsrgraj1ibakrku%22+folder%3D%22%2Fshared%2FSeries+Estad%C3%ADsticas_T%2FWAP%22+itemName%3D%22Cambiaria+-+TRM%22%2F%3E%3C%

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:

@yujikiriki
yujikiriki / ubuntu101.md
Last active November 9, 2015 19:18
Ubuntu101

Remove all nvidia packages

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

Install nvidia driver dependencies

@yujikiriki
yujikiriki / grub
Created November 7, 2015 18:20
/etc/default/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`
Verifying that +yujikiriki is my blockchain ID. https://onename.com/yujikiriki
@yujikiriki
yujikiriki / jeff-son.scala
Created October 22, 2015 23:33
Tuple of Options filter with shapeless
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)
@yujikiriki
yujikiriki / aurora-cmd.md
Created October 19, 2015 12:44
Aurora notes

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 October 13, 2015 04:03
Bibliografía recomendada para aprender Scala, por niveles.
@yujikiriki
yujikiriki / Dockerfile
Created September 17, 2015 13:14
Mi primer aporte a SparkMDE. Con mucho cariño.
FROM nimmis/java:openjdk-8-jdk
MAINTAINER yujikiriki
# expose spark ports
EXPOSE 8080
EXPOSE 7077
EXPOSE 8081
EXPOSE 6066
WORKDIR /usr/local
@yujikiriki
yujikiriki / scheduler.sh
Created September 11, 2015 20:58
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/