Skip to content

Instantly share code, notes, and snippets.

Avatar
💬
drink more water

samayo samayo

💬
drink more water
View GitHub Profile
@saniaky
saniaky / Install nginx + PHP 7.1 on CentOS 7
Last active Nov 10, 2021
CentOS 7, nginx, PHP 7.1 Configuration
View Install nginx + PHP 7.1 on CentOS 7
Step by step installation guide for nginx + PHP 7.1 on CentOS 7
1. Add and enable Remi repos
yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm
yum install yum-utils
yum-config-manager --enable remi-php71
2. Install php 7.1 and required modules
yum install php71-php-fpm
View bootstrap.php
<?php
### USAGE
#Require the autoload in your bootstrap, and use the Application to start your app
require __DIR__ . '/../Autoload.php';
$app = new Fastpress\Application;
$app->get('/hello/{:name}', function($name) use ($app){
View server.conf
server {
listen 80;
server_name example.com dev.example.com;
root /var/www/sites/public/dev.example/;
index index.html index.htm index.php;
access_log /var/log/nginx/example.com_access.log;
error_log /var/log/nginx/example.com_error.log;
charset utf-8;
@rriemann
rriemann / INSTALL.md
Last active Dec 10, 2017
Howto install Gitlab on top of opensuse 12.3 32bit
View INSTALL.md

Please read everything before starting!

Install OS

  • Download OpenSUSE 12.3 32bit, Network edition http://download.opensuse.org/distribution/12.3/iso/openSUSE-12.3-NET-i586.iso
  • I chose 32bit, because Ruby Binary Extensions might have problems with lib64 path structure. We workaround this bug.
  • I chose networkinstall, because we need only very few packages and don't need to download everything. only 200MB are downloaded during install
  • the image can easily copied to a usb pen drive using the gui tool "imagewriter" (executed as root)
  • Partition: There are 2 big hard drives. I created on both of them first a primary pratition of 1GB of type LINUX-RAID
@paulmillr
paulmillr / active.md
Last active Dec 8, 2021
Most active GitHub users (by contributions). http://twitter.com/paulmillr
View active.md

Most active GitHub users (git.io/top)

The count of contributions (summary of Pull Requests, opened issues and commits) to public repos at GitHub.com from Tue, 06 Dec 2016 17:06:46 GMT till Wed, 06 Dec 2017 17:06:46 GMT.

Only first 1000 GitHub users according to the count of followers are taken. This is because of limitations of GitHub search. Sorting algo in pseudocode:

githubUsers
  .filter(user => user.followers > 1000)