Skip to content

Instantly share code, notes, and snippets.

View coffnix's full-sized avatar

Raphael Bastos aka coffnix coffnix

View GitHub Profile
#!/bin/bash
# Necessario configurar no /etc/crontab a seguinte linha:
#
# */30 * * * * zabbix /etc/zabbix/scripts/dnsbl.sh
#
##########################################################
# Debug
#set -x
Rule Brazil 2017 only - Feb 19 00:00 0 -
Rule Brazil 2017 only - Oct 15 00:00 1 S
Rule Brazil 2018 only - Feb 18 00:00 0 -
Rule Brazil 2018 only - Nov 18 00:00 1 S
Rule Brazil 2019 only - Feb 17 00:00 0 -
Rule Brazil 2019 only - Oct 20 00:00 1 S
Rule Brazil 2020 only - Feb 16 00:00 0 -
Rule Brazil 2020 only - Oct 18 00:00 0 -
Rule Brazil 2021 only - Feb 21 00:00 0 -
Rule Brazil 2021 only - Oct 17 00:00 1 S
@coffnix
coffnix / InstaPy scripts
Last active June 21, 2021 00:33
InstaPy scripts
emerge >=dev-python/selenium-3.13.0 >=dev-python/PyVirtualDisplay-0.2.1 >=www-apps/chromedriver-bin-2.41
pip install --user easyprocess
pip install --user clarifai
pip install --user emoji
pip install --user plyer
git clone https://github.com/timgrossmann/InstaPy
cd InstaPy
cp /usr/bin/chromedriver assets/chromedriver -p
@coffnix
coffnix / Freenode IRC.md
Created September 18, 2018 12:48 — forked from yeyewangwang/Freenode IRC.md
Freenode Nickserv Commands

Connect

/server chat.freenode.net

Nick

#!/usr/bin/env python
import os
import random
os.system('clear')
Problema = [ "A miseria", "A inflacao", "O desemprego", "A violencia", "A crise", "O crime" ]
Natureza = [ "e uma invencao", "e uma estrategia", "e uma manobra", "e um complo", "e uma instituicao", "e uma criacao" ]
Culpado = [ "da burguesia", "do imperialismo americano", "das elites", "da oposicao", "do capitalismo", "das politicas neoliberais" ]
#!/usr/bin/env python
import os
import random
os.system('clear')
Problema = [ "A greve", "O foro de Sao Paulo", "O Stalinismo", "A desigualdade", "Cuba Socialista", "O Golpe de 1964" ]
Natureza = [ "e uma invencao", "e uma estrategia", "e uma manobra", "e um complo", "e uma bandeira", "e uma falacia" ]
Culpado = [ "do Fidel Castro", "dos sindicalistas", "dos baderneiros", "dos petralhas", "dos idiotas uteis", "do MEC" ]
#!/bin/bash
# cpustatus
#
# Prints the current state of the CPU like temperature, voltage and speed.
# The temperature is reported in degrees Celsius (C) while
# the CPU speed is calculated in megahertz (MHz).
function convert_to_MHz {
let value=$1/1000
echo "$value"