Skip to content

Instantly share code, notes, and snippets.

View Ghustavh97's full-sized avatar
🎯
Focusing

Ghustavh97 Ghustavh97

🎯
Focusing
View GitHub Profile

PSR2 Standards [phpcs]

<?xml version="1.0"?>
<ruleset name="GhustavhCustomPSR2Standard">
    <description>Ghustavh PSR2 Custom Standard.</description>
    <rule ref="PSR2">
        <exclude name="PSR1.Methods.CamelCapsMethodName"/>
 
@Ghustavh97
Ghustavh97 / docsify.md
Last active August 14, 2020 06:44
My Docsify Gist

Create symlinks

    cd ./docs
    ln -s ../src

Default settings

#File Magic Numbers

Magic numbers are the first bits of a file which uniquely identify the type of file. This makes programming easier because complicated file structures need not be searched in order to identify the file type.

For example, a jpeg file starts with ffd8 ffe0 0010 4a46 4946 0001 0101 0047 ......JFIF.....G ffd8 shows that it's a JPEG file, and ffe0 identify a JFIF type structure. There is an ascii encoding of "JFIF" which comes after a length code, but that is not necessary in order to identify the file. The first 4 bytes do that uniquely.

This gives an ongoing list of file-type magic numbers.

##Image Files

@Ghustavh97
Ghustavh97 / multi-git-win.md
Created March 13, 2020 18:40 — forked from rosswd/multi-git-win.md
Setting up a Github and Bitbucket account on the same computer on Mac OS. Now with a guide for Windows 10.

Setting up github and bitbucket on the same computer (Windows)

Guide for Windows

mix3d asked for some help using this guide with windows so here we go. This was tested with Windows 10. Run all commands in Git Bash once it's installed.

Github will be the main account and bitbucket the secondary.

Git for Windows

  • Download and install Git for Windows
    • In the installer, select everything but decide if you want a desktop icon (2nd step)