Create new ssh key
ssh-keygen -t rsa -b 4096 -C "[email protected]"~/.ssh/config
# Personal GitHub account| # input a pcap file from standard input | |
| INPUT_PCAP_FILE=$1 | |
| HEADER=y | |
| SEPARATOR=, | |
| QUOTE=d | |
| # display standard output | |
| tshark \ | |
| -r ${INPUT_PCAP_FILE} \ |
Create new ssh key
ssh-keygen -t rsa -b 4096 -C "[email protected]"~/.ssh/config
# Personal GitHub account| # This configuration file is provided on an "as is" basis, | |
| # with no warranties or representations, and any use of it | |
| # is at the user's own risk. | |
| # | |
| # You will need to edit domain name information, IP addresses for | |
| # redirection (at the bottom), SSL certificate and key paths, and | |
| # the "Public-Key-Pins" header. Search for any instance of "TODO". | |
| user www-data; | |
| worker_processes 4; |
| version: "3" | |
| services: | |
| jenkins: | |
| build: . | |
| user: root | |
| volumes: | |
| - /jenkins/data:/var/jenkins_home | |
| - /jenkins/artifacts:/var/jenkins_artifacts | |
| - /var/run/docker.sock:/var/run/docker.sock |
| Start with | |
| select DISTINCT CITY from STATION where CITY rlike '^[a,e,i,o,u]'; | |
| End with | |
| select DISTINCT CITY from STATION where CITY rlike '[a,e,i,o,u]$'; | |
| Both Start and end | |
| select DISTINCT CITY from STATION where CITY rlike '^[a,e,i,o,u].*[a,e,i,o,u]$'; | |
| SELECT DISTINCT CITY from STATION where CITY REGEXP '^[^aeiou].*[^aeiou]$'; |
| Timezone setting is now handled by Setup-alpine#setup-timezone | |
| Note: Only for NON uclibc installs!!! | |
| glibc based installs use different timezone setup. | |
| apk add tzdata | |
| ls /usr/share/zoneinfo | |
| Suppose you want to use Brussels First copy the proper zone to localtime | |
| cp /usr/share/zoneinfo/Europe/Brussels /etc/localtime |
sudo apt update sudo apt -y install curl apt-transport-https curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add - echo "deb https://apt.kubernetes.io/ kubernetes-xenial main" | sudo tee /etc/apt/sources.list.d/kubernetes.list sudo apt update sudo apt -y install vim git curl wget kubelet kubeadm kubectl sudo apt-mark hold kubelet kubeadm kubectl sudo sed -i '/ swap / s/^(.*)$/#\1/g' /etc/fstab sudo swapoff -a sudo modprobe overlay
| The format of the/etc/shadow file is as follows: | |
| Username:password:last_change:min_change:max_change:warm:failed_expire:expiration:reserved. | |
| The contents of the/etc/passwd file are as follows: | |
| Each line consists of a semicolon-delimited string of characters, in the following format: |
| def merge_dict(nested_dist): | |
| """Convert nested dict to one dist | |
| Args: | |
| nested_dist (str): str nested dist | |
| Returns: | |
| [dist]: merged dist | |
| """ |
| "ruby -e "" | |
| require 'net/https' | |
| require 'json' | |
| uri = URI.parse('https://hooks.slack.com/services/xx/xx/xx') | |
| http = Net::HTTP.new(uri.host, uri.port) | |
| http.use_ssl = true | |
| request = Net::HTTP::Post.new(uri.request_uri, {'Content-Type' => 'application/json'}) | |
| request.body = { \""channel\"" => \""#general\"", \""username\"" => \""mmonit\"", \""text\"" => \""[#{ENV['MONIT_HOST']}] #{ENV['MONIT_SERVICE']} - #{ENV['MONIT_DESCRIPTION']}\"" }.to_json | |
| response = http.request(request) | |
| puts response.body |