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://mediatemple.net/community/products/dv/204643810/how-do-i-disable-ssh-login-for-the-root-user |
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
| mkdir -p /home/user/.ssh | |
| ssh-keygen -t rsa | |
| touch /home/user/.ssh/authorized_keys | |
| touch /home/user/.ssh/known_hosts | |
| chown -R user:user /home/user/.ssh | |
| chmod 700 /home/user/.ssh | |
| chmod 600 /home/user/.ssh/id* | |
| chmod 644 /home/user/.ssh/id*.pub | |
| chmod 644 /home/user/.ssh/authorized_keys | |
| chmod 644 /home/user/.ssh/known_hosts |
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://serversforhackers.com/c/nginx-caching |
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
| import Ember from 'ember'; | |
| export default Ember.Component.extend({ | |
| weather: Ember.inject.service(), | |
| didInsertElement() { | |
| this.get('weather').current().then((weather) => { | |
| this.set('currentWeather', weather); | |
| }); | |
| } |
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
| Razão Social VARCHAR(255) | |
| Nome Fantasia VARCHAR(255) | |
| CNPJ BIGINT(14), VARCHAR(18) | |
| Data de Fundação DATE | |
| Email VARCHAR(100) | |
| Website VARCHAR(100) | |
| Telefone BIGINT(14) (Já considera números de 9 dígitos). Da dúvida, use VARCHAR | |
| Celular BIGINT(14) (Já considera números de 9 dígitos) Da dúvida, use VARCHAR | |
| Responsável VARCHAR(255), VARCHAR(100) | |
| Endereço VARCHAR(150) |
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
| import Ember from 'ember'; | |
| export default Ember.Component.extend({ | |
| }); |
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
| import Ember from 'ember'; | |
| const { computed } = Ember; | |
| export default Ember.Controller.extend({ | |
| appName:'Ember Twiddle', | |
| entries: [ | |
| { | |
| id: 1, | |
| name: 'Eric', | |
| author: { |
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
| { | |
| "vars": { | |
| "@gray-base": "#b49572", | |
| "@gray-darker": "lighten(@gray-base, 13.5%)", | |
| "@gray-dark": "lighten(@gray-base, 20%)", | |
| "@gray": "lighten(@gray-base, 33.5%)", | |
| "@gray-light": "lighten(@gray-base, 46.7%)", | |
| "@gray-lighter": "lighten(@gray-base, 93.5%)", | |
| "@brand-primary": "darken(#428bca, 6.5%)", | |
| "@brand-success": "#5cb85c", |
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
| echo $(dpkg --list | grep linux-image | awk '{ print $2 }' | sort -V | sed -n '/'`uname -r`'/q;p') $(dpkg --list | grep linux-headers | awk '{ print $2 }' | sort -V | sed -n '/'"$(uname -r | sed "s/\([0-9.-]*\)-\([^0-9]\+\)/\1/")"'/q;p') | xargs sudo apt-get -y purge |
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
| window.addEventListener("message", function(event) { | |
| var iframe = document.getElementById(event.data.id) | |
| var newHeight = event.data.height; | |
| if (iframe) { | |
| iframe.height = parseInt(newHeight) + "px"; | |
| console.log("Iframe resized"); | |
| } else { | |
| console.error("Not found element id for #" + event.data.id); | |
| } |