Skip to content

Instantly share code, notes, and snippets.

Avatar

Airton Zanon airtonzanon

View GitHub Profile
View palestranstes.md

Internacionais

  • Sara Goleman
  • Michelangelo VanDan
  • Rasmus Lerdorf
  • Marco Pivetta
  • Bruno Neves
  • Airton Zanon
  • Ricardo Tulio
  • Taylor Otwell
  • Ben Ramsey
@airtonzanon
airtonzanon / keyboard-toggle.sh
Created May 13, 2017
Keyboard Disable and Enable Toggle
View keyboard-toggle.sh
#!/bin/bash
status=$(xinput list --long "AT Translated Set 2 keyboard" | grep "disabled")
if [[ "$status" =~ "disabled" ]]
then
echo "Enabling keyboard"
xinput enable "AT Translated Set 2 keyboard"
exit;
View .bashrc
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
@airtonzanon
airtonzanon / v-exim-queue-12later
Last active Oct 26, 2016
E-mail log para verificar a fila do exim (emails que estão por mais de 12 horas nela)
View v-exim-queue-12later
#!/bin/bash
# info: Send email log to email
# options: NONE
#
#----------------------------------------------------------#
# Variable&Function #
#----------------------------------------------------------#
@airtonzanon
airtonzanon / exim-commands.md
Last active Oct 25, 2016
Some Exim Commands
View exim-commands.md

Some Exim Commands

  • exim -bp or mailq - List queue
  • exim -bpc - Count e-mails in queue
  • exim -qff - Force try to send queue, even freeze e-mails (if you use -qf, just try to send queue without freeze e-mails)
  • exiqgrep -i -z | xargs exim -Mrm - Remove all freeze e-mails from queue - if you use without -z, you can remove all e-mails from queue
  • exim -Mrm message-id - Remove a message from queue
  • exim -Mvh message-id - View a message's header
  • exim -Mvb message-id - View a message's body
  • exim -v -M message-id - Try to send again some message
View PessoaModel.php
<?php
class Pessoa {
private $nome;
private $sexo;
private $idade;
public function __construct($nome = null, $sexo = null, $idade = null){
$this->nome = $nome;
@airtonzanon
airtonzanon / developer-mode.md
Last active Oct 18, 2016
Enable Developer Mode Chromebook
View developer-mode.md

#How enable Developer Mode Chromebook

Warning

  • When you enable developer mode all of your files, directorys and accounts will be deleted.
  • Google doesn't support your Chromebook in developer mode.

Enabling

  • Turn on your Chromebook.
View gist:00b83de183e5fcde3661
Verifying that +airtonzanon is my blockchain ID. https://onename.com/airtonzanon