Skip to content

Instantly share code, notes, and snippets.

View jantinnerezo's full-sized avatar
🧑‍💻
Working Remotely

Jantinn Erezo jantinnerezo

🧑‍💻
Working Remotely
View GitHub Profile
@jantinnerezo
jantinnerezo / wsl-redis-start.md
Created March 23, 2021 21:47 — forked from cromat/wsl-redis-start.md
Run redis inside WSL as background service on Windows startup

Step by step guide to run redis-server inside WSL(Windows Subsystem for Linux) on Windows

I have tried to setup redis as starting background task with wsl-autostart, Task Scheduler and with lot vbs scripts including one described here but none of them seemed to work.

In the end I have manually created a simple one that does the job. This script basically starts a hidden Ubuntu Window and starts redis-server inside it.

  1. Install WSL (this is tested with Ubuntu 18.04 version)
  2. Install redis-server inside WSL sudo apt install redis-server
  3. Add sudo permission to your user to execute service command without password
#!/bin/bash
# This will remove Apache
sudo service apache2 stop
sudo apt-get purge apache2 apache2-utils apache2.2-bin
sudo apt remove apache2.*
sudo apt-get autoremove
whereis apache2
sudo rm -rf /etc/apache2
@jantinnerezo
jantinnerezo / imagick3.4.4-PHP7.4-forge.sh
Created November 10, 2020 18:25 — forked from danielstgt/imagick3.4.4-PHP7.4-forge.sh
Install ImageMagick / Imagick 3.4.4 on PHP 7.4 server (Laravel Forge)
#!/bin/bash
if [ "$EUID" -ne 0 ]
then echo "Please run as root"
exit
fi
apt-get install pkg-config libmagickwand-dev -y
cd /tmp
wget https://pecl.php.net/get/imagick-3.4.4.tgz
tar xvzf imagick-3.4.4.tgz
<?php
/*
* TinyMCE: Add Tailwind CSS style
*/
add_editor_style('/assets/css/tailwind.min.css');
/*
* TinyMCE: Remove WP styles
*/
@jantinnerezo
jantinnerezo / wsl-lamp.md
Created July 21, 2020 17:36 — forked from aslamdoctor/wsl-lamp.md
Windows 10 - WSL LAMP Stack Setup
git rm -r --cached .
git add .
git commit -m ".gitignore is now working"
@jantinnerezo
jantinnerezo / dev-test-config.yml
Created March 25, 2020 00:41 — forked from jbutz/dev-test-config.yml
netlify-cms-test
backend:
name: test-repo
display_url: https://example.com
media_folder: "assets/uploads"
publish_mode: editorial_workflow
collections: # A list of collections the CMS should be able to edit
- name: "posts" # Used in routes, ie.: /admin/collections/:slug/edit