This file contains hidden or 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
cat ~/.config/powerline/config.json | |
{ | |
"ext": { | |
"shell": { | |
"colorscheme": "solarized", | |
"theme": "default_leftonly" | |
} | |
} | |
} |
This file contains hidden or 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
ifName{ifDescr="ether1",ifName="ether1",instance="192.168.12.1",job="snmp"} 1 | |
ifName{ifDescr="ether2",ifName="ether2",instance="192.168.12.1",job="snmp"} 1 | |
ifName{ifDescr="ether3",ifName="ether3",instance="192.168.12.1",job="snmp"} 1 | |
ifName{ifDescr="ether4",ifName="ether4",instance="192.168.12.1",job="snmp"} 1 | |
ifName{ifDescr="ether5",ifName="ether5",instance="192.168.12.1",job="snmp"} 1 | |
ifName{ifDescr="bridge1",ifName="bridge1",instance="192.168.12.1",job="snmp"} 1 | |
ifName{ifDescr="<pppoe-honda>",ifName="<pppoe-honda>",instance="192.168.12.1",job="snmp"} | |
ifName{ifDescr="<pppoe-jmartins>",ifName="<pppoe-honda>",instance="192.168.12.1",job="snmp"} |
This file contains hidden or 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
import { FormControl } from '@angular/forms'; | |
import { Component, EventEmitter, OnInit, Input, Output } from '@angular/core'; | |
/* | |
Generated class for the NumberPicker component. | |
See https://angular.io/docs/ts/latest/api/core/index/ComponentMetadata-class.html | |
for more info on Angular 2 Components. | |
*/ | |
@Component({ |
This file contains hidden or 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 ( | |
"bufio" | |
"fmt" | |
"golang.org/x/crypto/ssh" | |
"log" | |
"os" | |
"time" | |
) |
This file contains hidden or 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
set nocompatible " be iMproved, required | |
filetype off " required | |
filetype plugin indent on | |
" set the runtime path to include Vundle and initialize | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
" alternat |
This file contains hidden or 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
func main() { | |
names := []string{"joao", "alex", "ze", "gleicon", "mane", "maria"} | |
fmt.Printf("names : %v\n", names) | |
shuffleList := names | |
shuffle(shuffleList) | |
fmt.Printf("Shuffled : %v\n", shuffleList) | |
} | |
func shuffle(arr []string) { | |
rand.Seed(int64(time.Now().Nanosecond())) // no shuffling without this line |
This file contains hidden or 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
awk '!seen[$0]++' filename | |
or | |
sort -u -o filename1.txt filename2.txt | |
write dup files into text file | |
sort file1.txt file2.txt | uniq -d > duplicity.txt |
This file contains hidden or 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
Compare CSR, KEY and CRT to ensure that matches: | |
openssl x509 -noout -modulus -in certificate.crt | openssl md5 | |
openssl rsa -noout -modulus -in privateKey.key | openssl md5 | |
openssl req -noout -modulus -in CSR.csr | openssl md5 | |
This file contains hidden or 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
for d in `docker ps | awk '{print $1}' | tail -n +2`; do | |
d_name=`docker inspect -f {{.Name}} $d` | |
echo "=========================================================" | |
echo "$d_name ($d) container size:" | |
sudo du -d 2 -h /var/lib/docker/devicemapper | grep `docker inspect -f "{{.Id}}" $d` | |
echo "$d_name ($d) volumes:" | |
docker inspect -f "{{.Volumes}}" $d | sed 's/map\[//' | sed 's/]//' | tr ' ' '\n' | sed 's/.*://' | xargs sudo du -d 1 -h | |
done |
This file contains hidden or 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
Using system library | |
gem install nokogiri -- --use-system-libraries --with-xml2-include=/usr/include/libxml2/ |
NewerOlder