Skip to content

Instantly share code, notes, and snippets.

View meidikawardana's full-sized avatar

meidikawardana

  • West Pasaman, Indonesia
  • 10:28 (UTC +07:00)
View GitHub Profile
@webmechanicx
webmechanicx / aws-lamp-ubuntu-18_0_4.md
Last active April 7, 2021 14:27
How To Install LAMP On Ubuntu 16.04 or 18.04 – EC2 Instance

How To Install LAMP On Ubuntu 16.04 – EC2 Instance

Anyone who knows a little bit about the Linux and UNIX platforms, he/she must be heard about the LAMP Stack. LAMP Stack is the group of services that work together in order to serve the dynamic websites and web apps. The LAMP stack can be installed and configured on almost all Linux variants such as Amazon Linux, Ubuntu, Red Hat, and Fedora. In this tutorials, we will explain how to install LAMP on Ubuntu 16.04 EC2 instance. Generally, LAMP stack consists of the following components:

  • L= Linux as the operating system platform.
  • A= Apache as the Web server
  • M= MySQL as the database server
  • P= PHP as the supportive language
@drivard
drivard / install_duc_mac.sh
Last active March 13, 2021 07:17
how to install duc on mac using brew
# /bin/bash
#
## Install duc from http://duc.zevv.nl/
## Adapted from https://gist.github.com/turtlemonvh/09a79a810d485f18af19
## Find the latest release here https://github.com/zevv/duc/releases
DUC_VERSION=1.4.3
if ! which brew ; then
echo "ERROR: brew is required"
@gdeglin
gdeglin / reasons.md
Last active May 26, 2023 11:55
Reasons an FCM notification can be delayed

Reason 1: Force Stopped

When an app is in a "Force Stopped" state most events including FCM/GCM messages for push notifications will not be received.

An app can be placed in this state in the following ways.

  • From Settings > Apps, "Force Stop" is pressed.
  • Long pressing the back button on some devices.
  • Using a 3rd party task killer like Greenify.
  • App is closed on a Huawei or Xiaomi device due their custom Android tweaks.
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from BeautifulSoup import BeautifulSoup
import time
NAME = "Mom"
RELOAD_TIMEOUT = 1
ERROR_TIMEOUT = 5
NUM_CYCLES = 10
FIREFOX_PATH = "/Users/sgrover/Library/Application Support/Firefox/Profiles/9w4h7jdq.default"
@cesco89
cesco89 / MaterialDialog.java
Last active July 31, 2020 01:58
A custom AlertDialog that follows Material Design guidelines
import android.app.AlertDialog;
import android.content.Context;
import android.graphics.Typeface;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.WindowManager;
import android.widget.Button;
import android.widget.FrameLayout;
import android.widget.ScrollView;