Skip to content

Instantly share code, notes, and snippets.

View bjcubsfan's full-sized avatar
👋

B. J. Potter bjcubsfan

👋
View GitHub Profile
{
2: 2,
11: 6,
4: 21,
5: 20,
6: 20,
7: 2,
8: 15,
9: 227,
42: 9,
@bjcubsfan
bjcubsfan / gust.py
Last active December 27, 2015 09:29 — forked from jhaubrich/gust.py
{
128: 682, # waas_w???wmsp?c1 (OUR AGC)
129: 4350, # waas_w???rg1p?c1 (OUR RG1)
130: 796, # waas_w???rg3p?c1 RG3
182: 114, # waas_w???gs1p?c1
184: 228, # waas_w???gcvp?c1
185: 76,
189: 1,
190: 114, # waas_w???gs3p?c1
191: 76,
def objectify(frame):
""" yeilds one parsed object defined by the parsers in
the waas library.
"""
parsers = {'SP': sp_log.parse,
'CP': cp_log.parse,
'WAAS': waas_log.parse,
}
log_source = frame['log_type']
{'site': 'zse'
'wre': 'b'
'waas_second': 1046639304.0
'header': {'current_wre_mode': 5,
'discarded_logs': 0,
'gps_crc': 2548719432,
'lru_status_flag': 0,
'number_of_geo_obs': 3,
'number_of_gps_obs': 11,
'rate_group_type': 2,
@bjcubsfan
bjcubsfan / add_users_to_projects.sh
Created March 9, 2012 16:35 — forked from lanwin/add_users_to_projects.sh
Script to Automatically add all GitLab users to all projects
#!/bin/sh
baseurl=http://mygitlaburl
usermail=adminuser@mymailserver
userpass=adminpassword
repo_access=2 #0=denied 1=read 2=read&write
project_access=2 #0=deined 1=read 2=report 3=admin
# login
curl -s -I -c cookies.txt -d "utf8=✓&user[email]=$usermail&user[password]=$userpass&commit=Sign+in" $baseurl/users/sign_in