Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Nour-Eddine ECH-CHEBABY chebaby

🏠
Working from home
  • Grafimage
  • Morroco
View GitHub Profile
View Microsoft.PowerShell_profile.ps1
Import-Module posh-git
Import-Module oh-my-posh
Set-Theme Paradox
function prompt {"chebaby@probook:~$ $($PWD.ProviderPath)`# "}
function project_name {Set-Location C:\wamp64\www\projects\project_name}
function gs { & git status $args }
function gc { & git commit -m $args }
function gpull { & git pull $args }
function gpush { & git push $args }
function gadd { & git add . }
@chebaby
chebaby / settings.json
Created Jul 21, 2020
Windows Terminal Settings
View settings.json
// This file was initially generated by Windows Terminal 1.0.1811.0
// It should still be usable in newer versions, but newer versions might have additional
// settings, help text, or changes that you will not see unless you clear this file
// and let us generate a new one for you.
// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation
{
"$schema": "https://aka.ms/terminal-profiles-schema",
View Get user shops response
This file has been truncated, but you can view the full file.
{
"shops": [
{
"id": 8,
"name": "Kashmir",
"email": "r.cheema1973@gmail.com",
"phone": "030126948654",
"avatar": "https://www.foodcabby.de/storage/shops/nYBF3oPAC8NlIOyYXve5SQTLmLJvb54TbfGcDVSL.png",
"default_banner": null,
@chebaby
chebaby / user-aliases.cmd
Created Nov 22, 2019
Cmder personal aliases
View user-aliases.cmd
p=vendor\bin\phpunit
pf=vendor\bin\phpunit --filter $*
gs=git status
ga=git add .
gc=git commit -m $*
pa=php artisan $*
make=php artisan make:$*
ru=php artisan route:list --name=user
@chebaby
chebaby / Preferences.sublime-settings
Last active Oct 27, 2019
Personal Preferences and settings in my sublime text editor
View Preferences.sublime-settings
{
"always_show_minimap_viewport": true,
"binary_file_patterns":
[
"*.jpg",
"*.jpeg",
"*.png",
"*.gif",
"*.ttf",
"*.tga",
@chebaby
chebaby / rsync-openssh-windows.md
Last active Oct 17, 2018
SSH and Rsync within Cygwin
View rsync-openssh-windows.md

Cygwin Setup

This is not an in-depth guide for installing Cygwin; although, installing Cygwin is a fairly simple process. In or to implement SSH and rsync functionality, a few non-default Cygwin packages will need to be installed.

  1. Download and run the Cygwin setup.exe program from http://cygwin.com/install.html

    If you already have Cygwin installed, that should not be a problem. You can still run setup.exe to install additional Cygwin packages.

  2. Proceed through the Cygwin setup process until you get to the "Select Packages" screen. From there, make sure the following packages are selected:

@chebaby
chebaby / proftpd.md
Last active Oct 11, 2018
Install proftpd on debian 8 step by step
View proftpd.md
apt-get install proftpd openssl

Add user (default group named "websitename" will be created)

adduser websitename

Next we need to make the directory protected from removing and renaming its content by any user, so we will change the directory permissions as follows:

@chebaby
chebaby / GulpRevVersionStrategy.php
Created Feb 15, 2018
VersionStrategy for using assets versioned with gulp-rev in Symfony
View GulpRevVersionStrategy.php
<?php
namespace AppBundle\Twig;
use Exception;
use Symfony\Component\Asset\VersionStrategy\VersionStrategyInterface;
class GulpRevVersionStrategy implements VersionStrategyInterface
{
private $manifestFilename;
You can’t perform that action at this time.