Simple Security Guidelines
Using an iDevice? (Best option)
- Use an iPod or an iPad without a SIM card
- Use an iPhone
- Do not jailbreak
- Always upgrade to new iOS versions
- Use Brave browser
## template: jinja | |
#cloud-config | |
{% if v1.distro_release == 'focal' %} | |
users: | |
- name: berkant | |
shell: /usr/bin/bash | |
ssh_import_id: gh:berkant | |
sudo: ALL=(ALL:ALL) NOPASSWD:ALL |
The regex patterns in this gist are intended only to match web URLs -- http, | |
https, and naked domains like "example.com". For a pattern that attempts to | |
match all URLs, regardless of protocol, see: https://gist.github.com/gruber/249502 | |
# Single-line version: | |
(?i)\b((?:https?:(?:/{1,3}|[a-z0-9%])|[a-z0-9.\-]+[.](?:com|net|org|edu|gov|mil|aero|asia|biz|cat|coop|info|int|jobs|mobi|museum|name|post|pro|tel|travel|xxx|ac|ad|ae|af|ag|ai|al|am|an|ao|aq|ar|as|at|au|aw|ax|az|ba|bb|bd|be|bf|bg|bh|bi|bj|bm|bn|bo|br|bs|bt|bv|bw|by|bz|ca|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|co|cr|cs|cu|cv|cx|cy|cz|dd|de|dj|dk|dm|do|dz|ec|ee|eg|eh|er|es|et|eu|fi|fj|fk|fm|fo|fr|ga|gb|gd|ge|gf|gg|gh|gi|gl|gm|gn|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|hr|ht|hu|id|ie|il|im|in|io|iq|ir|is|it|je|jm|jo|jp|ke|kg|kh|ki|km|kn|kp|kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|me|mg|mh|mk|ml|mm|mn|mo|mp|mq|mr|ms|mt|mu|mv|mw|mx|my|mz|na|nc|ne|nf|ng|ni|nl|no|np|nr|nu|nz|om|pa|pe|pf|pg|ph|pk|pl|pm|pn|pr|ps|pt|pw|py|qa|re|ro|rs|ru|rw|sa|sb|sc|sd|se|sg|sh|si|s |
#!/usr/bin/python | |
import requests, os, pickle, datetime, zipfile, subprocess, csv | |
from bs4 import BeautifulSoup | |
class FeedFetcher(): | |
def __init__(self, ddir=os.getcwd(), get_nj=True, nj_username='', nj_pass=''): | |
self.ddir = ddir | |
self.get_nj = get_nj # whether to fetch from NJ TRANSIT or not | |
self.tc = {} # time checks for GTFS fetches |
CREATE OR REPLACE FUNCTION indexes_for_hstore_column(full_table_name varchar, hstore_column varchar) RETURNS SETOF varchar AS $$ | |
DECLARE | |
table_oid oid; | |
table_name varchar; | |
schema_name varchar; | |
key varchar; | |
index_name varchar; | |
index_exists integer; | |
unique_keys_query varchar; | |
create_index_statement varchar; |
<!-- total: 79 feeds --> | |
<bean class="org.opentripplanner.graph_builder.model.GtfsBundle"> | |
<property name="url" value="http://gtfs.s3.amazonaws.com/pvta_20120820_0735.zip" /> | |
<property name="defaultAgencyId" value="pvta" /> | |
</bean> | |
<bean class="org.opentripplanner.graph_builder.model.GtfsBundle"> | |
<property name="url" value="http://gtfs.s3.amazonaws.com/port-authority-of-new-york-new-jersey_20110512_0300.zip" /> | |
<property name="defaultAgencyId" value="port-authority-of-new-york-new-jersey" /> | |
</bean> | |
<bean class="org.opentripplanner.graph_builder.model.GtfsBundle"> |
<bean class="org.opentripplanner.graph_builder.model.GtfsBundle"> | |
<property name="url" value="http://gtfs.s3.amazonaws.com/pvta_20120820_0735.zip" /> | |
<property name="defaultAgencyId" value="pvta" /> | |
</bean> | |
<bean class="org.opentripplanner.graph_builder.model.GtfsBundle"> | |
<property name="url" value="http://gtfs.s3.amazonaws.com/port-authority-of-new-york-new-jersey_20110512_0300.zip" /> | |
<property name="defaultAgencyId" value="port-authority-of-new-york-new-jersey" /> | |
</bean> | |
<bean class="org.opentripplanner.graph_builder.model.GtfsBundle"> | |
<property name="url" value="http://gtfs.s3.amazonaws.com/lanta_20120701_0310.zip" /> |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import code | |
import logging | |
from datetime import datetime | |
from sqlalchemy import create_engine, event | |
from sqlalchemy import Column, Float, Integer, MetaData, UnicodeText |