This file contains hidden or 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 re | |
import json | |
# define a function to parse the resume | |
def parse_resume(resume_text): | |
# split the text into lines | |
lines = resume_text.split('\n') | |
# initialize variables to store the parsed information | |
name = '' |
This file contains hidden or 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 | |
import requests | |
from pprint import pprint | |
from bs4 import BeautifulSoup as bs | |
from urllib.parse import urljoin | |
XSS_SCRIPT = "<Script>alert('hi')</scripT>" | |
class MissingUrlException(Exception): |
This file contains hidden or 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
UNLOAD ('select * from skytrax.airline') | |
TO 's3://redshift-data-movement/backups/airline.csv' | |
CREDENTIALS 'aws_access_key_id=XXXXXXXXXX;aws_secret_access_key=XXXXXXXXXX' | |
FORMAT as csv; |
This file contains hidden or 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
COPY skytrax.airline | |
FROM 's3://redshift-data-movement/airline.csv' | |
CREDENTIALS 'aws_access_key_id=XXXXXXXXXX;aws_secret_access_key=XXXXXXXXXX' | |
FORMAT as csv | |
IGNOREHEADER 1 | |
TRUNCATECOLUMNS; |
This file contains hidden or 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
--Tables recreation | |
DROP TABLE IF EXISTS skytrax.airline; | |
DROP TABLE IF EXISTS skytrax.airport; | |
DROP TABLE IF EXISTS skytrax.lounge; | |
DROP TABLE IF EXISTS skytrax.seat; | |
CREATE TABLE IF NOT EXISTS skytrax.airline( | |
airline_name VARCHAR(100) DEFAULT 'Unknown', | |
link VARCHAR(100) DEFAULT 'Unknown', | |
title VARCHAR(150) DEFAULT 'Unknown', |
This file contains hidden or 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
-- Schema recreation | |
create schema if not exists skytrax; |
This file contains hidden or 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
{ | |
component: AppComponent, | |
path: '', | |
canActivate: [LoggedInGuard], | |
loadChildren: () => import('./homepage/homepage.module').then(m => m.HomepageModule) | |
}, |
This file contains hidden or 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 re | |
import logging | |
import requests | |
from bs4 import BeautifulSoup | |
from collections import deque | |
from urllib.parse import urlsplit | |
from urllib.parse import urlparse | |
LOGGER = logging.getLogger(__name__) |
This file contains hidden or 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 os | |
import sys | |
import requests | |
from bs4 import BeautifulSoup | |
def show_arg(): | |
req = requests.get(sys.argv[1]) |
This file contains hidden or 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
<!doctype html> | |
<title>Site Maintenance</title> | |
<style> | |
body { text-align: center; padding: 150px; } | |
h1 { font-size: 50px; } | |
body { font: 20px Helvetica, sans-serif; color: #333; } | |
article { display: block; text-align: left; width: 650px; margin: 0 auto; } | |
a { color: #dc8100; text-decoration: none; } | |
a:hover { color: #333; text-decoration: none; } | |
</style> |
NewerOlder