Skip to content

Instantly share code, notes, and snippets.

@dib258
dib258 / prompt
Created June 25, 2018 12:30
Composer error installation
Build process completed successfully
Installing '/home/vagrant/.phpenv/versions/7.2.6/lib/php/extensions/no-debug-non-zts-20170718/memcached.so'
install ok: channel://pecl.php.net/memcached-3.0.4
configuration option "php_ini" is not set to php.ini location
You should add "extension=memcached.so" to php.ini
‘/home/vagrant/.phpenv/versions/7.2/lib/php/extensions/no-debug-non-zts-20170718/blackfire-20170718.so’ -> ‘/usr/lib/blackfire-php/amd64/blackfire-20170718.so’
Download composer.phar ...
All settings correct for using Composer
Downloading...
@dib258
dib258 / gist:fdf65a6d0e9eb36ab236f8645129ac6e
Created June 22, 2018 15:17
nginx config file sites-enabled
# FORGE CONFIG (DO NOT REMOVE!)
include forge-conf/monsite.com/before/*;
server {
listen 80;
listen [::]:80;
server_name monsite.com;
root /home/forge/monsite.com/public;
# FORGE SSL (DO NOT REMOVE!)
@dib258
dib258 / gist:a0bbf4451d4ffda955e3475d2f834e65
Created June 21, 2018 13:03
prompt after subscription attach provision-rc1.sh script
[root@localhost ~]# subscription-manager attach --auto
All installed products are covered by valid entitlements. No need to update subscriptions at this time.
Installed Product Current Status:
Product Name: Red Hat Enterprise Linux Server
Status: Subscribed
[root@localhost ~]# subscription-manager refresh
1 local certificate has been deleted.
All local data refreshed
[root@localhost ~]# sh provision-rc1.sh
@dib258
dib258 / gist:172beb5547c69a79974c3340ae6b69db
Created June 21, 2018 12:56
prompt value executing provision-rc1.sh script
[root@localhost ~]# subscription-manager list
+-------------------------------------------+
Installed Product Status
+-------------------------------------------+
Product Name: Red Hat Enterprise Linux Server
Product ID: 69
Version: 7.5
Arch: x86_64
Status: Subscribed
Status Details:
@dib258
dib258 / redhat.repo
Created June 15, 2018 14:48
Content of the /etc/yum.repost.d/redhat.repo
#
# Certificate-Based Repositories
# Managed by (rhsm) subscription-manager
#
# *** This file is auto-generated. Changes made here will be over-written. ***
# *** Use "subscription-manager repo-override --help" if you wish to make changes. ***
#
# If this file is empty and this system is subscribed consider
# a "yum repolist" to refresh available repos
#
@dib258
dib258 / # php72 - 2018-02-12_13-48-23.txt
Created February 12, 2018 12:55
php72 (homebrew/php/php72) on macOS 10.13.1 - Homebrew build logs
Homebrew build logs for homebrew/php/php72 on macOS 10.13.1
Build date: 2018-02-12 13:48:23
@dib258
dib258 / Institute.vue
Created January 12, 2018 23:32
Vuejs component to show map + CRUD of institute / student
<template>
<div class="card my-3">
<div class="card-header d-flex">
<div class="pt-2">
<span
class="text mt-2"
v-show="!isEditing"
>
<a v-show="show" :href="'institute/'+institute.id">{{ institute.name }}</a>
<span v-show="!show">{{ institute.name }}</span>
@dib258
dib258 / Dumper.php
Last active May 6, 2017 15:41
Special Template Color for the dd method in Laravel
<?php
namespace Illuminate\Support\Debug;
use Symfony\Component\VarDumper\Cloner\VarCloner;
use Symfony\Component\VarDumper\Dumper\CliDumper;
class Dumper
{
/**
@dib258
dib258 / signature.html
Created April 19, 2017 13:54
Mail Signature
<style>
@import url('https://fonts.googleapis.com/css?family=Raleway:200,400,600');
</style>
<table style="border-collapse:collapse;">
<tbody>
<tr>
<!-- Logo -->
<td rowspan="2" align="center" width="100" style="padding:20px 0px 20px 0px;border:1px black">
<a href="http://www.chillpills.io" target="_blank">
<img src="http://www.chillpills.io/images/chillpills-logo-red.png" width="60px" alt="Chill Pills Project">