Skip to content

Instantly share code, notes, and snippets.

View wandersonwhcr's full-sized avatar
🇺🇦
#StandWithUkraine

Wanderson C. wandersonwhcr

🇺🇦
#StandWithUkraine
View GitHub Profile
#!/usr/bin/env sh
touch -t 202001010000 /tmp/timestamp && \
find . ! -newer /tmp/timestamp -delete
@wandersonwhcr
wandersonwhcr / main.yml
Last active June 7, 2018 17:56
Ansible MySQL
- name: key
apt_key:
keyserver: keyserver.ubuntu.com
id: 5072E1F5
- name: repository
copy:
content: deb http://repo.mysql.com/apt/debian stretch mysql-5.7 mysql-tools
dest: /etc/apt/sources.list.d/mysql.list
@wandersonwhcr
wandersonwhcr / .Xdefaults
Last active September 17, 2021 12:18
.Xdefaults
! to match gnome-terminal "Linux console" scheme
! foreground/background
URxvt*background: #000000
URxvt*foreground: #FFFFFF
! black
URxvt.color0 : #2E3436
URxvt.color8 : #555753
! red
URxvt.color1 : #CC0000
URxvt.color9 : #EF2929
@wandersonwhcr
wandersonwhcr / hash-generator.php
Last active August 25, 2017 14:42
Hash Generator - Generates Random Tokens and Hashes Manually
<?php
$type = 'SHA512';
$hashes = [
'MD5' => 128,
'SHA1' => 160,
'SHA256' => 256,
'SHA512' => 512,
];
alias xs="xscreensaver-command --lock"
alias date-to-identifier="date +'%Y%m%d%H%M%S'"
@wandersonwhcr
wandersonwhcr / Connection.conf
Created March 26, 2017 18:13
WPA Supplicant
network={
ssid="Name of the Wireless Network"
psk="password"
}
@wandersonwhcr
wandersonwhcr / .vimrc
Last active March 23, 2020 12:57
Vim RC
" colors
syntax on
colorscheme wombat256mod
" mouse
set mouse=a
" search
set incsearch hlsearch ignorecase
" spaces
set list listchars=eol:$,tab:>-,trail:~,extends:>,precedes:<
" lines
#!/bin/bash
startx -- -nolisten tcp :0 vt7
@wandersonwhcr
wandersonwhcr / phpunit.php
Created August 18, 2016 21:29
Programmatically PHPUnit
<?php
chdir(__DIR__);
require 'vendor/autoload.php';
$suiteA = new PHPUnit_Framework_TestSuite();
$suiteA->addTestFiles([
'./module/PackageA/test/DumbTest.php',
@wandersonwhcr
wandersonwhcr / namespace-bug.php
Created August 11, 2016 18:55
Namespace Bug?
<?php
namespace One
{
class Foo
{
}
}
namespace Two