Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
#@@@@@@@@@@@@@@@@@@@@@@@@@@@@#
# PLEASE UPDATE CONFIG BELOW #
#@@@@@@@@@@@@@@@@@@@@@@@@@@@@#
# local file backup directory
path='/home/hary/backup/app'
# ftp/sftp config
ftptype="sftp" #ftp
#!/bin/bash
#@@@@@@@@@@@@@@@@@@@@@@@@@@@@#
# PLEASE UPDATE CONFIG BELOW #
#@@@@@@@@@@@@@@@@@@@@@@@@@@@@#
# local file backup directory
path='/home/hary/backup/db'
# mysql config
dbuser="root"
@haryx8
haryx8 / cleansing_db.sh
Created February 1, 2016 06:28
copy selected database to another database and run cleansing procedure
#!/bin/bash
ndate=$(date +"%m_%d_%Y_%H_%M")
clear
read -p 'IP DB Server ('$1'): ' ipdbs
read -p 'DB Source name ('$1'): ' sorsdb
read -p 'Email to: ' msmto
read -p 'Email from: ' mfrom
read -sp 'Email from password: ' msmps
echo -e ""
php_value zend_optimizer.licence_path "/license_file.zl"
php_value zend_loader.license_path "/license_file.zl"
@haryx8
haryx8 / php.ini
Last active February 9, 2016 20:47
zend_optimizer.licence_path = "/license_file.zl"
zend_loader.license_path = "/license_file.zl"
<?php
zend_loader_install_license("/license_file.zl", true);
?>
# mkisofs on linux:
mkisofs -T -r -o filename.iso pathname/
# mkisofs on windows:
mkisofs -v -dvd-video -V "VOLUME_NAME" -o "c:\my movies\iso\movie.iso" "c:\my movies\dvd"
mkisofs -r -R -J -l -L -o image-file.iso c:\project\install
package main
import (
"encoding/json"
"fmt"
"log"
)
type Envelope struct {
Type string
db.authors.insert([
{
_id: 'a1',
name: { first: 'orlando', last: 'becerra' },
age: 27
},
{
_id: 'a2',
name: { first: 'mayra', last: 'sanchez' },
age: 21
@haryx8
haryx8 / lfs
Created February 14, 2017 07:04
@@@@@@@
@ LFS @
@@@@@@@
apt-get install gawk
apt-get install bison
apt-get install texinfo
# create boot partition 100MB ext2
# create system partition 9900MB ext4