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 / 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
@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 / 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 / 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 / git-credentials-location.txt
Last active September 6, 2018 07:25
Git credentials location
Control Panel\User Accounts\Credential Manager
@gjhuerte
gjhuerte / adding-pc-ssh-github
Created September 6, 2018 07:26
Adding a workstation via SSH
https://help.github.com/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent/
https://help.github.com/articles/adding-a-new-ssh-key-to-your-github-account/
1. Click the Start button.
2. Type gpedit.msc and press Enter.
3. Go to Local Computer Policy > Administrative Templates > Windows Components then select Windows Defender.
4. On the right-side pane of the window, double-click Turn off Windows Defender.
5. Set the configuration to Disabled.
6. Click OK to save the changes and restart your computer.
@gjhuerte
gjhuerte / posting-in-facebook-api.txt
Created November 15, 2018 10:04
posting-in-facebook-api
https://developers.facebook.com/docs/pages/publishing/
@gjhuerte
gjhuerte / android-development-fix.txt
Created November 16, 2018 16:48
android-development-fix
Open development menu: ctr: + m
https://stackoverflow.com/questions/44446523/unable-to-load-script-from-assets-index-android-bundle-on-windows
I've encountered the same issue while following the React Native tutorial (developing on Linux and targeting Android).
This issue helped me resolve the problem in following steps.
(in project directory) mkdir android/app/src/main/assets
react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res
@gjhuerte
gjhuerte / gist:ee7e4b3f71ce18c167bb8f54ddcec893
Created January 3, 2019 02:06 — forked from JeffreyWay/gist:1525217
Instant Server for Current Directory
alias server='open http://localhost:8000 && python -m SimpleHTTPServer'