Skip to content

Instantly share code, notes, and snippets.

View 1oglop1's full-sized avatar

Jan Gazda 1oglop1

  • Amsterdam
View GitHub Profile
@1oglop1
1oglop1 / final_cfn_template.json
Last active February 18, 2019 07:33
Sceptre state machine definition resolver
{
"Outputs": {
"Arn": {
"Value": {
"Ref": "sfnname"
}
}
},
"Parameters": {
"RoleArn": {
@1oglop1
1oglop1 / iam_json.py
Last active October 9, 2018 09:54
Convert AWS IAM Credential Report csv to JSON for elasticsearch ingestion.
"""
AWS IAM credential report produces csv with bit unusual values which
complicated ES ingestion.
https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_getting-report.html
This simple script converts the 'null' values into correct form.
"""
import csv
import json
from dateutil.parser import parse
@1oglop1
1oglop1 / tensor.txt
Created February 16, 2018 18:20
tensor error
(anaserp) C:\Users\win10\serp>serpent train context 1
c:\users\win10\anaconda3\envs\anaserp\lib\site-packages\h5py\__init__.py:36: FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`.
from ._conv import register_converters as _register_converters
Using TensorFlow backend.
Found 98 images belonging to 4 classes.
Found 14 images belonging to 4 classes.
2018-02-16 19:11:30.020571: I C:\tf_jenkins\workspace\rel-win\M\windows-gpu\PY\36\tensorflow\core\platform\cpu_feature_guard.cc:137] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX AVX2
2018-02-16 19:11:30.264945: I C:\tf_jenkins\workspace\rel-win\M\windows-gpu\PY\36\tensorflow\core\common_runtime\gpu\gpu_device.cc:1105] Found device 0 with properties:
name: GeForce GTX 760 major: 3 minor: 0 memoryClockRate(GHz): 1.0845
pciBusID: 0000:01:00.0
"""
Find duplicated files module
"""
import filecmp as fcmp
from pprint import pprint
import sys
import os
def args():
#!/usr/bin/python3
import filecmp as fcmp
import itertools as it
from pprint import pprint
import sys
import os
if 2 != len(sys.argv):
print("Usage: dup.py [FOLDER]")
exit()
@1oglop1
1oglop1 / dup.py
Created August 18, 2016 12:36
skill assesment
#!/usr/bin/python3
import filecmp as fcmp
import itertools as it
from pprint import pprint
import sys
import os
if 2 != len(sys.argv):
print("Usage: dup.py [FOLDER]")
exit()