Skip to content

Instantly share code, notes, and snippets.

Luis Daher luisdaher

Block or report user

Report or block luisdaher

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@luisdaher
luisdaher / pgsql_backup.sh
Last active Feb 19, 2020 — forked from sirbrillig/pgsql_backup.sh
Postgresql daily backup script.
View pgsql_backup.sh
#!/bin/bash
#
# Backup a Postgresql database into a daily file.
#
BACKUP_DIR=/pg_backup
DAYS_TO_KEEP=14
FILE_SUFFIX=_pg_backup.sql
DATABASE=
USER=postgres
View MySql-5.5-installation guide.md

MySQL Download URL

https://dev.mysql.com/get/Downloads/MySQL-5.5/mysql-5.5.56-linux-glibc2.5-x86_64.tar.gz

Open the terminal and follow along:

  • Uninstall any existing version of MySQL
sudo rm /var/lib/mysql/ -R
@luisdaher
luisdaher / 00.md
Created Jun 1, 2017 — forked from maxivak/00.md
Sending emails with ActionMailer and Sidekiq
View 00.md

Sending emails with ActionMailer and Sidekiq

Send email asynchroniously using Sidekiq.

ActionMailer

Create your mailer us usual:

View setting-s3-maven-repositories.md
View gist:1b3552c50283c9ed2e466423803711f7
#!/bin/bash
echo "starting check sidekiq"
process=`cat /path-to/sidekiq.pid`
processConfirmation=`ps aux | awk '{print $2 }' | grep $process`
if [ -z $processConfirmation ]
then
echo "oops! not running... restarting sidekiq"
View exercises.md

Unit 1

Paper 3, Part 1

Ex 2

8- taken

9- done x (when, because "they" should be preceded by an element that concatenates 2 sentences)

You can’t perform that action at this time.