Skip to content

Instantly share code, notes, and snippets.

View andrelashley's full-sized avatar

André Lashley andrelashley

  • BC Provincial Government
  • Victoria, British Columbia
View GitHub Profile
env val = '(){;;};echo You are vulnerable' bash -c "test"
Date: 2014-11-13 10:11:55 AM
Event ID: 1000
Task Category: (100)
Level: Error
Keywords: Classic
User: N/A
Computer: Andre
Description:
Faulting application name: python.exe, version: 0.0.0.0, time stamp: 0x53b1ee02
Faulting module name: ntdll.dll, version: 6.2.9200.17046, time stamp: 0x53b4864c
gdal_translate -of VRT -a_srs EPSG:4326 -gcp 0 0 -123.33878517150879 48.47343340149096 -gcp 1024 0 -123.25261116027832 48.47343340149096 -gcp 0 768 -123.33878517150879 48.45385501571936 -gcp 1024 768 -123.25261116027832 48.45385501571936 uvic.jpg output.vrt
gdalwarp -of VRT -t_srs EPSG:4326 output.vrt new_output.vrt
gdal2tiles.py -p geodetic -z 0-18 new_output.vrt
***gdal2tiles.py new_output.vrt
@andrelashley
andrelashley / areamaps
Last active August 29, 2015 14:09
query
use tyresense3
go
IF OBJECT_ID('Tyresense3..#AreaMaps') IS NOT NULL DROP TABLE #AreaMaps
CREATE TABLE dbo.AreaMaps
(
Id int constraint PK_AreaMaps primary key,
BoundingBox nvarchar(255) not null,
Name nvarchar(255) not null,
C:\Users\andre_000\Desktop>gdalinfo Hoopes_635_nm.tif
Driver: GTiff/GeoTIFF
Files: Hoopes_635_nm.tif
Size is 1860, 2780
Coordinate System is `'
Metadata:
TIFFTAG_ARTIST=AxImageIO: Barcode=; Temperature=40.33; FocusPosition=0
TIFFTAG_DATETIME=2002/08/06 12:28:31
TIFFTAG_DOCUMENTNAME=
TIFFTAG_HOSTCOMPUTER=AxImageIO: FullSize=2200,7300; Compression=0,100; PMT=560
C:\Users\andre_000\Desktop>gdalinfo TerraColor_SanFrancisco_US_15m.tif
Driver: GTiff/GeoTIFF
Files: TerraColor_SanFrancisco_US_15m.tif
Size is 7204, 7204
Coordinate System is:
GEOGCS["WGS 84",
DATUM["WGS_1984",
SPHEROID["WGS 84",6378137,298.257223563,
AUTHORITY["EPSG","7030"]],
AUTHORITY["EPSG","6326"]],
package connecteddeveloper.com.helloworld;
import java.util.Locale;
import android.support.v7.app.ActionBarActivity;
import android.support.v7.app.ActionBar;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentTransaction;
import android.support.v4.app.FragmentPagerAdapter;
import java.util.jar.Attributes.Name;
public class Candidate implements CandidateInterface{
private String firstName;
private String lastName;
private int voteCount;
public Candidate(String inFirstName, String inLastName){
firstName = inFirstName;
lastName = inLastName;
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
<title>Results</title>
</head>
<body>
<?php
/*
Lab 5
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
<title>Results</title>
</head>
<body>
<?php
/*
Lab 5