View wordpress_posts.py
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 requests | |
from config import Config | |
WORDPRESS_URL = 'https://public-api.wordpress.com/' | |
AUTH_TOKEN_URL = f'{WORDPRESS_URL}oauth2/token' | |
POSTS_URL = f'{WORDPRESS_URL}rest/v1.1/sites/{Config.SITE_ID}/posts/{Config.POST_ID}' |
View postgresql_point_datatype.sql
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
DROP TABLE IF EXISTS SQLShackGeomTest; | |
CREATE TABLE SQLShackGeomTest ( | |
sensor_id VARCHAR(50) PRIMARY KEY NOT NULL, | |
longitude VARCHAR(50), | |
latitude VARCHAR(50), | |
country TEXT, | |
sensorTemp INTEGER, | |
sensorPressure INTEGER, | |
sensorTime TIMESTAMP, |
View athena_sql_server.sql
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
EXEC master.dbo.sp_addlinkedserver | |
@server =N'AWS_ATHENA', | |
@srvproduct=N'', | |
@provider=N'MSDASQL', | |
@datasrc=N'AWS_ATHENA' | |
GO | |
EXEC master.dbo.sp_addlinkedsrvlogin | |
@rmtsrvname=N'AWS_ATHENA', | |
@useself=N'False', |
NewerOlder