I hereby claim:
- I am h1kkan on github.
- I am h1kkan (https://keybase.io/h1kkan) on keybase.
- I have a public key ASBdKMD9dSWDLHh1AW2mlkBNZt87GH0S2F6Gc140D3SWVAo
To claim this, I am signing this object:
SELECT table, | |
formatReadableSize(sum(bytes)) as size, | |
min(min_date) as min_date, | |
max(max_date) as max_date | |
FROM system.parts | |
WHERE active | |
GROUP BY table |
I hereby claim:
To claim this, I am signing this object:
/** | |
* Encrypt and decrypt | |
* | |
* @author Nazmul Ahsan <[email protected]> | |
* @link http://nazmulahsan.me/simple-two-way-function-encrypt-decrypt-string/ | |
* | |
* @param string $string string to be encrypted/decrypted | |
* @param string $action what to do with this? e for encrypt, d for decrypt | |
*/ | |
function my_simple_crypt( $string, $action = 'e' ) { |
#!/usr/bin/env python3 | |
""" | |
Very simple HTTP server in python for logging requests | |
Usage:: | |
./server.py [<port>] | |
""" | |
from http.server import BaseHTTPRequestHandler, HTTPServer | |
import logging | |
class S(BaseHTTPRequestHandler): |
#user nobody; | |
worker_processes 1; | |
#error_log logs/error.log; | |
#error_log logs/error.log notice; | |
#error_log logs/error.log info; | |
#pid logs/nginx.pid; |
/***************************************** | |
WAKE UP, NEO... | |
Author: Jack Rugile; | |
MODS by Victor Casals - VSDigital | |
* Multiple message | |
* Simulation of human typing |
# It locates on /etc/systemd/system/ | |
[Unit] | |
Description=Cleaning unnecessary cadvisor system resources. See issue https://github.com/kubernetes/kubernetes/issues/64137. | |
[Service] | |
Slice=cadvisor-gc.slice | |
ExecStart=/opt/cadvisor-gc/cadvisor-gc.sh | |
[Install] |
# | |
# Wide-open CORS config for nginx | |
# | |
location / { | |
if ($request_method = 'OPTIONS') { | |
add_header 'Access-Control-Allow-Origin' '*'; | |
# |
<?php | |
/** | |
* This file sets up exception and error handlers to log errors to our Graylog2 | |
* server. | |
* | |
* @author Jeremy Cook | |
*/ | |
//Add the autoloader generated by composer for dependencies. | |
require_once 'path/to/composer/autoload.php'; |
--- | |
# This has been tested with ansible 1.3 with these commands: | |
# ansible-playbook -i hosts ansible_conditionals_examples.yaml --extra-vars="hosts=myhosts isFirstRun=false" | |
# ansible-playbook -i hosts ansible_conditionals_examples.yaml --extra-vars="hosts=myhosts isFirstRun=true" | |
# ansible-playbook -i hosts ansible_conditionals_examples.yaml --extra-vars="hosts=myhosts" | |
# NB: The type of the variable is crucial! | |
- name: Ansible Conditionals Examples | |
hosts: $hosts | |
vars_files: |