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
| Procedure | |
| Take the file you exported (e.g. certname.pfx) and copy it to a system where you have OpenSSL installed. Note: the *.pfx file is in PKCS#12 format and includes both the certificate and the private key. | |
| Run the following command to export the private key: openssl pkcs12 -in certname.pfx -nocerts -out key.pem -nodes | |
| Run the following command to export the certificate: openssl pkcs12 -in certname.pfx -nokeys -out cert.pem | |
| Run the following command to remove the passphrase from the private key: openssl rsa -in key.pem -out server.key |
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
| [program:hubot] | |
| command=/usr/bin/coffee node_modules/.bin/hubot --name ozux --adapter slack | |
| directory=/usr/local/bot/hubot.ozux-bot | |
| stdout_logfile=/var/log/%(program_name)s-stout.log | |
| stderr_logfile=/var/log/%(program_name)s-stderr.log | |
| stdout_logfile_backups=10 | |
| stderr_logfile_backups=10 | |
| user=ubuntu | |
| startsecs=10 | |
| autorestart=true |
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
| 1. Log into postgre: sudo su - postgres | |
| 2. create db: createdb newdb | |
| 3. Inyect db psql worlddb < world.sql | |
| --- | |
| Ingres to specific db, specific user | |
| psql --username=awx --password --dbname=awx | |
| Dumb database | |
| pg_dump --username=awx --password --dbname=awx > /tmp/awx-tower.sql |
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
| https://github.com/symfony/security-bundle/blob/master/Resources/config/security.xml |
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
| Replace only last ocurrence | |
| :s/.*\zsts server thread txn_id txn_time user hostname ip db tbl idx lock_type lock_mode wait_hold victim query// | |
| Replace with seed | |
| sed 's/ts server thread txn_id txn_time user hostname ip db tbl idx lock_type lock_mode wait_hold victim query/<replacewiththis>/g' newdeadlock.log > changedeadlock.log |
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
| :%s/\//-/g |
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
| lsof -i TCP -P | grep ssh |
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
| UPDATE `admin_user` SET `password` = MD5('newpassword') WHERE `username` = 'adminusername'; |
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
| */ | |
| public function registerContainerConfiguration( LoaderInterface $loader ) | |
| { | |
| $environment = $this->getEnvironment(); | |
| $loader->load( __DIR__ . '/config/config_' . $environment . '.yml' ); | |
| $configFile = __DIR__ . '/config/ezpublish_' . $environment . '.yml'; | |
| if ( !is_file( $configFile ) ) | |
| { | |
| $configFile = __DIR__ . '/config/ezpublish_setup.yml'; |
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
| RabbitMQ | |
| http://www.rabbitmq.com/ | |
| Redis | |
| http://redis.io/ | |
| Mandrill | |
| https://mandrill.com/ | |
| Erlang |