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
### step one | |
##### bash ##### | |
#!/bin/bash | |
mysqlpass="xxxxx" | |
database="xxxxx" | |
stamp=`date +"%s-%A-%d-%B-%Y@%H%M"` | |
name="/tmp/$stamp.sql" | |
/opt/bitnami/mysql/bin/mysqldump -u root -p$mysqlpass --force --opt $database > "$name" | |
echo -e "put to s3" | |
s3cmd put "$name" s3://backup-xxxx > /tmp/s3log.log |
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> | |
$('#albumSubmit').submit(function(e){ | |
e.preventDefault(); | |
var ambito = this; | |
console.log(this); | |
$.ajax({ | |
url: '{{ route("admin.albums.store") }}', | |
method: 'post', | |
dataType: 'JSON', | |
data: { |
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 estoy_probando(){ | |
console.log("voy en camilla"); | |
alert("cambie el codigo desde aca"); | |
console.log("aprendiendo javascript desde gist"); | |
} |
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
package main | |
import "fmt" | |
func main(){ | |
fmt.Println("la programación se esta comiendo el mundo") | |
} |