Skip to content

Instantly share code, notes, and snippets.

View krisrybak's full-sized avatar

Kris Rybak krisrybak

View GitHub Profile
@krisrybak
krisrybak / delete-projects-and-releases.md
Last active July 12, 2022 10:39
DELETE Projects & Releases

Delete Projects

There are 2 endpoints available to the user that allow to delete project: DELETE /v2/projects/project/{project_code} - main endpoint to delete a Project POST /v2/projects/delete/{project_code} - legacy endpoint for clients that do not support DELETE method

Accepted parameters:

  • project_code - Code of the project to delete

Responses:

#BRADLEY DYER CODING STANDARDS AND GUIDELINES

HTML

Writing valid code

Valid code is code that meets the W3C's standards. You can check your code at any time using the W3C validator.

It is important that you understand how browsers work - this will allow you to understand the ‘why’ of best practice. We encourage you to watch this video.

@krisrybak
krisrybak / gist:93f3e034e557bb4c7dea
Last active August 29, 2015 14:07
Updating your apache settings after migration to Yosemite

Yosemite

Yosemite is using new version of apache 2.4 (finally!), therefore all your previous settings have been whipped off and we need to re initialise apache.

Home directory

Let's start with re-instantiating your home folder:

cd / && ls -la

You will noticed that your home folder no longer exists, instead everything has been moved to home-preserved.

@krisrybak
krisrybak / gist:84fc46eb7f4314c4284a
Last active August 29, 2015 14:07
Setting up Ubuntu 14.04 dev container

Setting up Ubuntu 14.04 dev container

  1. Log in to host server http://192.168.10.102/phpvirtualbox/ and create new instance. Typically 20-25GB HDD, 768MB memory, 2 cores.
  2. Naming convetion: Use initials to generate name, followed by a host name. Exmaple: Jane Doe: jd.dev.bd.local where jd stands for a persons name initials, dev for dev container, on bd.local server.
  3. Make sure to change following settings: Network > Adapter 1 attached to Bridge Adapter. This allows for external connections.
  4. Install Ubuntu cd in Empty opt drive: Storage > Controller IDE > Empty and from the right menu choose location of your installation disk
  5. Start the instane and install ubuntu, use standard settings. As a UserName use full name of the person, example: janedoe and set password to bradleydyer
  6. Add following to your installation when asked by tasksel: Open SSH, Lamp and Samba Server
  7. Leave mysql root password empty (null)
@krisrybak
krisrybak / gist:ba7a9da1b80be6c913c9
Last active July 28, 2020 15:11
Symfony Annotations highlights for Sublime3

Please make sure you use Sublime 3 first:

  • From the Sublime Tex Menu choose option About and make sure build is higher that 3xxx
  • Navigate to your Sublime text packages directory: Sublime Text Menu > Preferences > Browse Packages...
  • Copy PHP folder form Cache into Packages folder
  • Locate PHP.tmLanguage file insde PHP folder and open in for edit:
  • Inside yuor PHP.tmLanguage find: <key>php_doc</key> node and update the language file by adding the following snippet under the php_doc's patterns array:
    <dict>
@krisrybak
krisrybak / Zend.md
Last active August 29, 2015 14:00
Adding Zend to your project

#Adding Zend framwork for your projects

Ubuntu Dev Conteiner user can skip step 1

  1. Create your opt directory

     cd / && sudo mkdir opt
    
  2. Go to opt directory

#Setting up apache on Mac

Standards

For consitency reasons all repositories to be placed as follows:

  /home/sites   <--- where projects live
  /home/vhosts  <--- vhosts files for those projects
  /home/logs    <--- logs files for those projects