gdb attach $(pidof node)
b v8::internal::Runtime_StackGuard
print 'v8::Isolate::GetCurrent'()
-----------------------------
output: $1=<result>
---------------------
print 'v8::Isolate::TerminateExecution'(<result>)
c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
yarn global add generator-express-no-stress-typescript | |
yarn global add generator-ts-np |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MEDIA=$1 | |
if [ -z "$MEDIA" ]; then | |
echo "Please enter media name:" | |
read MEDIA | |
fi | |
[ -z "$MEDIA" ] && printf "[error]: %s\n" "Media optiion is required" >&2 && exit 1 ; | |
IMAGE="Fedora-Server-armhfp-26-1.5-sda.raw.xz" | |
TEMP_DIR=$(mktemp -d) | |
TEMP_IMAGE_FILE_PATH="$TEMP_DIR/$IMAGE" | |
curl https://download.fedoraproject.org/pub/fedora/linux/releases/26/Server/armhfp/images/$IMAGE -L -o "$TEMP_IMAGE_FILE_PATH" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
echo "Start SSHD service" | |
systemctl enable sshd | |
systemctl start sshd | |
echo "Remove junky programs i hate" | |
dnf -y remove clipit asunder gnomebaker lxmusic gnumeric osmo pidgin xpad | |
echo "Upgrade system" |
#Active Route Traversal !!!! angular/angular#9662
http://plnkr.co/edit/pHd89K?p=preview
#DI: ##Intro (nice mock example at 19:30) https://www.youtube.com/watch?v=_OGGsf1ZXMs ###Injectors providers dpendencies explained:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#DI: | |
##Intro | |
(nice mock example at 19:30) | |
https://www.youtube.com/watch?v=_OGGsf1ZXMs | |
###Injectors providers dpendencies explained: | |
http://blog.thoughtram.io/angular/2015/05/18/dependency-injection-in-angular-2.html | |
#Agular shadow dom | |
https://www.youtube.com/watch?list=PLOETEcp3DkCq788xapkP_OU-78jhTf68j&v=J5Bvy4KhIs0 |
#GULP
Backbone is great but I continually found the default sorting method limited due to the following:
Disc 1, Disc 2, … Disc 10
would become Disc 1, Disc 10, Disc 2
With the help of Jim Palmer's naturalSort.js, I was able to integrate natrual sorting into Backbone.Collection
.
Backbone collections are automatically sorted and now, by simply adding sortType:"natural"
, your collections can be sorted naturally.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var _ = require( "lodash" ); | |
// Assume a collection that has: | |
// - age: Number | |
// - hasCat: Boolean | |
var people = require( "./people.json" ); | |
// ----------------------------------------------------------------------------------- // | |
// ----------------------------------------------------------------------------------- // |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
cd ~&&curl http://download2.mikrotik.com/routeros/winbox/3.0/winbox.exe>winbox.exe\ | |
&& echo "alias linbox='/usr/bin/wine ~/winbox.exe'" >> ~/.bashrc\ | |
&& exec bash |