Skip to content

Instantly share code, notes, and snippets.

View ericoc's full-sized avatar
💭
living @ 🌎

Eric O'Callaghan ericoc

💭
living @ 🌎
View GitHub Profile
@ericoc
ericoc / bug_3226
Created July 26, 2022 20:45
The "addressStreet" value returned by the API for kiosk ID 3226 includes the city, state, and zip code, although it should not
➜ ~ curl -s 'https://kiosks.bicycletransit.workers.dev/phl' | jq '.features | map(.) | .[].properties | select(.addressStreet | contains("Phila")) | .id, .kioskId, .name, .addressStreet, .addressCity, .addressState, .addressZipCode'
3226
3226
"2nd & Norris"
"2007 N 2nd st. Philadelphia, PA 19122"
"Philadelphia"
"PA"
"19122"
root@new:~# date
Sun 12 Jul 2020 08:05:10 PM UTC
root@new:~# cat /etc/debian_version
bullseye/sid
root@new:~# local
local locale locale-check localectl localedef locale-gen
root@new:~# locale
LANG=en_US.UTF-8
LANGUAGE=en_US:
LC_CTYPE="en_US.UTF-8"
$ sudo tcptraceroute cancerwebpa.jefferson.edu 22
Running:
traceroute -T -O info -p 22 cancerwebpa.jefferson.edu
traceroute to cancerwebpa.jefferson.edu (147.140.28.20), 30 hops max, 60 byte packets
1 router1-nac.linode.com (207.99.1.13) 0.681 ms router2-nac.linode.com (207.99.1.14) 0.738 ms 0.788 ms
2 173.255.239.16 (173.255.239.16) 0.533 ms 173.255.239.6 (173.255.239.6) 2.527 ms 173.255.239.54 (173.255.239.54) 2.506 ms
3 173.255.239.9 (173.255.239.9) 2.579 ms hu0-3-0-4.ccr31.jfk05.atlas.cogentco.com (38.104.75.137) 1.550 ms 173.255.239.9 (173.255.239.9) 2.509 ms
4 be3294.ccr41.jfk02.atlas.cogentco.com (154.54.47.217) 1.872 ms hu0-3-0-4.ccr31.jfk05.atlas.cogentco.com (38.104.75.137) 1.523 ms be3294.ccr41.jfk02.atlas.cogentco.com (154.54.47.217) 1.867 ms
5 be3295.ccr42.jfk02.atlas.cogentco.com (154.54.80.1) 1.578 ms 1.823 ms 1.823 ms
6 te0-0-2-3.nr11.b007563-2.phl01.atlas.cogentco.com (154.24.44.206) 5.172 ms te0-0-2-0.nr11.b007563-2.phl01.atlas.cogentco.com (154.24.44.210) 4.870
-H, --halt
Halt the machine.
-P, --poweroff
Power-off the machine (the default).
-r, --reboot
Reboot the machine.
-h
eric@ericoc:~$ cd /tmp/
eric@ericoc:/tmp$ mkdir indego-test
eric@ericoc:/tmp$ cd indego-test/
eric@ericoc:/tmp/indego-test$ virtualenv -p python3 venv
Already using interpreter /usr/bin/python3
Using base prefix '/usr'
New python executable in /tmp/indego-test/venv/bin/python3
Also creating executable in /tmp/indego-test/venv/bin/python
Installing setuptools, pkg_resources, pip, wheel...done.
@ericoc
ericoc / indego-example.py_output.json
Created April 22, 2019 17:07
indego-example.py_output.json
{3008: {'addressStreet': '1076 Berks Street', 'addressCity': 'Philadelphia', 'addressState': 'PA', 'addressZipCode': '19122', 'bikesAvailable': 5, 'closeTime': '03:55:00', 'docksAvailable': 14, 'eventEnd': None, 'eventStart': None, 'isEventBased': False, 'isVirtual': False, 'isVisible': False, 'kioskId': 3008, 'kioskPublicStatus': 'Active', 'kioskStatus': 'FullService', 'name': 'Temple University Station', 'notes': None, 'openTime': '04:00:00', 'publicText': '', 'timeZone': 'Eastern Standard Time', 'totalDocks': 19, 'trikesAvailable': 0, 'kioskConnectionStatus': 'Active', 'kioskType': 1, 'latitude': 39.98078, 'longitude': -75.15055, 'hasGeofence': False, 'classicBikesAvailable': 5, 'smartBikesAvailable': 0, 'electricBikesAvailable': 0, 'isArchived': False}, 3020: {'addressStreet': '3051 South St.', 'addressCity': 'Philadelphia', 'addressState': 'PA', 'addressZipCode': '19147', 'bikesAvailable': 6, 'closeTime': '03:55:00', 'docksAvailable': 29, 'eventEnd': None, 'eventStart': None, 'isEventBased': False, 'isVi

What I have now

- name: Manage authorized SSH keys
  authorized_key:
    user: "{{ item.username }}"
    key: "{{ item.ssh_keys | join('\n') }}"
    exclusive: yes
  loop: "{{ users }}"
  when: users is defined and users != '' and users is iterable and users | length > 0 and item.state is defined and item.state == 'present' and item.ssh_keys is defined and item.ssh_keys != '' and item.ssh_keys is iterable and item.ssh_keys | length > 0
@ericoc
ericoc / guru_broken_ssl
Last active March 9, 2018 20:18
the certificate being served by getguru.com is only valid for the wildcard subdomain and not the base domain name
eric@air ~ $ curl -vv https://getguru.com/
* Trying 13.33.74.41...
* TCP_NODELAY set
* Connected to getguru.com (13.33.74.41) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH
* successfully set certificate verify locations:
* CAfile: /etc/ssl/cert.pem
CApath: none
Greetings,
My name is Ajay and I'm an IT Recruiter at IDC Technologies Inc. We are currently searching resources to fill one of the potential position with one of our customers.
Kindly check the below requirement and let me know if you would be interested.
Role: Web Services
Location: Auburn Hills, MI
Duration: 6 months+
Job Description:
Minimum of 7+ years overall IT experience: including 5+ years of web service development and integration experience
• Demonstrated experience in CSS, HTML5 and JavaScript (Angular, JQuery, Bootstrap, etc), JSON, XML
Delivered-To: eric@ericoc.com
Received: by 10.176.83.3 with SMTP id x3csp5906uax;
Wed, 10 Jan 2018 08:14:15 -0800 (PST)
X-Google-Smtp-Source: ACJfBoss8CLgJBHjbHJxT+//kU7HGuFttmtbrEG6VZKBl92m2YnSC2rCnff5LOxD+1cjymI7nZhu
X-Received: by 10.200.43.154 with SMTP id m26mr25171166qtm.195.1515600855072;
Wed, 10 Jan 2018 08:14:15 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; t=1515600854; cv=none;
d=google.com; s=arc-20160816;
b=a5fxwWUZsPOJ3Uym6qcftj16ZZdJ0DaBn5jMM8E+/K9HjiSH38+/2yigdjx+Fd9HPW
kWr7n+zEQwbNAqE/jHSDxdKmZ5vEHlwtyCiJ146vYFs1WUWoB1GlFBs69TEKFouTXKw9