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
| sysctl vm.overcommit_memory=1 | |
| sudo su | |
| echo never > /sys/kernel/mm/transparent_hugepage/enabled | |
| sudo sysctl -w net.core.somaxconn=6553 * | |
| #edit file sudo nano /etc/rc.local and add | |
| sysctl -w net.core.somaxconn=65535 |
This file has been truncated, but you can view the full file.
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
| insert into person (data) values('{"0":{"name":"Kiera Halvorson","email":"keegan.bashirian@legros.name","interest":["memes","agriculture"],"age":25},"1":{"name":"Golden Lynch","email":"brandon.kautzer@boehm.org","interest":["DIY home","electronics"],"age":43},"2":{"name":"Alex Zemlak","email":"braulio_kirlin@hane.biz","interest":["garden design","DIY home"],"age":59},"3":{"name":"Diana Jakubowski","email":"oswaldo_willms@kreigerconn.org","interest":["farming","farming"],"age":59},"4":{"name":"Pedro Stroman","email":"erika_lehner@jacobs.info","interest":["infography","agriculture"],"age":29},"5":{"name":"Bobby Boyle","email":"johathan.pfeffer@kertzmann.info","interest":["farming","DIY home"],"age":53},"6":{"name":"Lacy Koss","email":"howard.krajcik@gaylord.org","interest":["farming","farming"],"age":19},"7":{"name":"Murl Fisher","email":"leopoldo_kertzmann@bartolettiokon.com","interest":["electronics","ai"],"age":37},"8":{"name":"Isaiah Boyle","email":"buddy.ratke@leuschke.net","interest":["garden design","ai" |
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
| interest= ["nature", "agriculture", "farming", "ai", "infography", "memes", "DIY home", "electronics", "web design", "garden design"] | |
| survey_data = {} | |
| 10000.times do | n | | |
| primary_interest = interest[Random.rand(interest.size)] | |
| secondary_interest = interest[Random.rand(interest.size)] | |
| survey_data[n.to_s] = {:name => Faker::Name.name, email: Faker::Internet.email, | |
| interest: [primary_interest, secondary_interest], age: Random.rand(18..65)} | |
| end |
This file has been truncated, but you can view the full file.
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
| {"0":{"name":"Kiera Halvorson","email":"keegan.bashirian@legros.name","interest":["memes","agriculture"],"age":25},"1":{"name":"Golden Lynch","email":"brandon.kautzer@boehm.org","interest":["DIY home","electronics"],"age":43},"2":{"name":"Alex Zemlak","email":"braulio_kirlin@hane.biz","interest":["garden design","DIY home"],"age":59},"3":{"name":"Diana Jakubowski","email":"oswaldo_willms@kreigerconn.org","interest":["farming","farming"],"age":59},"4":{"name":"Pedro Stroman","email":"erika_lehner@jacobs.info","interest":["infography","agriculture"],"age":29},"5":{"name":"Bobby Boyle","email":"johathan.pfeffer@kertzmann.info","interest":["farming","DIY home"],"age":53},"6":{"name":"Lacy Koss","email":"howard.krajcik@gaylord.org","interest":["farming","farming"],"age":19},"7":{"name":"Murl Fisher","email":"leopoldo_kertzmann@bartolettiokon.com","interest":["electronics","ai"],"age":37},"8":{"name":"Isaiah Boyle","email":"buddy.ratke@leuschke.net","interest":["garden design","ai"],"age":38},"9":{"name":"Mr. Pasqu |
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
| version: "3" | |
| services: | |
| app: | |
| image: eclipse/che | |
| command: start | |
| environment: | |
| - CHE_MULTIUSER=true | |
| - CHE_HOST=public_ip_addr | |
| volumes: | |
| - /var/run/docker.sock:/var/run/docker.sock |
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
| ssh-keygen -i -f id_dsa_1024_a.pub > id_dsa_1024_a_openssh.pub |
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
| source 'https://rubygems.org' | |
| gem 'rails', '5.0.0.1' |
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
| sudo -u postgres psql | |
| password postgres | |
| from: | |
| local all all peer | |
| to: | |
| local all all 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
| #sudo may required for un previliged user | |
| #check running process | |
| docker-compose ps | |
| #kill process | |
| docker-compose kill | |
| #remove containers | |
| docker-compose down | |
| #start and up containers | |
| docker-compose up |
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
| pg_dump -F c -h localhost -U pg_user -d db_name | gzip -c > sql_dump.gz | |
| #-F format c -> custom | |
| #Restore | |
| pg_restore -U username -d db_name -v dumpfile_location -h localhost | |