Skip to content

Instantly share code, notes, and snippets.

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

Razzul razzul

🏠
Working from home
View GitHub Profile
@razzul
razzul / proxy.md
Created July 27, 2020 06:29
apache proxy setup
  • sudo a2enmod proxy

  • sudo a2enmod proxy_http

  • sudo a2enmod proxy_balancer

  • sudo a2enmod lbmethod_byrequests

  • sudo a2enmod proxy_wstunnel

  • sudo service apache2 restart

  • sudo nano /etc/apache2/sites-available/000-default.conf

@razzul
razzul / pattern-programs.md
Created May 31, 2018 04:49
Pattern Programs

Pattern Programs

Change file name from `_` to `-`
-----------------
> $ for f in *.json; do mv "$f" "`echo $f | sed s/UTID_/UTID-/`"; done
@razzul
razzul / django.md
Last active March 5, 2018 10:38
Django

Create New Project:

$ django-admin startproject mysite
$ cd mysite
$ python manage.py runserver

Create New Application:

$ python manage.py startapp polls
$ python manage.py migrate

@razzul
razzul / emoji.md
Created November 28, 2017 09:43
emoji

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@razzul
razzul / laravel-cmd.md
Last active November 28, 2017 07:37
Laravel console

php artisan make:command QuizStart --command=quiz:start

// /app/console/Kernel.php
protected $commands = [
    // Commands\Inspire::class,
    'App\Console\Commands\QuizStart'
];
@razzul
razzul / file_permision.md
Last active November 14, 2017 06:11
File Permision

File system permissions

Symbolic Notation Numeric Notation English
---------- 0000 no permissions
-rwx------ 0700 read, write, & execute only for owner
-rwxrwx--- 0770 read, write, & execute for owner and group
-rwxrwxrwx 0777 read, write, & execute for owner, group and others
---x--x--x 0111 execute
--w--w--w- 0222 write
@razzul
razzul / array_merge_recursive.md
Last active November 24, 2017 13:03
array_merge_recursive issue in linux

array_merge_recursive issue

$final_errors = array(
    'codes' => array(),
    'messages' => array(),
    'details' => array(),
);

$errors = array(
@razzul
razzul / wb.geojson
Last active September 25, 2017 05:59
westbengal
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@razzul
razzul / camel-case-snake-case.md
Last active September 21, 2017 09:33
Switch string camel case <=> snake case

camel case <=> snake case

    /**
     * Translates a camel case string into a string with underscores (e.g. firstName > first_name)
     *
     * @param string $str String in camel case format
     * @return string $str Translated into underscore format
     *