🤹♂️
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
| # Novo projeot | |
| # Crie a imagem do projeto com a extensão do docker para vscode. | |
| # Dentro da pasta principal do projeto: | |
| $ heroku login # (Faz login no heroku CLI) | |
| $ heroku container:login # (Login no registrador de container) | |
| $ heroku git:remote -a aspnetcore-webapi # (aspnetcore-webapi é o nome do projeto que eu criei no heroku) | |
| $ heroku container:push web -a aspnetcore-webapi # (faz a build do projeto e envia para o heroku) | |
| $ heroku container:release web -a aspnetcore-webapi # (libera as alteração públicamente) | |
| # Enviar alterações para um projeto já existente |
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
| # Criar imagem | |
| # Listar imagens | |
| docker image list | |
| ## Resultado: | |
| REPOSITORY TAG IMAGE ID CREATED SIZE | |
| hello-world latest fce289e99eb9 12 months ago 1.84kB | |
| # Remover imagem | |
| docker rmi IMAGE ID |
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 "Barra default ativada?" | |
| isDefault=$(gsettings get org.gnome.shell.extensions.dash-to-dock extend-height) | |
| # Alterna entre a dock de tamanho padrão e a dock de tamanho reduzido | |
| if [ "$isDefault" = "true" ]; then | |
| echo "Customizando tamanho da barra" | |
| gsettings set org.gnome.shell.extensions.dash-to-dock extend-height false | |
| else | |
| echo "Restaurando tamanho padrão da barra" | |
| gsettings set org.gnome.shell.extensions.dash-to-dock extend-height 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
| function wakeup() { | |
| var rowIndex = 2; | |
| const urlColumn = 3; | |
| var urlCell = getCell(rowIndex, urlColumn); | |
| while(!urlCell.isBlank() && isPingEnabled()) { | |
| ping(urlCell.getValue()); | |
| printLogFor(urlCell, rowIndex); |
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
| { | |
| "author": "akamud", | |
| "name": "OneDark", | |
| "colors": { | |
| "activityBar.background": "#333842", | |
| "activityBar.foreground": "#D7DAE0", | |
| "activityBarBadge.background": "#528BFF", | |
| "activityBarBadge.foreground": "#D7DAE0", | |
| "button.background": "#4D78CC", | |
| "button.foreground": "#FFFFFF", |
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
| node -e "console.log(require('crypto').randomBytes(256).toString('base64'));" |
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
| @EnableWebSecurity | |
| public class SecurityConfig extends WebSecurityConfigurerAdapter { | |
| @Override | |
| protected void configure(HttpSecurity http) throws Exception { | |
| // allow access to all endpoints | |
| http.csrf().disable().authorizeRequests().antMatchers("/**").permitAll(); | |
| } | |
| } |