Skip to content

Instantly share code, notes, and snippets.

View djaiss's full-sized avatar
👋
Maker of open source web softwares.

Mazarin djaiss

👋
Maker of open source web softwares.
View GitHub Profile

Thank you for your interest in contributing to software projects managed by Monica (“We” or “Us”).

TLDR: By signing Monica's Contributor License Agreement, known as a CLA, you confirm that:

1. Anyone can use your contributions anywhere, for free, forever.

2. Your contributions do not infringe on anyone else's rights.


@djaiss
djaiss / CLA.md
Last active February 3, 2018 20:30
Monica Contributor License Agreement

TLDR: By signing Monica's Contributor License Agreement, known as a CLA, you confirm that:

1. Anyone can use your contributions anywhere, for free, forever.

2. Your contributions do not infringe on anyone else's rights.


Now, the same with a more legal jargon:

#!/usr/bin/env bash
# Ask for the administrator password upfront
sudo -v
# setup taps
brew tap caskroom/fonts
brew tap caskroom/cask
# install applications
@djaiss
djaiss / progress_bar_migration_laravel.php
Last active May 4, 2024 15:03
Laravel: Use progress bars in migrations
<?php
use Symfony\Component\Console\Helper\ProgressBar;
use Symfony\Component\Console\Output\ConsoleOutput;
class DoSomething extends Migration
{
public function up()
{
$output = new ConsoleOutput();
@djaiss
djaiss / sublime_text_3_preferences.json
Created October 6, 2017 20:09
Sublime Text 3 preferences
{
"color_scheme": "Packages/User/SublimeLinter/Monokai (SL).tmTheme",
"folder_exclude_patterns":
[
"vendor",
"node_modules"
],
"font_size": 14,
"ignored_packages":
[
{
"Use Non-ASCII Font" : true,
"Tags" : [
],
"Ansi 12 Color" : {
"Green Component" : 0.80784314870834351,
"Blue Component" : 0.92156863212585449,
"Red Component" : 0.52941179275512695
},
<!-- The icons of the countries are provided by https://github.com/djaiss/mapsicon, available under a `do what you want with it` license. -->
@djaiss
djaiss / gist:85a0ada83e6bca68e41e
Last active January 1, 2024 22:44
Block Twitter/Facebook in your /etc/hosts
# Block Facebook IPv4
127.0.0.1 www.facebook.com
127.0.0.1 facebook.com
127.0.0.1 login.facebook.com
127.0.0.1 www.login.facebook.com
127.0.0.1 fbcdn.net
127.0.0.1 www.fbcdn.net
127.0.0.1 fbcdn.com
127.0.0.1 www.fbcdn.com
127.0.0.1 static.ak.fbcdn.net
@djaiss
djaiss / table.css
Created November 30, 2015 23:56 — forked from colintoh/table.css
Table CSS
table { display: table }
tr { display: table-row }
thead { display: table-header-group }
tbody { display: table-row-group }
tfoot { display: table-footer-group }
col { display: table-column }
colgroup { display: table-column-group }
td, th { display: table-cell }
caption { display: table-caption }
@djaiss
djaiss / db_size.sql
Last active August 29, 2015 14:28
Calculate the size of your Mysql DB
SELECT table_schema "Data Base Name", sum( data_length + index_length ) / 1024 / 1024 "Data Base Size in MB"
FROM information_schema.TABLES GROUP BY table_schema ;