Skip to content

Instantly share code, notes, and snippets.

View gegeriyadi's full-sized avatar
🏠
Working from home

Teguh Riyadi gegeriyadi

🏠
Working from home
View GitHub Profile
@gegeriyadi
gegeriyadi / AND_OR_NOT
Created September 26, 2018 09:20 — forked from oliverdoetsch/AND_OR_NOT
Blogger: Globally conditional data tags for all page types
#AND
<b:if cond='data:blog.pageType == "index"'>
<b:if cond='data:blog.searchQuery'>
<!--search_page AND index_page-->
</b:if>
</b:if>
#OR

#STEP 1 Create a new laravel project. For more info, check the laravel docs page, on the laravel website

composer create-project laravel/laravel --prefer-dist my-laravel-app

#STEP 3 Install heroku toolbelt, on your machine. Assuming its ubuntu, just follow the following instructions Heroku toolbelt is a command line client, for heroku

@gegeriyadi
gegeriyadi / Laravel PHP7 LEMP AWS.md
Created December 21, 2017 11:12 — forked from santoshachari/Laravel PHP7 LEMP AWS.md
Laravel 5.x on Ubuntu 16.x, PHP 7.x, Nginx 1.9.x

#Steps to install latest Laravel, LEMP on AWS Ubuntu 16.4 version. This tutorial is the improvised verision of this tutorial on Digitalocean based on my experience.

Install PHP 7 on Ubuntu

Run the following commands in sequence.

sudo apt-get install -y language-pack-en-base
sudo LC_ALL=en_US.UTF-8 add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install zip unzip
@gegeriyadi
gegeriyadi / CaptureFaceBookReaction.html
Created December 29, 2016 14:43 — forked from anburocky3/CaptureFaceBookReaction.html
Counts Facebook Reactions with Token and display in web page.
<!--
How to use:
1.Create a facebook application here https://developers.facebook.com/apps/
- Open https://developers.facebook.com/tools/explorer , select your Application , select your FB Page, and copy access token :
This is called as the short lived access token, and will be valid for 30min or 1 hour
- Then open https://graph.facebook.com/oauth/ac...=<app_secret>&fb_exchange_token=<short_token> (replace the values correctly) .
This will give out another access token. Copy that token correctly from the response. It will be something like: