Skip to content

Instantly share code, notes, and snippets.

View tvass's full-sized avatar
🎶
Defcon Radio.

Thomas Vassilian tvass

🎶
Defcon Radio.
View GitHub Profile
@tvass
tvass / gist:9a35ca8f7028cb4f527b
Created October 7, 2014 19:14
powernet412.mib
This file has been truncated, but you can view the full file.
-- *************************************************************************
-- AMERICAN POWER CONVERSION PowerNet-MIB
-- *************************************************************************
-- Copyright (c) 2014 American Power Conversion, Inc.
-- PowerNet is a Trademark of American Power Conversion Corp.
--
-- Title: APC TOP LEVEL PowerNet MIB
--
-- Version : 4.1.2
--
@tvass
tvass / pg
Created August 1, 2018 15:11
pg backup command
pg_dump -h localhost -U dci -d dci -Fc > backup
pg_restore -h localhost -U dci -d dci --clean backup
@tvass
tvass / Ansible perf PoC
Created August 20, 2018 14:04
Performance issue with Ansible when using 'stat' module
pwd : /home/tvass/Documents/work/ansible-perf
uname : Linux XXXXX 4.17.9-200.fc28.x86_64 #1 SMP Mon Jul 23 21:41:29 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
Ansible version : ansible 2.6.2 (same issue w/ 2.5.8 and 2.4.6.0)
1) Generate 300 random files
---
#!/bin/bash
# Generates ten data files, each 300 MB in size and filled with random data.
@tvass
tvass / gist:eaaf391f80be12df20f2ab566fa4720a
Created September 6, 2019 10:25
(nv) not tested code to loop over dci topics and start a run
Something like this ...
#!/bin/bash
array=( "7.6" "7.7" "7.8" )
for i in "${array[@]}"
do
cat <<EOF > /path/to/settings.yml
topic: $i
local_repo_ip: x.x.x.x