ror, scala, jetty, erlang, thrift, mongrel, comet server, my-sql, memchached, varnish, kestrel(mq), starling, gizzard, cassandra, hadoop, vertica, munin, nagios, awstats
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
#!/usr/bin/ruby | |
=begin | |
Usage: rtftomarkdown.rb FILENAME.rtf | |
Uses textutil, available on Mac only (installed by default) | |
Outputs to STDOUT | |
Notes: | |
Links are replaced with Markdown references (duplicate links combined). |
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
py2 → py3 | |
Tkinter → tkinter | |
tkMessageBox → tkinter.messagebox | |
tkColorChooser → tkinter.colorchooser | |
tkFileDialog → tkinter.filedialog | |
tkCommonDialog → tkinter.commondialog | |
tkSimpleDialog → tkinter.simpledialog | |
tkFont → tkinter.font | |
Tkdnd → tkinter.dnd | |
ScrolledText → tkinter.scrolledtext |
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
<?php | |
// Access a property with no restrictions | |
function stole($object,$property){ | |
$dict = (array)$object; | |
$class = get_class($object); | |
return isset($dict[$property])? | |
$dict[$property]:(isset($dict["\0*\0$property"])? | |
$dict["\0*\0$property"]:(isset($dict["\0$class\0$property"])? | |
$dict["\0$class\0$property"]:null)); |
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
15:03 < openlad1> | nube: how about live music after BSOD | |
15:03 < openlad1> | BSOD revisited | |
15:03 < openlad1> | :P | |
15:03 < nube> | openlad1: don't keep many program! in one | |
15:04 < nube> | lets beer drinking be beer drinking | |
15:04 < nube> | *let | |
15:04 < nube> | Music and stuff might add up cost! :/ | |
15:05 < nube> | running around with no job openlad1 | |
15:05 < nube> | people are student here! | |
15:06 < Avasz> | yess |
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
#Start index from 1 set -g base-index 1 | |
set -g base-index 1 | |
#Unbind ctrl+b and bind it to Alt+a | |
unbind C-b | |
set -g prefix M-a | |
bind M-a send-prefix | |
#Unbind % and bind | for vertical split and - for horizontal split | |
unbind % | |
bind | split-window -h |
This is a list of examples and articles, in roughly the order you should follow them, to show and explain how promises work and why you should use them. I'll probably add more things to this list over time.
This list primarily focuses on Bluebird, but the basic functionality should also work in ES6 Promises, and some examples are included on how to replicate Bluebird functionality with ES6 promises. You should still use Bluebird where possible, though - they are faster, less error-prone, and have more utilities.
I'm available for tutoring and code review :)
You may reuse all gists for any purpose under the WTFPL / CC0 (whichever you prefer).
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 | |
# Play and download the youtube video simultaneously | |
# Author: Samunddra | |
# Update Date: 2016-12-14 16:29:14 PM | |
# | |
# Use `screen` to play it in the background, fork screen process and exit, enjoy | |
# | |
# DEPENDENCIES | |
# - sudo apt install -y jq mplayer youtube-dl | |
# |