I hereby claim:
- I am demiurg on github.
- I am demiurge (https://keybase.io/demiurge) on keybase.
- I have a public key whose fingerprint is E936 0C2A FA92 1934 3F02 8E05 76D3 30F5 5D80 B570
To claim this, I am signing this object:
| Open RegEdit | |
| Navigate to this Key: | |
| HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp | |
| Change “SecurityLayer” to a zero | |
| Reboot and done! |
| .bashrc | |
| if [ -f /etc/bashrc ]; then | |
| . /etc/bashrc | |
| fi | |
| export PATH=/usr/local/bin:/usr/local/sbin:$PATH | |
| export PATH="${PATH}:/usr/local/texlive/2014basic/bin/x86_64-darwin" | |
| #export PATH="$(brew --prefix coreutils)/libexec/gnubin:/usr/local/bin:$PATH" |
| filterSites = (sites, terms) => { | |
| var REDUCERS = { | |
| 'AND': (acc, cur) => acc && cur, | |
| 'OR': (acc, cur) => acc || cur | |
| }; | |
| var filtered_sites = Object.values(sites).filter((s) => { | |
| if (s && typeof s == 'object'){ | |
| var props = s.properties; | |
| var truths = terms.map((term, idx) => { |
| truncate -s +100G /data/containers/expand.img | |
| sudo zpool set autoexpand=on lxd | |
| # sudo zpool online -e lxd /data/containers/expand.img | |
| sudo zpool add lxd /data/containers/expand.img | |
| sudo zpool set autoexpand=off lxd |
| function handleMousemove(vmap){ | |
| var self = this; | |
| self.event = null; | |
| self.highlight = function(e){ | |
| console.log(self.event); | |
| if (self.event != e){ | |
| return; | |
| } |
I hereby claim:
To claim this, I am signing this object:
| --- update fcpf_subnat_cea set geom_simple = st_simplify(st_buffer(st_buffer(st_simplify(wkb_geometry, 200), 200), -200), 2000) where hasc_1 = 'CL.MA'; | |
| --- update fcpf_subnat_cea set geom_simple = ST_MULTI(st_buffer(st_simplify(st_buffer(st_buffer(wkb_geometry, 500), -500), 2000), 0)) where not st_isvalid(geom_simple); | |
| --- select hasc_1, uniquename, BIT_LENGTH(geom_simple::bytea)::int, st_isvalid(geom_simple) from fcpf_subnat_cea order by bit_length desc; | |
| -- update fcpf_subnat_cea set geom_simple = ST_MULTI(st_buffer(st_simplify(st_buffer(st_buffer(st_simplify(wkb_geometry, 300), 500), -500), 2000), 0)) where hasc_1 = 'CL.AI' or hasc_1 = 'CL.MA'; | |
| -- select hasc_1 from fcpf_subnat_cea where not st_isvalid(geom_simple) or st_area(geom_simple) < 1; |
| #!/usr/bin/env python | |
| import fiona | |
| import csv | |
| shp = fiona.open("TOWNSSURVEY_PT.shp") | |
| print "Columns: {}".format(shp.schema['properties'].keys()) | |
| prop_csv = csv.DictWriter(open("props.csv", 'wb'), shp.schema['properties'].keys()) |
| WITH empty AS( | |
| SELECT ST_MakeEmptyRaster(256, 256, -5205055.878107, 7905423.213366, 9783.939620) as alignto | |
| ) SELECT ST_AsGDALRaster( | |
| ST_Transform(ma3, alignto), 'PNG' | |
| ) as tiffvals, | |
| FROM ( | |
| SELECT ST_MapAlgebra( | |
| isUnion, | |
| ma2, | |
| '(CASE WHEN [rast1] <= 10 and [rast2] = 101 THEN 101 ELSE 100 END::int)' |