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
{
"meta": {
"code": 200
},
"response": {
"holidays": [
{
"name": "New Year's Day",
"description": "New Year\u2019s Day on January 1 in the Gregorian calendar is a public holiday in the Philippines.",
"date": {
// Utilities for controlling the box shadow of an element.
.shadow { box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06); }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }
.shadow-inner { box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06); }
.shadow-outline { box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.5); }
.shadow-none { box-shadow: none; }
@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
UPDATE wp_options SET option_value = replace(option_value, 'http://www.oldurl', 'http://www.newurl') WHERE option_name = 'home' OR option_name = 'siteurl';
UPDATE wp_posts SET guid = replace(guid, 'http://www.oldurl','http://www.newurl');
UPDATE wp_posts SET post_content = replace(post_content, 'http://www.oldurl', 'http://www.newurl');
UPDATE wp_postmeta SET meta_value = replace(meta_value,'http://www.oldurl','http://www.newurl');
git rm -r --cached .
git add .
git commit -m ".gitignore is now working"
@jantinnerezo
jantinnerezo / wsl-lamp.md
Created July 21, 2020 17:36 — forked from aslamdoctor/wsl-lamp.md
Windows 10 - WSL LAMP Stack Setup
@jantinnerezo
jantinnerezo / git_tag.gist
Created July 29, 2020 14:13
Update and commit to a existing tag
1) Create a branch with the tag
git branch {tagname}-branch {tagname}
git checkout {tagname}-branch
2) Include the fix manually if it's just a change ....
git add .
git ci -m "Fix included"
or cherry-pick the commit, whatever is easier
git cherry-pick {num_commit}
<?php
/*
* TinyMCE: Add Tailwind CSS style
*/
add_editor_style('/assets/css/tailwind.min.css');
/*
* TinyMCE: Remove WP styles
*/
@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
#!/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