This flow is used to generate passcode on command-line in two-step verification.
-
Install brew
-
Install oath
brew install oath-toolkit
| import os | |
| import yaml | |
| ## Execution for me was: | |
| ## `python migrate_data.py > ./migration_inserts.sql` | |
| ## `sed -i '' 's/None/NULL/' ./migration_inserts.sql` | |
| ## `psql -f ./migration_inserts.sql` | |
| ## NOTE: A few things to know about the script here: | |
| ## - Artifacts were stored remotely, so no artifact migration |
| @echo off | |
| echo Stdout | |
| echo Stderr 1>&2 |
bin/kafka-topics.sh --zookeeper localhost:2181 --list
bin/kafka-topics.sh --zookeeper localhost:2181 --describe --topic mytopic
bin/kafka-topics.sh --zookeeper localhost:2181 --alter --topic mytopic --config retention.ms=1000
... wait a minute ...
I have ssh connections from multiple users. I want to log all connectsion except those from the user 'git'. How dow you create an exception to a filter ?
input {
file {
path => "/var/log/auth.log"
type => "syslog"
}
}
| # This task will stop and disable a service without failing if the service does not exist. | |
| # Requires Ansible 1.4 or newer. | |
| # Update Dec 2016: Have rewritten this for the latest version of ansible and put conditions for both Ubuntu and CentOS | |
| - name: "disable unused services" | |
| service: name={{item}} state=stopped enabled=no | |
| register: command_result | |
| failed_when: "unused_disable|failed and ('find' not in unused_disable.msg and 'found' not in unused_disable.msg)" | |
| with_items: |
| # From http://stackoverflow.com/questions/16296753/can-you-run-gui-apps-in-a-docker | |
| # | |
| # Firefox over VNC | |
| # | |
| # VERSION 0.1 | |
| # DOCKER-VERSION 0.2 | |
| from ubuntu:12.04 | |
| # make sure the package repository is up to date | |
| run echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list |