As configured in my dotfiles.
start new:
tmux
start new with session name:
#!/usr/bin/perl | |
# Author: Todd Larason <[email protected]> | |
# $XFree86: xc/programs/xterm/vttests/256colors2.pl,v 1.2 2002/03/26 01:46:43 dickey Exp $ | |
# use the resources for colors 0-15 - usually more-or-less a | |
# reproduction of the standard ANSI colors, but possibly more | |
# pleasing shades | |
# colors 16-231 are a 6x6x6 color cube | |
for ($red = 0; $red < 6; $red++) { |
As configured in my dotfiles.
start new:
tmux
start new with session name:
# store all solarized files in one place | |
mkdir ~/.solarized | |
cd ~/.solarized | |
# http://www.webupd8.org/2011/04/solarized-must-have-color-paletter-for.html | |
git clone https://github.com/seebi/dircolors-solarized.git | |
eval `dircolors ~/.solarized/dircolors-solarized/dircolors.256dark` | |
ln -s ~/.solarized/dircolors-solarized/dircolors.256dark ~/.dir_colors | |
git clone https://github.com/sigurdga/gnome-terminal-colors-solarized.git |
In August 2007 a hacker found a way to expose the PHP source code on facebook.com. He retrieved two files and then emailed them to me, and I wrote about the issue:
http://techcrunch.com/2007/08/11/facebook-source-code-leaked/
It became a big deal:
http://www.techmeme.com/070812/p1#a070812p1
The two files are index.php (the homepage) and search.php (the search page)
A lot of math grad school is reading books and papers and trying to understand what's going on. The difficulty is that reading math is not like reading a mystery thriller, and it's not even like reading a history book or a New York Times article.
The main issue is that, by the time you get to the frontiers of math, the words to describe the concepts don't really exist yet. Communicating these ideas is a bit like trying to explain a vacuum cleaner to someone who has never seen one, except you're only allowed to use words that are four letters long or shorter.
What can you say?
Probabilistic Graphical Models with Professor Daphne Koller - Stanford University {{{1 | |
01.01 - Welcome | https://www.youtube.com/watch?v=WPSQfOkb1M8 | |
01.02 - Overview and Motivation | https://www.youtube.com/watch?v=6AVurePzK3Y | |
01.03 - Distributions | https://www.youtube.com/watch?v=Y1i7Tzj9YFg | |
01.04 - Factors | https://www.youtube.com/watch?v=5R5ixMmKQzg | |
02.01 - Semantics & Factorization | https://www.youtube.com/watch?v=6ODl1rxoT14 | |
02.02 - Reasoning Patterns | https://www.youtube.com/watch?v=dSLlBMOKWF4 | |
02.03 - Flow of Probabilistic Influence | https://www.youtube.com/watch?v=PfirsYouObw |
So you want to accept payments online with PHP? | |
- Well, you probably don't want to handle that process manually. Too dangerous and risky. | |
- So learn the Stripe API. Works great! | |
- But you'll still need to setup SSL. So go learn how to do that. | |
- Stripe provides a PHP package, so download that through Composer. If you're not familiar with Composer, you'll need to learn that too. | |
- If you want the most flexibility, you'll want to manually create the payment form. | |
- So you'll need to send an AJAX request with a special token to Stripe's API. jQuery makes this easy, so go learn jQuery. | |
- Once the payment completes, you'll likely want to send the buyer a "Purchased" email, so learn how to send email. | |
- But don't make the user wait for the email to send. That takes too long. Add that to a background job. |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
Hi there!
The docker cheat sheet has moved to a Github project under https://github.com/wsargent/docker-cheat-sheet.
Please click on the link above to go to the cheat sheet.
#!/usr/bin/env python | |
# Quick and dirty demonstration of CVE-2014-0160 by | |
# Jared Stafford ([email protected]) | |
# Modified so that it finds cookies | |
import sys | |
import struct | |
import socket | |
import time | |
import select |