Skip to content

Instantly share code, notes, and snippets.

View nrb's full-sized avatar
🤔

Nolan Brubaker nrb

🤔
View GitHub Profile
[ci-server]
1.1.1.1 conection=local
try:
session.add(curtag)
except IntegrityError:
pass
{'ErrorCode': 1,
'ErrorStatus': 'Success',
'Message': 'Ok',
'MessageData': {},
'Response': [{'displayName': 'guubu',
'iconPath': '/img/theme/destiny/icons/icon_psn.png',
'membershipId': '4611686018440135855',
'membershipType': 2}],
'ThrottleSeconds': 0}
@nrb
nrb / main.rs
Created September 18, 2017 19:30
fn get_member(platform: i32, user: &str) -> String {
let url = format!("https://bungie.net/Platform/Destiny2/SearchDestinyPlayer/{}/{}/", platform, user);
url
}
fn main() {
println!("{}", get_member(2, &"guubu"));
}
@nrb
nrb / gist:a9732dfea95327b8cd08279648cb082e
Created September 14, 2017 22:03
Drew's D2 faction progression
Hunter
-----
Dead Zone Scout: 210 / 2000 (17)
Exodus Black AI: 65 / 2000 (19)
Fragmented Researcher: 370 / 2000 (16)
Field Commander: 250 / 2000 (17)
Gunsmith: 1575 / 2000 (6)
Vanguard Tactical: 0 / 2000 (20)
Vanguard Research: 0 / 7000 (3)
The Crucible: 0 / 2000 (20)
@nrb
nrb / gist:df5e3ce46c2880c9a3bed4aaa70367f2
Created September 14, 2017 21:12
Destiny faction info
Dead Zone Scout: 105 / 2000
Exodus Black AI: 735 / 2000
Fragmented Researcher: 375 / 2000
Field Commander: 345 / 2000
Gunsmith: 1575 / 2000
Vanguard Tactical: 600 / 2000
Vanguard Research: 2000 / 7000
The Crucible: 1100 / 2000
A list of things that are pretty cool but the die-hard fans ruin it:
-Rick and Morty
-Sports
-Vegetarianism/Veganism
-Reading books
-Being white
-Anime
-Traveling
-Fixed gear bicycles
my_vars = {}
with open('the_file', 'r') as f:
lines = f.read()
for line in lines:
key, value = line.split('=')
my_vars[key] = value
TASK [os_swift : Swift object server configuration] ****************************
task path: /etc/ansible/roles/os_swift/tasks/swift_storage_hosts_object.yml:16
container_name: "swift1"
physical_hostname: "swift1"
container_name: "swift3"
physical_hostname: "swift3"
skipping: [swift1_swift_proxy_container-f8b3d6d6] => (item={u'dest': u'/etc/swift/object-server/object-server.conf', u'src': u'object-server.conf.j2', u'config_type': u'ini', u'c
onfig_overrides': {}}) => {"changed": false, "item": {"config_overrides": {}, "config_type": "ini", "dest": "/etc/swift/object-server/object-server.conf", "src": "object-server.
conf.j2"}, "skip_reason": "Conditional check failed", "skipped": true}
skipping: [swift3_swift_proxy_container-80c49ff7] => (item={u'dest': u'/etc/swift/object-server/object-server.conf', u'src': u'object-server.conf.j2', u'config_type': u'ini', u'c
1193 - main: Beginning new inventory run
988 - _extra_config: Merged overrides from file repo-infra_hosts.yml
988 - _extra_config: Merged overrides from file shared-infra_hosts.yml
988 - _extra_config: Merged overrides from file os-infra_hosts.yml
988 - _extra_config: Merged overrides from file swift-proxy_hosts.yml
988 - _extra_config: Merged overrides from file swift.yml
988 - _extra_config: Merged overrides from file identity_hosts.yml
988 - _extra_config: Merged overrides from file compute_hosts.yml
988 - _extra_config: Merged overrides from file log_hosts.yml
988 - _extra_config: Merged overrides from file storage-infra_hosts.yml