Skip to content

Instantly share code, notes, and snippets.

View ccbenavides's full-sized avatar

carlos christian benavides montenegro ccbenavides

View GitHub Profile
### 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
<script>
$('#albumSubmit').submit(function(e){
e.preventDefault();
var ambito = this;
console.log(this);
$.ajax({
url: '{{ route("admin.albums.store") }}',
method: 'post',
dataType: 'JSON',
data: {
function estoy_probando(){
console.log("voy en camilla");
alert("cambie el codigo desde aca");
console.log("aprendiendo javascript desde gist");
}
package main
import "fmt"
func main(){
fmt.Println("la programación se esta comiendo el mundo")
}