Skip to content

Instantly share code, notes, and snippets.

View timglabisch's full-sized avatar

Tim Glabisch timglabisch

View GitHub Profile
const path = require('path');
module.exports = {
entry: './src/main.js',
devtool: 'inline-source-map',
module: {
rules: [
{
test: /\.tsx?$/,
use: 'ts-loader',
<?php
use Swoole\Http\Server;
$serv = new swoole_http_server('0.0.0.0', 9501);
$serv->set(array(
'task_worker_num' => 10,
#![feature(libc)]
extern crate libc;
use libc::{c_void, c_int, c_char, c_uchar, c_uint};
use std::ffi::{CString,};
use std::ptr;
pub fn main() {
struct foo {
PUT /material
{
"mappings": {
"material": {
"properties": {
"grapevariety": {
"type": "string",
"analyzer": "keyword"
},
"color": {
BEST WESTERN Hotel City Ost
http://www.bestwestern.de/cgi-bin/WebObjects/BestWestern.woa/8/wa/SD3CBWHotelSearchDirectAction/hotelSearch?hotel2=Best+Western+Hotel+Berlin+Mitte&arrival2=31.05.2015&departure2=03.06.2015&nights2=3&adults2=1&children2=0&double2=0&single2=1&ratePlanCode=&ratePlanType=&showPrice=true&ratenreiter=&showNotAvailableHotels=true&hideSorting=&hideStandardTab=&hideGalleryTab=&hideListTab=&hideNotePadTab=&showTab=default&showCityFilter=&showPackagePriceFilter=&showPackageDaysFilter=&showPackageDateFilter=&suppressDC=false&vmpid=&searchQualifier=&cityregion=Berlin&country=DE&hotel=Name+des+Hotels+%28optional%29&arrival=31.05.2015&departure=03.06.2015&nights=3&adults=1&children=0&showTab=default&sort=DISTANCE&single=1&double=0&WOSubmitAction=SD3CBWHotelSearchDirectAction%2FhotelSearch&0.13.1.2.1.5.29.123=&stadt=Stadt&adresse=Adresse%2C+Bahnhof%2C+POI%2C+o.%C3%A4.&x=0&y=0&rid=93709846&wosid=qfpTzEMlBbUVlPaYUvOpw0
@timglabisch
timglabisch / todo.md
Last active August 29, 2015 14:13
Todo Stack
GET /tests/_search
{
"query": {
"match_all": {}
},
"aggs": {
"all": {
"global": {},
"aggs": {
fswatch -r ../frontend | sed -l -E '/(\.git|\.idea|\_\_\_|DS\_Store)/d' | xargs -n1 bash -c "vagrant rsync"
export CLICOLOR=1
export LSCOLORS=GxFxCxDxBxegedabagaced
alias .='grepls'
alias ..='up'
alias s='sudo'
alias fu='pkill'
alias cr="composer require"
alias p="pstorm . &"
alias v="vim"
alias sv="sudo vim"