I hereby claim:
- I am infog on github.
- I am infog (https://keybase.io/infog) on keybase.
- I have a public key whose fingerprint is A21D 5075 8E9C CCE9 D3B4 D767 B031 7CCF B522 0331
To claim this, I am signing this object:
# Detele | |
couchbase-cli bucket-delete -c 127.0.0.1 -u Administrator -p mypassword --bucket=mybucket-to-delete | |
# Create | |
couchbase-cli bucket-create -c 127.0.0.1 -u Administrator -p mypassword --bucket=default --bucket-ram=300 | |
# Restore | |
cbrestore default http://127.0.0.1:8091 -B default |
I hereby claim:
To claim this, I am signing this object:
from flask import Flask | |
app = Flask(__name__) | |
@app.route("/"): | |
data = [] | |
data["title"] = "My Page" | |
data["description"] = "Just a Page" | |
return render_template("index.html", **data) |
from flask import Flask, redirect, url_for | |
app = Flask(__name__) | |
@app.route("/page_to_redirect") | |
def page_to_redirect(): | |
"""Using a 307 (TEMPORARY REDIRECT)""" | |
return redirect(url_for("destination")), 307 | |
class Person(object): | |
def __init__(self, name): | |
self.name = name | |
class Customer(Person): | |
def __init__(self, name, credit): | |
super(Customer, self).__init__(name) | |
self.credit = credit |
server { | |
server_name example; | |
root /var/www/example; | |
index index.php index.html index.htm; | |
# error_log /var/log/nginx/example.error_log debug; | |
rewrite_log on; | |
location ~* ^/(assets|css|fonts|img|js|upload) { } |
while true; do phpunit; sleep 2; done |
#!/usr/bin/env python3 | |
from tkinter import Tk | |
from json import dumps, loads | |
def show_json_from_clipboard(): | |
t = Tk() | |
t.withdraw() |
<?php | |
// Download medoo.php (http://medoo.in) and place it here: | |
require "/usr/local/lib/php/medoo.php"; | |
function writeLog($message) | |
{ | |
// If you don't want logs, use false | |
if (true) { | |
$message = date('Y-m-d H:i:s') . " " . $message . "\n"; |
<?php | |
echo "\n*** Inputs ***"; | |
echo "\n\nGET:"; print_r($_GET); | |
echo "\n\nPOST:"; print_r($_POST); |