Skip to content

Instantly share code, notes, and snippets.

View wearepixelated's full-sized avatar
💭
Benevolently owning all your base...

Scott Alexander wearepixelated

💭
Benevolently owning all your base...
View GitHub Profile
@mipimipi
mipimipi / Install_Arch_Linux_on_USB_Stick.md
Last active February 9, 2022 14:27
Installing Arch Linux on an USB stick with encryted file system

Installing Arch Linux on an USB stick with encryted file system

Objective

Goal is to have an USB stick that ...

  • has a persistent Linux installed
  • can be connected and booted on different computers
  • has an encrypted file system

Approach

@remoblaser
remoblaser / ct-psr2.md
Last active June 21, 2021 15:56
Sublime Text configuration for PSR-2 / cubetech

Install PHPcs

Use Sublime Text’s Package Control (Preferences -> Package Control -> Install Package -> Phpcs) to install the plugin.

Install required executables

In order for Phpcs to work, we need to install various command line tools.

  • phpcs: PHP Code Sniffer
  • php-cs-fixer: PHP Coding Standards Fixer
  • php-md: PHP Mess detector (optional)
@litzinger
litzinger / getset-php.sublime-snippet
Created March 3, 2014 21:18
Creates getter and setter in PHP model
<snippet>
<content><![CDATA[
/**
* Get $1
*
* @return ${2:[type]} \$$1
*/
public function get${1/(.*)/\u$1/}()
{
return \$this->${1:$SELECTION};