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 8000Each 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| $ tmux attach | |
| protocol version mismatch (client 7, server 6) | |
| $ pgrep tmux | |
| 3429 | |
| $ /proc/3429/exe attach |
| [user] | |
| name = Jeronimo F. Martinez Sanchez | |
| email = email | |
| [color] | |
| ui = auto | |
| branch = auto | |
| interactive = auto | |
| diff = auto | |
| status = auto | |
| [core] |
| # | |
| # Install the MYSQL driver | |
| # gem install mysql2 | |
| # | |
| # Ensure the MySQL gem is defined in your Gemfile | |
| # gem 'mysql2' | |
| # | |
| # And be sure to use new-style password hashing: | |
| # http://dev.mysql.com/doc/refman/5.0/en/old-client.html | |
| development: |
| import sqlalchemy | |
| from sqlalchemy.ext.declarative import declarative_base | |
| from sqlalchemy import Column, Integer, String, ForeignKey | |
| from sqlalchemy.orm import sessionmaker, relationship, backref | |
| from sqlalchemy.ext.associationproxy import association_proxy | |
| import uuid | |
| engine = sqlalchemy.create_engine('sqlite:///:memory:') | |
| Base = declarative_base() | |
| -- show running queries (pre 9.2) | |
| SELECT procpid, age(query_start, clock_timestamp()), usename, current_query | |
| FROM pg_stat_activity | |
| WHERE current_query != '<IDLE>' AND current_query NOT ILIKE '%pg_stat_activity%' | |
| ORDER BY query_start desc; | |
| -- show running queries (9.2) | |
| SELECT pid, age(query_start, clock_timestamp()), usename, query | |
| FROM pg_stat_activity | |
| WHERE query != '<IDLE>' AND query NOT ILIKE '%pg_stat_activity%' |
| Request: { | |
| param: function (data) { | |
| var encodedString = ''; | |
| for (var prop in data) { | |
| if (data.hasOwnProperty(prop)) { | |
| if (encodedString.length > 0) { | |
| encodedString += '&'; | |
| } | |
| encodedString += prop + '=' + encodeURIComponent(data[prop]); | |
| } |
| // IIFE - Immediately Invoked Function Expression | |
| (function($, window, document) { | |
| // The $ is now locally scoped | |
| // Listen for the jQuery ready event on the document | |
| $(function() { | |
| // The DOM is ready! |
| # 1) Create your private key (any password will do, we remove it below) | |
| $ cd ~/.ssh | |
| $ openssl genrsa -des3 -out server.orig.key 2048 | |
| # 2) Remove the password | |
| $ openssl rsa -in server.orig.key -out server.key |
| #!/bin/bash | |
| # | |
| # The MIT License | |
| # | |
| # Copyright 2014 Jakub Jirutka <[email protected]>. | |
| # | |
| # Permission is hereby granted, free of charge, to any person obtaining a copy | |
| # of this software and associated documentation files (the "Software"), to deal | |
| # in the Software without restriction, including without limitation the rights | |
| # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |