This file contains 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
# remove dangling images | |
docker rmi $(docker images -q -f dangling=true) | |
# remove dead containers | |
docker rm $(docker ps -aq) |
This file contains 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
# single tunnel | |
ssh -L <local-ip-on-my-machine>:<local-port-on-my-machine>:\ | |
<local-ip-on-server>:<local-port-on-server> \ | |
-C -N <server-user>@<server-ip> | |
# EXMAPLES | |
# ------------- | |
# SINGLE TUNNEL | |
ssh -L 0.0.0.0:27017:172.17.42.1:27017 -C -N core@192.168.0.100 | |
# ------------- |
This file contains 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
#!/bin/bash | |
# Usage: | |
# - To only show the possbible volumes to be removed: | |
# ./docker-cleanup-volumes.sh | |
# - To remove orphaned docker volumes: | |
# ./docker-cleanup-volumes.sh clean | |
if [ "$1" == 'clean' ]; then | |
echo "cleaning..." |
This file contains 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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
namespace MDI_Escola.Entidades | |
{ | |
/// <summary> | |
/// Entidade Aluno | |
/// </summary> |
This file contains 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 key/value should be on his own line | |
PACKAGE_VERSION=$(cat package.json \ | |
| grep version \ | |
| head -1 \ | |
| awk -F: '{ print $2 }' \ | |
| sed 's/[ ",]//g') | |
echo $PACKAGE_VERSION |
This file contains 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
<script type="text/javascript"> | |
var viewModel = { | |
students: ko.observableArray([ | |
{ id: 1, name: 'Jake' }, | |
{ id: 2, name: 'Kate' }, | |
{ id: 3, name: 'Mari' } | |
]), | |
selected: ko.observable() | |
}; | |
This file contains 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 () { | |
// Get Json ViewModel | |
var json_response = @Html.Raw(Json.Encode(Model)); | |
}); |
This file contains 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
explorer . |
This file contains 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
SET SESSION old_passwords=0; | |
SET PASSWORD FOR my_user=PASSWORD('my_password'); |
This file contains 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
maxcnunes@Max-Mint-Office-VM ~/Development/bravi-ideas $ git push heroku master | |
Counting objects: 218, done. | |
Compressing objects: 100% (189/189), done. | |
Writing objects: 100% (218/218), 108.27 KiB, done. | |
Total 218 (delta 66), reused 0 (delta 0) | |
-----> Ruby/NoLockfile app detected | |
! | |
! Gemfile.lock required. Please check it in. | |
! |