Skip to content

Instantly share code, notes, and snippets.

View r1w1s1's full-sized avatar
:octocat:

Ricardson (r1w1s1) r1w1s1

:octocat:
View GitHub Profile
@r1w1s1
r1w1s1 / .Xdefaults
Created March 30, 2018 17:11 — forked from ei-grad/.Xdefaults
My urxvt config.
!! Appearance
urxvt.termName: rxvt-unicode
urxvt.scrollBar: false
urxvt.background: black
urxvt.foreground: gray
!! Font prefferenes
urxvt.font: xft:DejaVu Sans Mono:pixelsize=13
urxvt.boldFont: xft:DejaVu Sans Mono:pixelsize=13:weight=bold
urxvt.letterSpace: -1
!! Larger history limit
@r1w1s1
r1w1s1 / function.js
Created March 6, 2018 01:28 — forked from vgeshel/function.js
AWS Lambda function for forwarding SNS notifications to Slack
console.log('Loading function');
const https = require('https');
const url = require('url');
// to get the slack hook url, go into slack admin and create a new "Incoming Webhook" integration
const slack_url = 'https://hooks.slack.com/services/...';
const slack_req_opts = url.parse(slack_url);
slack_req_opts.method = 'POST';
slack_req_opts.headers = {'Content-Type': 'application/json'};
@r1w1s1
r1w1s1 / ssh_config
Last active September 30, 2017 15:47
~/.ssh/config Example
Host *
ServerAliveInterval 60 #Avoid disconnection
StrictHostKeyChecking no #Disable SSH Host Key Checking
UserKnownHostsFile /dev/null #avoid create the ssh/known_hosts file
Host prod
HostName xx.xx.xx.xx
User root
Host qa
@r1w1s1
r1w1s1 / tmux-cheatsheet.markdown
Created June 30, 2017 21:13 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@r1w1s1
r1w1s1 / output
Created January 10, 2017 19:07 — forked from halberom/output
ansible - using lookup to get a date timestamp into a variable
...
TASK: [debug var=mydate] ******************************************************
ok: [localhost] => {
"mydate": "20140605101824"
}
...
echo 0 > /sys/fs/selinux/enforce
#checking the status
sestatus
stop all containers:
sudo docker kill $(sudo docker ps -q)
remove all containers
sudo docker rm $(sudo docker ps -a -q)
remove all docker images
sudo docker rmi $(sudo docker images -q)
remove all dangling (unused) images
FROM centos:7
MAINTAINER Ricardson Williams <ricardsonwilliams@gmail.com>
RUN \
yum -y update \
&& yum -y install \
tar \
which \
&& yum clean all \

I use most Google Apps like Drive, Docs, Gmail...

1 - Install epel and nux repositories

sudo yum -y install epel-release && sudo rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm

1.1 Update the whole system

FROM alpine:3.4
MAINTAINER Ricardson Williams <ricardsonwilliams@gmail.com>
RUN \
apk add --no-cache \
tar \
which \
bash \
curl \