Skip to content

Instantly share code, notes, and snippets.

0x1f3ee6647fc5e3756d8037ae5dcfe137df5acf1ed88533ef2c4ddc3df914a87a

@anxolin
anxolin / Keybase.md
Created February 17, 2020 21:36
keybase.md

Keybase proof

I hereby claim:

  • I am anxolin on github.
  • I am anxolin (https://keybase.io/anxolin) on keybase.
  • I have a public key ASBVK09wGJZ9Pz4OyTDcqoq_1K26kbmN1eSKiWjQ-gpgMQo

To claim this, I am signing this object:

Build Status

Dotfiles

Installs the preferences for aplications such as tmux, zsh or vim.

There's also documentation showing the plugins and configuration for:

@anxolin
anxolin / index.html
Created January 31, 2019 11:52
Vue minimal web (with vue router)
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>VUE example</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<style>
chown -R www-data:www-data /var/www
find /var/www -type f -exec chmod 0660 {} \;
find /var/www -type d -exec chmod 2770 {} \;
chmod 2775 /var/www
// ***********************************
// ** Media queries: Responsive **
// ***********************************
/* sm - Small devices (tablets and up) */
@media screen and (min-width: 768px) {
}
/* md - Medium devices (desktops and up) */
@media screen and (min-width: 992px) {
@anxolin
anxolin / deploy.conf
Last active October 12, 2020 23:08
Deploy app/web with rsync
################################
# Staging: Deployment conf
################################
# overrided by: deployment-pro.conf
# Target
SERVER=example.com
DEPLOY_PATH=/opt/my_service
DEPLOY_USER=my_service
SERVER_POST_DEPLOY_COMMAND="sudo systemctl restart my_service"
@anxolin
anxolin / gist:3a8f83de7acf96e7c8d0c3dd94c25838
Last active December 6, 2019 10:54
Get Kubernetes exposed service IP/Port and run bussy box
#!/usr/bin/env sh
SERVICE=${1:-web}
echo "Getting service IP and PORT for Service '$SERVICE'..."
# Get IP / Port
SERVICE_IP=$(kubectl get service $SERVICE -o go-template='{{.spec.clusterIP}}')
SERVICE_PORT=$(kubectl get service $SERVICE -o go-template='{{(index .spec.ports 0).port}}')