Skip to content

Instantly share code, notes, and snippets.

View arabsalem's full-sized avatar

Arab Salem arabsalem

View GitHub Profile
@ifnull
ifnull / gist:3961743
Created October 26, 2012 21:44
CURL IP w/ specific host
# Bypass HOSTS file and DNS and send request directly to IP with specified host name.
# Example below sends request to localhost with the host name www.foobar.com.
curl -sL -w "%{http_code}\\n" -o /dev/null --insecure --resolve 'www.foobar.com:127.0.0.1' https://www.foobar.com/
@ifnull
ifnull / gist:4955258
Last active December 13, 2015 18:28
AWS: Quick and secure LAMP on Amazon Linux
######
###### http://www.altmake.com/2013/03/06/secure-lamp-setup-on-amazon-linux-ami/
######
# http://imperialwicket.com/aws-quick-and-secure-lamp-on-amazon-linux
sudo su -
yum -y update
@ifnull
ifnull / gist:5055099
Created February 28, 2013 08:10
List permission as numeric values
stat -c "%a %n" .
@ifnull
ifnull / gist:5055107
Created February 28, 2013 08:13
Set permissions for Apache
chown -R apache:www-data .
find . -type d -exec chmod u=rwx,g=rx,o= '{}' \;
find . -type f -exec chmod u=rw,g=r,o= '{}' \;
@ifnull
ifnull / gist:6102790
Last active December 20, 2015 08:49
Get octal permissions
# Linux
stat -c "%a %n" ~/
# OSX
stat -f %Mp%Lp ~/
@nurrony
nurrony / AWS-CSA-A-Notes.md
Created March 28, 2017 12:33 — forked from agussman/AWS-CSA-A-Notes.md
Notes from studying for the AWS Certified Solutions Architect Exam. I felt well-prepared for the exam and passed with a 94%. Please reach out with any corrections or questions.

External Resources

@ifnull
ifnull / yum-security.cron
Created March 7, 2013 01:03
YUM cron for automatic security updates.
#!/bin/sh
yum -y -R 120 -d 0 -e 0 update yum
yum --security -y -R 10 -e 0 -d 0 update
@sl-digital
sl-digital / Amazon-Linux-AMI PHP55
Last active May 24, 2021 11:03
Install Apache, MySQL and PHP 5.5 on Amazon Linux AMI
:: UPDATE YUM ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
sudo yum update -y
:: INSTALL WEBSERVER :::::::::::::::::::::::::::::::::::::::::::::::::::::::::
sudo yum install httpd24
sudo service httpd start
sudo chkconfig httpd on
chkconfig --list httpd
@matpowel
matpowel / nexo_export_conversion.rb
Last active January 19, 2023 18:13
Automated transformation of Nexo CSV output to Koinly full template format
require 'csv'
if ARGV.empty? || ARGV.length > 2
puts
puts 'Please specific the input file name and optionally output base filename:'
puts ' ruby nexo_export_conversion.rb nexo_transactions.csv output_filename'
puts
puts 'Note that the default output filename is input filename appended with each output format appended, currently:'
puts ' - output_filename_koinly.csv'
puts ' - output_filename_coinstats.csv'
@miglen
miglen / aws-certification.md
Last active May 5, 2023 10:04
AWS Certification guide and notes on how to prepare for the aws associate certification architect, sysops and developer exams


AWS Certification notes

Those are my personal notes on AWS Solution Architect certification preparation. Hope you find them usefull.

To pass AWS certification, you should have:

  • Sound knowledge about most of the AWS services ( EC2, VPC, RDS, Cloudfront, S3, Route53 etc,)
  • Hands on experience with AWS services.