:root {
--blue: #007bff;
--indigo: #6610f2;
--purple: #6f42c1;
--pink: #e83e8c;
--red: #dc3545;
--orange: #fd7e14;
--yellow: #ffc107;
--green: #28a745;
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
- 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...
- 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.
- 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.
- 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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"net/http" | |
"io/ioutil" | |
) | |
func main() { | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"strings" | |
"net/http" | |
"io/ioutil" | |
) | |
func main() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" ┌───────────────────────────┐ | |
" │ NeoVim configuration file │ | |
" │ Author: Vincent RABAH │ | |
" │ Update date: 2017-06-01 │ | |
" └───────────────────────────┘ | |
" ┌─────────┐ | |
" │ Plugins │ | |
" └─────────┘ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
modprobe bonding | |
ifconfig bond0 192.168.0.1 netmask 255.255.0.0 | |
ifenslave bond0 eth0 eth1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
NewerOlder