Skip to content

Instantly share code, notes, and snippets.

bash-5.0# tail -f /app/gitea/log/gitea.log
2019/08/01 00:24:32 ...xorm/xorm/session.go:845:saveLastSQL() [I] [SQL] BEGIN TRANSACTION
2019/08/01 00:24:32 .../xorm/session_raw.go:143:queryBytes() [I] [SQL] PRAGMA index_list(`org_user`)
2019/08/01 00:24:32 .../xorm/session_raw.go:143:queryBytes() [I] [SQL] PRAGMA index_info(`IDX_org_user_is_public`)
2019/08/01 00:24:32 .../xorm/session_raw.go:143:queryBytes() [I] [SQL] PRAGMA index_info(`IDX_org_user_org_id`)
2019/08/01 00:24:32 .../xorm/session_raw.go:143:queryBytes() [I] [SQL] PRAGMA index_info(`IDX_org_user_uid`)
2019/08/01 00:24:32 .../xorm/session_raw.go:143:queryBytes() [I] [SQL] PRAGMA index_info(`UQE_org_user_S`)
2019/08/01 00:24:32 .../xorm/session_raw.go:143:queryBytes() [I] [SQL] SELECT sql FROM sqlite_master WHERE tbl_name='org_user' and type='table'
2019/08/01 00:24:32 .../xorm/session_raw.go:226:Exec() [I] [SQL] CREATE TABLE `new_org_user_new` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `uid` INTEGER NULL, `org_id` INTEGER NULL, `is_public` I
System.TypeInitializationException: The type initializer for 'Microsoft.Xna.Framework.Storage.StorageDevice' threw an exception. ---> System.ArgumentException: The drive name does not exist
Parameter name: driveName
at System.IO.DriveInfo..ctor (System.String driveName) [0x000b7] in <4bafc978642b4fd6b6c08368db3d2bdc>:0
at Microsoft.Xna.Framework.Storage.StorageDevice..cctor () [0x00014] in <597dfa787fad4804a60b7be5123409e3>:0
--- End of inner exception stack trace ---
at Timespinner.GameStateManagement.ScreenManager.ScreenManager.LoadContent () [0x000c7] in <0876b8f1eb054a1d89085512db3a8aa5>:0
at Microsoft.Xna.Framework.DrawableGameComponent.Initialize () [0x0000f] in <597dfa787fad4804a60b7be5123409e3>:0
at Timespinner.GameStateManagement.ScreenManager.ScreenManager.Initialize () [0x00022] in <0876b8f1eb054a1d89085512db3a8aa5>:0
at Microsoft.Xna.Framework.Game.Initialize () [0x00012] in <597dfa787fad4804a60b7be5123409e3>:0
at Timespinner.TimespinnerGame.Initialize () [0x0001d] in <0876b
@netvl
netvl / keybase.md
Created October 5, 2017 18:08
Keybase

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@netvl
netvl / README.md
Created May 17, 2017 04:28
Spark environment in Docker

This environment is based on the following Spark image: https://hub.docker.com/r/p7hb/docker-spark/

Similarly to the Hadoop environment, this one also requires an external network before launching:

% docker network create spark

This environment also contains a DNS proxy container; see the link above for more information.

The compose file below has traces of making it work together with the Hadoop environment. These attempts were unsuccessful, so feel free to either continue them or to remove them altogether.

@netvl
netvl / Dockerfile
Last active March 5, 2019 07:59
Hadoop environment in Docker
# Dockerfile for a DNS proxy
FROM alpine:latest
RUN apk add --no-cache dnsmasq
EXPOSE 53/udp
CMD ip a && dnsmasq -u root --no-daemon
package test;
import akka.NotUsed;
import akka.actor.ActorSystem;
import akka.stream.ActorMaterializer;
import akka.stream.Materializer;
import akka.stream.javadsl.*;
import akka.util.ByteString;
import scala.runtime.BoxedUnit;
object Example extends App {
implicit val actorSystem: ActorSystem = ActorSystem()
implicit val materializer: Materializer = ActorMaterializer()
implicit val executionContext: ExecutionContext = actorSystem.dispatcher
def startServer(): Unit = scala.concurrent.blocking {
val handler = Framing.delimiter(ByteString("\n"), Int.MaxValue)
.map(_.reverse)
.map(_ ++ ByteString("\n"))
val binding = Tcp().bindAndHandle(handler, "localhost", 12345)
extern crate rustc_serialize;
#[derive(RustcDecodable, RustcEncodable, Debug)]
struct gonet {
ip: String,
mask: String,
}
fn main() {}
@netvl
netvl / docker.log
Created January 15, 2016 14:17
Docker crash log
------------------------
/usr/local/bin/docker daemon -D -g "/var/lib/docker" -H unix:// -H tcp://0.0.0.0:2376
--label provider=virtualbox
--tlsverify --tlscacert=/var/lib/boot2docker/ca.pem --tlscert=/var/lib/boot2docker/server.pem --tlskey=/var/lib/boot2docker/server-key.pem -s aufs >> "/var/lib/boot2docker/docker.log"
time="2016-01-15T14:07:45.189550187Z" level=debug msg="Trusting certs with subjects: [0\x101\x0e0\f\x06\x03U\x04\n\x13\x05netvl]"
time="2016-01-15T14:07:45.189751104Z" level=debug msg="docker group found. gid: 100"
time="2016-01-15T14:07:45.189775976Z" level=debug msg="Server created for HTTP on unix (/var/run/docker.sock)"
time="2016-01-15T14:07:45.189879885Z" level=debug msg="Server created for HTTP on tcp (0.0.0.0:2376)"
time="2016-01-15T14:07:45.190784061Z" level=debug msg="[graphdriver] trying provided driver \"aufs\""
@netvl
netvl / test.rs
Last active January 9, 2016 13:14
// cargo-deps: ejdb="0.1"
extern crate ejbd;
use ejdb::bson::{Bson, Document};
use ejdb::bson::oid::ObjectId;
#[derive(Debug, Clone)]
pub enum BsonDestructureError {
InvalidType {
field_name: &'static str,