Skip to content

Instantly share code, notes, and snippets.

@2xyo
2xyo / kramdown.html
Last active December 25, 2015 00:09
One markdown source, four HTML outputs.
<h2 id="template">Template</h2>
<ul>
<li>A</li>
<li>B</li>
<li>
<p>C</p>
</li>
<li>D</li>
<li>E</li>
@2xyo
2xyo / init.d-logstash.sh
Last active December 25, 2015 04:39
Logstash configuration example
#!/bin/bash
#
# /etc/init.d/logstash -- startup script for LogStash.
#
### BEGIN INIT INFO
# Provides: logstash
# Required-Start: $all
# Required-Stop: $all
# Should-Start: $network $syslog
# Should-Stop: $network $syslog
@2xyo
2xyo / RESULT
Last active December 25, 2015 20:39
rm -rf data/*; /usr/bin/java -Djava.io.tmpdir=/opt/logs/logstash/tmp -jar /opt/logs/logstash/bin/logstash.jar agent -f /opt/logs/logstash/conf/logstash.conf
2013-10-18 03:00:14,993 - Module.special - DEBUG - search_aa - end in - 183
2013-10-18 03:00:14,993 - Module.special - DEBUG - search_bb - stop in - 112
{
"message" => "2013-10-18 03:00:14,993 - Module.special - DEBUG - search_aa - end in - 183",
"@timestamp" => "2013-10-18T03:00:14.993Z",
"@version" => "1",
"type" => "preprod",
"loglevel" => "DEBUG",
"action" => "search_aa",
@2xyo
2xyo / hwinfo
Created January 15, 2014 14:44
Udoo Quad - udoo_quad_debian_wheezy_armhf_v1.0beta.img root@udoo-debian-hfp:~# uname -a Linux udoo-debian-hfp 3.0.35 #1 SMP PREEMPT Wed Dec 11 12:37:27 CET 2013 armv7l GNU/Linux root@udoo-debian-hfp:~# lsb_release -a No LSB modules are available. Distributor ID: Debian Description: Debian GNU/Linux 7.3 (wheezy) Release: 7.3 Codename: wheezy
root@udoo-debian-hfp:~# hwinfo
> hal.1: read hal dataprocess 5886: arguments to dbus_move_error() were incorrect, assertion "(dest) == NULL || !dbus_error_is_set ((dest))" failed in file ../../dbus/dbus-errors.c line 282.
This is normally a bug in some application using the D-Bus library.
libhal.c 3483 : Error unsubscribing to signals, error=The name org.freedesktop.Hal was not provided by any .service files
============ start debug info ============
libhd version 16.0 (arm)
using /var/lib/hardware
kernel version is 3.0
----- /proc/cmdline -----
console=ttymxc1,115200 root=/dev/mmcblk0p1 rootwait rw fbmem=24M video=mxcfb0:dev=hdmi,1920x1080M@60,bpp=32
# /usr/src/kernel-unico/.config
# Automatically generated make config: don't edit
# Linux/arm 3.0.35 Kernel Configuration
#
CONFIG_ARM=y
CONFIG_HAVE_PWM=y
CONFIG_SYS_SUPPORTS_APM_EMULATION=y
CONFIG_HAVE_SCHED_CLOCK=y
CONFIG_GENERIC_GPIO=y
# CONFIG_ARCH_USES_GETTIMEOFFSET is not set
--- .config-net.patch 2014-01-16 10:59:59.792315475 +0100
+++ .config 2014-01-16 11:07:36.339642756 +0100
@@ -588,35 +588,204 @@
# CONFIG_IP_PNP_RARP is not set
# CONFIG_NET_IPIP is not set
# CONFIG_NET_IPGRE_DEMUX is not set
-# CONFIG_IP_MROUTE is not set
-# CONFIG_ARPD is not set
-# CONFIG_SYN_COOKIES is not set
+CONFIG_IP_MROUTE=y
@2xyo
2xyo / .config
Last active October 18, 2022 01:40
Kernel for UDOO with iptables
#
# Automatically generated make config: don't edit
# Linux/arm 3.0.35 Kernel Configuration
#
CONFIG_ARM=y
CONFIG_HAVE_PWM=y
CONFIG_SYS_SUPPORTS_APM_EMULATION=y
CONFIG_HAVE_SCHED_CLOCK=y
CONFIG_GENERIC_GPIO=y
# CONFIG_ARCH_USES_GETTIMEOFFSET is not set
@2xyo
2xyo / update.sh
Created January 22, 2014 08:23
Twister update
#!/usr/bin/env bash
cd ~/projects/twister-core/src
./twisterd -rpcuser=user -rpcpassword=pwd stop
cd ..
git pull
cd libtorrent
@2xyo
2xyo / gist:9038150
Created February 16, 2014 17:59
Tizen SDK SIGCHLD
% strace ./eclipse
execve("./eclipse", ["./eclipse"], [/* 83 vars */]) = 0
brk(0) = 0x505000
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f8b4c994000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=206169, ...}) = 0
mmap(NULL, 206169, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f8b4c961000
close(3) = 0
@2xyo
2xyo / scrap.ipynb
Last active August 29, 2015 13:59
Mantes-la-Jolie Opendata
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.