Skip to content

Instantly share code, notes, and snippets.

View itwars's full-sized avatar
😎
C◎⦿L

Vincent RABAH itwars

😎
C◎⦿L
View GitHub Profile
elasticsearch:
image: elasticsearch:6.7.2
container_name: elasticsearch
volumes:
- es_data:/usr/share/elasticsearch/data
# - ${DATA_PATH}/elasticsearch/config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml
# - ${DATA_PATH}/elasticsearch/config/jvm.options:/usr/share/elasticsearch/config/jvm.options
# - ${DATA_PATH}/elasticsearch/config/log4j2.properties:/usr/share/elasticsearch/config/log4j2.properties
environment:
- cluster.name=mnx
:root {
    --blue: #007bff;
    --indigo: #6610f2;
    --purple: #6f42c1;
    --pink: #e83e8c;
    --red: #dc3545;
    --orange: #fd7e14;
    --yellow: #ffc107;
    --green: #28a745;

ref.

  1. I became "CEO" at 20. I dropped out of college. I had only interned somewhere prev. Looking back, I couldn't imagine the journey that would occur from writing code all day to scaling to 300 people. I got lucky, I screwed up a lot, & had a lot of help. Here's what I learned...
  2. Giving up control is hard & it was the hardest for me. I felt like everything at the beginning was important. You can't be good at everything tho. As you grow, I learned it's important to conciously give up things constantly. If you don't, you won't scale & everything suffers.
  3. Your VCs won't want to offend you so I'll suggest it: get a CEO coach & do a 360 review of yourself every few years. It was life changing for me. You can’t fix everything about yourself. Focus on 2-3 things each year. Tell your company you’re doing it. It'll build trust.
  4. Over time, you will feel like all you’re doing is spending time in meetings but not getting any real work done. You are th
docker ps [--format="TEMPLATE"]
--format="TEMPLATE"
Pretty-print containers using a Go template.
Valid placeholders:
.ID - Container ID
.Image - Image ID
.Command - Quoted command
.CreatedAt - Time when the container was created.
.RunningFor - Elapsed time since the container was started.
package main
import (
"fmt"
"net/http"
"io/ioutil"
)
func main() {
package main
import (
"fmt"
"strings"
"net/http"
"io/ioutil"
)
func main() {
@itwars
itwars / vimrc
Last active October 1, 2017 10:08
" ┌───────────────────────────┐
" │ NeoVim configuration file │
" │ Author: Vincent RABAH │
" │ Update date: 2017-06-01 │
" └───────────────────────────┘
" ┌─────────┐
" │ Plugins │
" └─────────┘
modprobe bonding
ifconfig bond0 192.168.0.1 netmask 255.255.0.0
ifenslave bond0 eth0 eth1
@itwars
itwars / Aircrack Commands
Created September 18, 2016 16:02 — forked from victorreyesh/Aircrack Commands
Cracking WPA2 / WEP Wifi / Aircrack 10 seconds guide. For Mac OSX
//Install Macports.
//Install aircrack-ng:
sudo port install aircrack-ng
//Install the latest Xcode, with the Command Line Tools.
//Create the following symlink:
sudo ln -s /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport /usr/sbin/airport
//Figure out which channel you need to sniff:
sudo airport -s
sudo airport en1 sniff [CHANNEL]
@itwars
itwars / docker-machine-download.sh
Last active April 27, 2018 08:49
Always download the latest version of docker-machine
curl -s https://github.com/docker/machine/releases/latest | sed -e 's#<html><body>You are being <a href="https://github.com/docker/machine/releases/tag/##g' -e 's#">redirected</a>.</body></html>##' | xargs -i -t curl -L https://github.com/docker/machine/releases/download/{}/docker-machine-`uname -s`-`uname -m` --output /tmp/docker-machine && chmod +x /tmp/docker-machine && sudo cp /tmp/docker-machine /usr/local/bin/docker-machine