2015-10-21
- jennifer
- martym
sudo add-apt-repository ppa:webupd8team/sublime-text-3
sudo apt-get update
sudo apt-get install sublime-text-installer
run /opt/sublime_text/sublime_text or sudo ln -s /opt/sublime_text/sublime_text /usr/local/bin/subl
with ubuntu bash on Windows 10 and Xming:
| alias kc='kubectl' | |
| alias kclf='kubectl logs --tail=200 -f' | |
| alias kcgs='kubectl get service -o wide' | |
| alias kcgd='kubectl get deployment -o wide' | |
| alias kcgp='kubectl get pod -o wide' | |
| alias kcgn='kubectl get node -o wide' | |
| alias kcdp='kubectl describe pod' | |
| alias kcds='kubectl describe service' | |
| alias kcdd='kubectl describe deployment' | |
| alias kcdf='kubectl delete -f' |
| // Every jenkins file should start with either a Declarative or Scripted Pipeline entry point. | |
| node { | |
| //Utilizing a try block so as to make the code cleaner and send slack notification in case of any error | |
| try { | |
| //Call function to send a message to Slack | |
| notifyBuild('STARTED') | |
| // Global variable declaration | |
| def project = 'sa-android' | |
| def appName = 'Sample App' |
| #!/bin/bash -e | |
| set -o pipefail | |
| # PREREQUISITES: | |
| # | |
| # 1. mailx command line utility | |
| # 2. Firewall access to TLS SMTP port 465 on the SES server specified in SES_ENDPOINT, below. | |
| # | |
| # INSTRUCTIONS: | |
| # |
This is a script for checking if any of the passwords you have stored in LastPass have been exposed through previous data breaches.
To use the script you need to have Python 3 installed and you need a CSV export of your LastPass vault. The export can be generated from the LastPass CLI with:
lpass export > lastpass.csv
or can be extracted with the browser plugin by going to the LastPass icon β More Options β Advanced β Export β LastPass CSV File (note that I did have problems getting this to work).
| # system maximum | |
| cat /proc/sys/fs/file-max | |
| # available limit | |
| ulimit -n | |
| # Increase system-wide limit in /etc/sysctl.conf | |
| fs.file-max = 200000 | |
| # Refresh |
| #!/bin/bash | |
| TMP=`mktemp` | |
| trap ctrlC INT | |
| removeTempFiles() { | |
| rm -f $TMP | |
| } | |
| ctrlC() { |
| { | |
| "agent": { | |
| "metrics_collection_interval": 10, | |
| "logfile": "/opt/aws/amazon-cloudwatch-agent/logs/amazon-cloudwatch-agent.log" | |
| }, | |
| "metrics": { | |
| "metrics_collected": { | |
| "cpu": { | |
| "resources": [ | |
| "*" |