kubectl apply -f storageclass.yml
kubectl apply -f neo4j-service.yml
kubectl apply -f neo4j-statefulset.yml
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
add_action( 'wp_footer', 'cart_update_qty_script' ); | |
function cart_update_qty_script() { | |
if (is_cart()) : | |
?> | |
<script> | |
jQuery('div.woocommerce').on('change', '.qty', function(){ | |
jQuery("[name='update_cart']").trigger("click"); | |
}); | |
</script> | |
<?php |
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
function ensure_select2() { | |
wp_enqueue_style( 'select2', plugin_dir_url( __FILE__ ) . 'assets/css/select2.min.css' ); | |
wp_enqueue_script( 'select2', plugin_dir_url( __FILE__ ) . 'assets/js/select2.js', array(), '1.0.0', true ); | |
} | |
add_action( 'admin_head' , 'ensure_select2' ); |
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
ERROR: extension "pgcrypto" already exists | |
Buildfile: /opt/dspace/dspace/target/dspace-installer/build.xml | |
init_installation: | |
[mkdir] Created dir: /dspace/bin | |
[mkdir] Created dir: /dspace/config | |
[mkdir] Created dir: /dspace/lib | |
[mkdir] Created dir: /dspace/etc | |
[mkdir] Created dir: /dspace/webapps | |
[mkdir] Created dir: /dspace/triplestore |
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
./hey -m GET -n 1000000 https://ipdata.co -more | |
Summary: | |
Total: 476.9207 secs | |
Slowest: 5.0308 secs | |
Fastest: 0.0010 secs | |
Average: 0.0225 secs | |
Requests/sec: 2096.7846 | |
Total data: 315238010 bytes | |
Size/request: 315 bytes |
git push origin master
git tag 1.3 -m "desc"
git push --tags origin master
python setup.py sdist upload
I hereby claim:
- I am jonathan-kosgei on github.
- I am jkosgei (https://keybase.io/jkosgei) on keybase.
- I have a public key whose fingerprint is 4A3A EC85 E348 E5A8 4FD5 E82B 1C9F 43F8 656B 81FF
To claim this, I am signing this object:
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
# Scheduling the above script hourly. Ensure you're properly authenticated via aws configure. | |
#!/bin/bash | |
zip ebs-backup-worker.zip .schedule-ebs-snapshot-backups.py | |
aws lambda create-function --function-name ebs-backup-worker \ | |
--runtime python2.7 \ | |
--role "arn for your lambda user's role" \ | |
--handler lambda_handler \ | |
--zip-file fileb:///ebs-backup-worker.zip |
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
import sys | |
def get_size(obj, seen=None): | |
"""Recursively finds size of objects""" | |
size = sys.getsizeof(obj) | |
if seen is None: | |
seen = set() | |
obj_id = id(obj) | |
if obj_id in seen: | |
return 0 |