Skip to content

Instantly share code, notes, and snippets.

View gjhuerte's full-sized avatar
😳
asdfghjkl

Gabriel Jay Huerte gjhuerte

😳
asdfghjkl
View GitHub Profile
@gjhuerte
gjhuerte / fix-wordpress-cookies-blocked
Created August 9, 2018 07:14
Wordpress blocked cookies fix
Add the following lines to config/applications.php
define('ADMIN_COOKIE_PATH', '/');
define('COOKIE_DOMAIN', '');
define('COOKIEPATH', '');
define('SITECOOKIEPATH', '');
@gjhuerte
gjhuerte / reapply-gitignore-to-remote .txt
Last active August 9, 2018 07:10
Reapply gitignore to remote
git rm -r --cached some-directory
git commit -m 'Remove the now ignored directory "some-directory"'
git push origin master
@gjhuerte
gjhuerte / reset-commited-files .txt
Last active August 9, 2018 07:10
Reset commited files ( Github )
git reset --soft HEAD^
git reset HEAD^
git reset --hard HEAD^
src: https://stackoverflow.com/questions/2845731/how-to-uncommit-my-last-commit-in-git
@gjhuerte
gjhuerte / domain-name-for-server.txt
Last active August 9, 2018 07:12
Domain Name for Web Server
I have a sever with win 2008.
I install IIS 7 and DNS. Also, I have domain abcd.com (for example) which point to IP : 12.34.45.6 (for example)
I want to setup a web on my server with domain abcd.com, but failed.
Here is what I do :
NETWORK:
- setup net work for my local machine, which host the web. Select the ip as : 192.168.1.10
DNS:
- setup DNS with Forward Lookup Zones.
- add New Host : FQDN=abcd.com, IP=192.168.1.100
IIS