Skip to content

Instantly share code, notes, and snippets.

Avatar
🎧
SomaFM — Defcon radio FTW. Best radio ever.

Thomas Vassilian tvass

🎧
SomaFM — Defcon radio FTW. Best radio ever.
  • Red Hat
  • Montréal, QC, Canada
View GitHub Profile
@tvass
tvass / gist:eaaf391f80be12df20f2ab566fa4720a
Created Sep 6, 2019
(nv) not tested code to loop over dci topics and start a run
View gist:eaaf391f80be12df20f2ab566fa4720a
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
@tvass
tvass / Ansible perf PoC
Created Aug 20, 2018
Performance issue with Ansible when using 'stat' module
View Ansible perf PoC
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 / pg
Created Aug 1, 2018
pg backup command
View pg
pg_dump -h localhost -U dci -d dci -Fc > backup
pg_restore -h localhost -U dci -d dci --clean backup
View gist:9a35ca8f7028cb4f527b
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