Skip to content

Instantly share code, notes, and snippets.

View joepreludian's full-sized avatar
🛰️
Working from home

Jonhnatha Trigueiro joepreludian

🛰️
Working from home
View GitHub Profile
[
{
"id": 1,
"name": "name-1",
"group_id": "com.example.name1",
"artifact_id": "name-1",
"filename_extension": "jar",
"classifier": null,
"created_at": "2018-05-17T17:59:17.522Z",
"updated_at": "2018-05-17T17:59:17.567Z",
@joepreludian
joepreludian / .tmux.conf
Last active December 11, 2018 19:30
My Customizations on Neovim and Tmux #WIP
#
# Joey Customizations
#
# use vim-like keys for splits and windows
bind-key v split-window -h
bind-key s split-window -v
bind-key h select-pane -L
bind-key j select-pane -D
bind-key k select-pane -U
@joepreludian
joepreludian / programaalterado03++.pas
Created June 21, 2017 02:48
Projeto de persistencia de dados
program programaalterado03;
uses crt;
const N = 500;
type Pessoa = record
num_form:integer;
salario : real;
idade : integer;
filhos : integer;
casa : char;
@joepreludian
joepreludian / docker_install_part2.sh
Last active October 7, 2016 02:27
Docker Install - Part 2
#!/bin/bash
wget https://gist.githubusercontent.com/joepreludian/abb17de9779cc12b4eff9a5e48211ac6/raw/5f926c816730f35802b5ccdb8946179e7dc86306/docker.repo -P /etc/yum.repos.d/
dnf groupinstall "Development Tools" -y
dnf install docker-engine -y
echo "* Create a partition /dev/sdc1 with type - linux LVM to continue."
read pause
cfdisk /dev/sdc;
pvcreate /dev/sdc1
vgcreate docker /dev/sdc1
@joepreludian
joepreludian / docker_install_part1.sh
Created October 7, 2016 01:50
Docker Install on Fedora - Part 1
#!/bin/bash
dnf install vim -y;
echo "rr-srv-armazempara" > /etc/hostname;
sed s/=enforcing/=disabled/g /etc/selinux/config > /etc/selinux/config.tmp; mv -f /etc/selinux/config.tmp /etc/selinux/config;
dnf update -y;
reboot;
@joepreludian
joepreludian / daemon.json
Last active October 7, 2016 01:48
Docker config for dockerd using thinpool - /etc/docker/daemon.json
{
"storage-driver": "devicemapper",
"storage-opts": [
"dm.thinpooldev=docker-thinpool",
"dm.use_deferred_removal=true"
]
}
@joepreludian
joepreludian / docker-thinpool.profile
Created October 7, 2016 01:02
Thin Pool Docker - /etc/lvm/profile/docker-thinpool.profile
activation {
thin_pool_autoextend_threshold=80
thin_pool_autoextend_percent=20
}
@joepreludian
joepreludian / docker.repo
Created October 7, 2016 00:22
docker repo for fedora
[dockerrepo]
name=Docker Repository
baseurl=https://yum.dockerproject.org/repo/main/fedora/$releasever/
enabled=1
gpgcheck=1
gpgkey=https://yum.dockerproject.org/gpg
# This is my VCL file for Varnish 4.0.2 & Wordpress 4.0
#
# ASSUME The builtin VCL is called afterwards.
#
# Specify VCL new 4.0 format.
vcl 4.0;
# Imports
import std;
@joepreludian
joepreludian / simple_firewal.sh
Created November 20, 2015 13:31
Simple firewall script to start. Allows only 22 and 80 port.
# Exclui as regras ativas
iptables -t nat -F
iptables -t mangle -F
iptables -t filter -F
### Exclui cadeias customizadas
iptables -X
### Zera os contadores das cadeias
iptables -t nat -Z