CCCPaste

FZF Window Switcher

#!/bin/bash
######################################################################
#This creates a windows switcher/launcher with fzf
#Copyright (C) 2020 Kris Occhipinti
#https://filmsbykris.com

LlaveConmutacion_Lucas

/*
* Lucas Trento
* Llave de conmutacion.
* Cada flanco ascendente en las entradas,
* invierte el estado de una única salida.

2020-06-16_asns.txt

count srcASN
8974 AS14061 DigitalOcean, LLC
2123 AS60781 LeaseWeb Netherlands B.V.
1827 AS202723 VAD SRL
1478 AS29066 velia.net Internetdienste GmbH

2020-06-16_users.txt

count user
27226 hello
269 administr
151 1
67 test

MapeoDeContador_Acomodar

/*
* Lucas Trento
* Mapeo_de_Contador
* Mapear en salidas, los 4 (cuatro) bits menos significativos
* (nibble bajo) de una variable contador.

2020-06-16_ips.txt

count srcIp
8562 165.227.193.199
1822 87.251.67.39
1432 194.61.54.112
1414 185.202.2.238

2020-06-15_asns.txt

count srcASN
7214 AS14259 Gtd Internet S.A.
2345 AS9304 HGC Global Communications Limited
2050 AS60781 LeaseWeb Netherlands B.V.
1800 AS202723 VAD SRL

2020-06-15_ips.txt

count srcIp
7214 190.153.172.92
2345 218.188.99.35
1800 87.251.67.39
1449 161.35.6.213

sqlite3 Dump tables to csv

###List all tables and dump to csv
table="$(sqlite3 owncloud.db ".tables"|tr " " "\n"|sort -u |fzf)"
sqlite3 -header -csv owncloud.db "select * from $table;"

2020-06-15_users.txt

count user
27309 hello
94 administr
90 test
27 _no_value_