Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

samayo samayo

🏠
Working from home
  • EPFL
  • Vaud, CH
Block or report user

Report or block samayo

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
@samayo
samayo / 00_ReadMe.md
Created Oct 17, 2018 — forked from mohamed-el-habib/00_ReadMe.md
drupal fpm with nginx and mysql
View 00_ReadMe.md

Usage

git clone git://github.com/fd57d8aa59b1574ee7728edf128814d3.git docker-drupal-fpm
cd docker-drupal-fpm
mkdir -p /usr/local/share/dockervolumes/drupal # if you change this folder please update the run.sh
chmod +x run.sh && ./run.sh up
@samayo
samayo / docker-compose.yml
Created Oct 16, 2018
working docker file
View docker-compose.yml
version: '3'
services:
db:
container_name: mariadb
build:
context: ./mariadb
volumes:
- ./mariadb/scripts:/docker-entrypoint-initdb.d
- ./.data/db:/var/lib/mysql
View aws-upload.vue
<template>
<div class='vue-aws-uploader' :class='wrapperCss'>
<label for="vue-aws-upload" class='fa fa-upload'> Click here to upload your <b>{{ folder }}</b> files </label>
<input type="file" name="file" id="vue-aws-upload" class="vue-aws-upload" @change='init($event)' />
</div>
</template>
<script>
import axios from 'axios'
View keybase.md

Keybase proof

I hereby claim:

  • I am samayo on github.
  • I am samayo (https://keybase.io/samayo) on keybase.
  • I have a public key whose fingerprint is 7DE1 4E1C 7085 72C1 4BD9 D523 8651 99F6 F632 E04C

To claim this, I am signing this object:

View keybase.md

Keybase proof

I hereby claim:

  • I am samayo on github.
  • I am samayo (https://keybase.io/samayo) on keybase.
  • I have a public key whose fingerprint is 7DE1 4E1C 7085 72C1 4BD9 D523 8651 99F6 F632 E04C

To claim this, I am signing this object:

View start.sh
#!/bin/bash
#This is a basic bash script for common commands
set -e
# DIRS
service nginx restart
service php-fpm restart
service mariad restart
mount -t vboxsf www /var/www
setenforce 0
View conemu-schema.xml
<?xml version="1.0" encoding="utf-8"?>
<key name="Software">
<key name="ConEmu">
<key name=".Vanilla" modified="2017-01-09 02:31:37" build="161203">
<value name="StartType" type="hex" data="02"/>
<value name="CmdLine" type="string" data=""/>
<value name="StartTasksFile" type="string" data=""/>
<value name="StartTasksName" type="string" data="{Shells::cmd}"/>
<value name="StartFarFolders" type="hex" data="00"/>
<value name="StartFarEditors" type="hex" data="00"/>
@samayo
samayo / install-ruby.sh
Created Jun 20, 2016 — forked from lukearmstrong/install-ruby.sh
Install enough to get Ruby and Sass working on RHEL/CentOS
View install-ruby.sh
# lol redhat
su
# Install deps
yum install libyaml libyaml-devel openssl libxml2-devel bison libxslt-devel openssl-devel tcl tk libffi tcl-devel tk-devel libffi-devel
# Download Ruby
cd /usr/local/src/
wget http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p392.tar.gz
tar -xvzf ruby-1.9.3-p392.tar.gz
@samayo
samayo / test.php
Created May 13, 2016
Created via API
View test.php
/** * FOO * @link Bar */
You can’t perform that action at this time.