Skip to content

Instantly share code, notes, and snippets.

View ceessay's full-sized avatar
🏠
Working from home

Mohamed CISSE ceessay

🏠
Working from home
View GitHub Profile
@ceessay
ceessay / ScannerScreen.js
Created December 27, 2019 11:30
Box alignments in RN
import React, {Component} from 'react';
import {
Text,
View,
SafeAreaView,
StyleSheet,
StatusBar,
TouchableOpacity,
Image,
PixelRatio,
https://stackoverflow.com/questions/18352682/correct-file-permissions-for-wordpress
chown www-data:www-data -R * # Let Apache be owner
find . -type d -exec chmod 755 {} \; # Change directory permissions rwxr-xr-x
find . -type f -exec chmod 644 {} \; # Change file permissions rw-r--r--
import React from "react";
import { StyleSheet, Text, View, Button } from "react-native";
import { Location, Permissions, TaskManager } from "expo";
const MY_LOCATION_TASK = "MY_LOCATION_TASK";
export default class App extends React.Component {
constructor(props) {
super(props);
#install tools
sudo apt-get install optipng
sudo apt-get install jpegoptim
find images_folder/ *.png -exec optipng {} \;
find images_folder/ *.jpeg -exec jpegoptim {} \;
dans /etc/apache2/apache2.conf chercher la balise <Directory /var/www/> et mettre
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
ajouter un alias vers le dossier public de ton projet laravel
;= Add aliases below into the "C:\tools\cmder\config\user-aliases.cmd" file
g=git
ga=git add
gst=git status
glog=git log
gaa=git add --all
gapa=git add --patch
gau=git add --update
gav=git add --verbose
@ceessay
ceessay / readme.md
Created March 21, 2018 10:16 — forked from fabiopiovam/readme.md
Django deploy using Nginx + Gunicorn + Supervisor

Django deploy using Nginx + Gunicorn + Supervisor

Introduction

This implementation was made using Debian 8.

Requirements

  • Install packages:

    aptitude install nginx supervisor
    
@ceessay
ceessay / depot.txt
Last active June 14, 2017 11:08
Ajouter votre dépot dans bakeliprojects
Pour ajouter vos projets sur GitHub, après avoir validé votre invitatiton
1 - Aller à ce lien: https://github.com/bakeliprojects et y créer un nouveau dépôt (le bouton vert "New")
Les dépôts que vous créerez seront nommés comme suit: prenom-nom_nom-du-projet_framework-ou-language
modou-ndiaye_marketplace_android
modou-ndiaye_marketplace_laravel