This has moved to https://github.com/bitcoin/bitcoin/blob/master/doc/reduce-memory.md
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 pdb | |
""" | |
The Bellman-Ford algorithm | |
Graph API: | |
iter(graph) gives all nodes | |
iter(graph[u]) gives neighbours of u | |
graph[u][v] gives weight of edge (u, v) | |
""" |
-
Print a count of the messages in the queue:
exim -bpc
-
How to resend frozen messages in exim4 queue
exim -bp | grep frozen | awk '{print $3}' | xargs exim -v -M
-
Print a listing of the messages in the queue (time queued, size, message-id, sender, recipient):
- Tabler: https://github.com/tabler/tabler
- AdminLTE: https://github.com/almasaeed2010/AdminLTE
- Google Maps Customization: https://hpneo.github.io/gmaps/
- Slider: http://sachinchoolur.github.io/lightslider/
- Gallery: http://sachinchoolur.github.io/lightGallery/
- Sortable: http://johnny.github.com/jquery-sortable/
- Tree View: https://github.com/daredevel/jquery-tree
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
""" | |
Python script for batch geocoding of addresses using the Google Geocoding API. | |
This script allows for massive lists of addresses to be geocoded for free by pausing when the | |
geocoder hits the free rate limit set by Google (2500 per day). If you have an API key for paid | |
geocoding from Google, set it in the API key section. | |
Addresses for geocoding can be specified in a list of strings "addresses". In this script, addresses | |
come from a csv file with a column "Address". Adjust the code to your own requirements as needed. | |
After every 500 successul geocode operations, a temporary file with results is recorded in case of | |
script failure / loss of connection later. | |
Addresses and data are held in memory, so this script may need to be adjusted to process files line |
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
#!/bin/bash | |
# | |
# IMPORTANT! | |
# At the moment this script is forged only for Debian ( tested on 8.x release ). | |
# Although my efforts were put on building this also on Arch Linux or Alpine, at the moment only Debian seems to be able to build it. | |
# Also, not sure why these instructions where nowhere on the internet, therefore I leave them here for whoever need them. | |
# | |
########### | |
# Add Backports repo support |
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
#!/usr/bin/env python3 | |
import logging | |
# Colorful console | |
RESET_SEQ = "\033[0m" | |
COLOR_SEQ = "\033[1;%dm" | |
BOLD_SEQ = "\033[1m" |
Johan Beyers has a great list of resources as well. http://johan.beyers.co.za/pages/resources.html
Links to various South African online stores that may be useful to anyone 'making' things.
Name | URL | Notes |
---|---|---|
Netram | http://www.netram.co.za | Electronics, Quad Copters, Robotics, CNC, 3D Printing |
Hobby Tronics | http://www.hobbytronics.co.za | CNC Parts, Aluminium Extrusion, Electronics |
This concept is very much like .jar
or .war
archives in Java.
NOTE: The built
.pyz
zipapp can run on both Python 2 & 3 but you can only build.pyz
zipapps with Python 3.5 or later.
OlderNewer