Skip to content

Instantly share code, notes, and snippets.

View mostafahussein's full-sized avatar
💀
K3rn3l Cr4sh3r

(╯°□°)╯︵ uᴉǝssnH ɐɟɐʇsoW mostafahussein

💀
K3rn3l Cr4sh3r
View GitHub Profile
import Ember from 'ember';
export default Ember.Component.extend({
actions: {
update(value) {
this.get('onupdate')(value);
this.get('onvalidate')();
}
}
});
@mostafahussein
mostafahussein / controllers.application.js
Created August 23, 2018 12:50 — forked from czosel/controllers.application.js
ember-validated-form custom HTML
import Ember from 'ember';
import UserValidations from 'twiddle/validations/user';
export default Ember.Controller.extend({
UserValidations,
actions: {
submit(model) {
console.log('submit', model)
model.save()
@mostafahussein
mostafahussein / README.md
Created March 13, 2018 00:56 — forked from leonardofed/README.md
A curated list of AWS resources to prepare for the AWS Certifications


A curated list of AWS resources to prepare for the AWS Certifications

A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.

OP: @leonardofed founder @ plainflow.


@mostafahussein
mostafahussein / mysql-docker.sh
Created February 17, 2018 21:51 — forked from spalladino/mysql-docker.sh
Backup and restore a mysql database from a running Docker mysql container
# Backup
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql
# Restore
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE
@mostafahussein
mostafahussein / interfaces
Created February 10, 2018 16:58 — forked from martiell/interfaces
macvlan and bridge networking
auto lo
iface lo inet loopback
iface eth0 inet manual
auto br0
iface br0 inet dhcp
bridge_ports eth0
auto macvlan0
@mostafahussein
mostafahussein / Dockerfile
Created October 11, 2017 13:20 — forked from trinitronx/Dockerfile
test-kitchen SystemD + DBus Dockerfile
FROM debian:8.1
RUN dpkg-divert --local --rename --add /sbin/initctl
RUN ln -sf /bin/true /sbin/initctl
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update
RUN apt-get install -y sudo openssh-server curl lsb-release
# test-kitchen user setup
@mostafahussein
mostafahussein / meteor-nginx
Created July 11, 2017 19:19 — forked from dweldon/meteor-nginx
This is an example of how to configure nginx to serve a meteor app.
server {
listen [::]:80;
listen 80;
server_name app.example.com;
return 301 https://$server_name$request_uri;
}
server {

Keybase proof

I hereby claim:

  • I am mostafahussein on github.
  • I am mostafahussein (https://keybase.io/mostafahussein) on keybase.
  • I have a public key ASCwNEogYPWXa171PV7Yhvpmdpljg9LhWcwp8hBM6e3Sygo

To claim this, I am signing this object:

@mostafahussein
mostafahussein / nginx.conf
Created April 13, 2017 07:39 — forked from plentz/nginx.conf
Best nginx configuration for improved security(and performance). Complete blog post here http://tautt.com/best-nginx-configuration-for-security/
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048