Skip to content

Instantly share code, notes, and snippets.

View huenisys's full-sized avatar
🎯
Focusing

Paul Dominik huenisys

🎯
Focusing
View GitHub Profile
composer global require spatie/phpunit-watcher
@huenisys
huenisys / ubuntu-on-vb.md
Last active January 1, 2019 09:10
Sample VirtualBox setup of Ubuntu Desktop on a Windows host for web dev

Basics

  • Install Guest additions
  • Setup Shared Folders
    • add your user to the vboxsf group. sudo adduser paul vboxsf
    • configure host shared folders, I usually share a sites folder, Docs and Downloads
    • not really sure why but in VB, the config for mount-point seems to have no effect at all
    • in Ubuntu, create the folders where you'll mount stuff
    • then mount
  • # mount -t vboxsf sites ~/win-sites
@huenisys
huenisys / docker.md
Created December 18, 2018 12:30
install docker in ubuntu 18.04
@huenisys
huenisys / nginx.conf
Created December 13, 2018 18:54
Enable gzip
location ~ /\.ht {
deny all;
}
#GZIP
# Enable gzip compression.
gzip on;
# Compression level (1-9).
# 5 is a perfect compromise between size and CPU usage, offering about
@huenisys
huenisys / readme.md
Last active May 2, 2020 20:57
encode private RSA key for gitlab error: "Enter passphrase for /dev/fd/63" error

Encode your private RSA key

$ cat my_private_key | base64 -w0 
# -w0 to avoid newlines

Add the base64 string to your project variables. Use it in your .gitlab-ci.yml

@huenisys
huenisys / readme.md
Created August 20, 2018 07:54
enable symlink in windows for git
  • enable developer mode in Windows 10 Pro
  • globally enable symlinks in repos: $ git config --global core.symlinks "true"
  • use $ mklink /d link target. use relative paths.
- install PHPStorm
- configure Prefs > Plugins, install Symfony Plugin, PHP Annotations, PHP Toolbox
@huenisys
huenisys / pldt-home-fibr-an5506-04-fa-rp2616-advanced-settings.md
Created May 23, 2018 07:06 — forked from kleo/backspace.md
PLDT HOME FIBR AN5506-04-FA RP2616 Advanced Settings

PLDT HOME FIBR AN5506-04-FA RP2616 Advanced Settings

By default the PLDT HOME FIBR AN5506-04-FA RP2616 comes only with limited settings.

Hidden from the web interface are the rest of the router's capabilities and advanced settings.

We just need to enter the right url for the settings you're looking for.

We need to be logged in before we can do anything else, use your defined password if you already set the admin password.

@huenisys
huenisys / win10_file_management.md
Last active April 1, 2018 02:26
Windows 10 File Management
  • keep most user files and dir on different drive, which later on is set on raid backup

Move Libraries

  • Desktop, Downloads, Documents and Pictures are moved to the separate drive for easy win10 reinstalls when needed

About OneDrive

  • before setup, move it to sep drive. Have Pictures under it.
@huenisys
huenisys / rooting.md
Last active March 25, 2018 01:41
Rooting Redmi 4 Prime
  • install adb drivers
  • make sure phone has dev mode enabled
  • go fast boot: power + down
  • go get twrp image
  • fastboot flash recover nameOfTwrp-image

  • fastboot boot nameOf...
  • do mode read only so that future updates of official rom will be easy
  • flash supersu
  • flash lazy verity