Skip to content

Instantly share code, notes, and snippets.

View smoke's full-sized avatar

Radoslav Kirilov smoke

View GitHub Profile
@smoke
smoke / rxjs-debug.ts
Last active April 12, 2019 10:18
It allows you to easily dump things from a RxJS Observable
import {tap} from 'rxjs/operators';
export function rxjsDebug<T>(context: string) {
return tap<T>(
v => {
console.log(`next(${context})`, v);
},
e => {
console.log(`error(${context})`, e);
},
@smoke
smoke / grub.cfg
Created March 20, 2015 17:07
Multiboot USB drive - Grub2 configurations for direct ISO boot
# This grub.cfg file was created by Lance http://www.pendrivelinux.com
# Suggested Entries and the suggestor, if available, will also be noted.
set timeout=10
set default=0
set pager=1
## Gentoo things
function load_video {
@smoke
smoke / xdebug.ini
Created August 20, 2012 14:37
Xdebug Configuration
zend_extension=/usr/lib64/php5.3/lib/extensions/no-debug-non-zts-20090626/xdebug.so
xdebug.auto_trace="0"
xdebug.trace_output_dir="/tmp"
xdebug.trace_output_name="trace.%c"
xdebug.trace_format="0"
xdebug.trace_options="0"
xdebug.collect_includes="1"
xdebug.collect_params="0"
xdebug.collect_return="0"
xdebug.collect_vars="0"