Skip to content

Instantly share code, notes, and snippets.


Block or report user

Report or block iammart

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
iammart / media-queries-b3.scss
Created Jul 17, 2018 — forked from akolinski/media-queries-b3.scss
Media queries using SCSS in Bootstrap 3
View media-queries-b3.scss
// Using bootstrap the SASS way. Import your variables.
@import "bower_components/bootstrap-sass-official/assets/stylesheets/bootstrap/variables";
/* */
/* Extra small devices (phones, less than 768px) */
/* No media query since this is the default in Bootstrap */
// Mobile first
border: solid 4px red;
iammart /
Created Jun 15, 2018 — forked from kshivang/
Instagram like ViewPager implementation with bottom tab layout, without recreating fragments in fragment manager on tab select or back click. Implementation is prescribed for ViewPager inside fragment(more complex case) similar thing could be achieved for ViewPager in activity as well.
public abstract class BaseActivity extends AppCompatActivity {
public void moveBack() {
public abstract void onBackWhenNoFragment();
public void onBackPressed() {
iammart /
Created Jun 1, 2018 — forked from xvarlez/
Android simple user input validation system, with support for EditText, AutoCompleteTextView, TextInputLayout
* The activity containing your EditTexts.
public class ProfileActivity extends AppCompatActivity {
* Input field "your name".
EditText nameEditText;
View Makefile
.PHONY: run
# certs and output
# or, if you're using Crosswalk:

How to add an image to a gist

  1. Create a gist if you haven't already.
  2. Clone your gist:
    # make sure to replace `<hash>` with your gist's hash
    git clone<hash>.git # with https
    git clone<hash>.git     # or with ssh
iammart /
Created Nov 19, 2017 — forked from ethicka/
Local virtualhost SSL websites on Mac OS Sierra

Local virtualhost SSL websites on Mac OS Sierra

These instructions will guide you through the process of setting up a wildcard SSL for your local virtualhosts for offline development. Most importantly, this configuration will give you the happy, green lock in Chrome.

These instructions have only been tested on Mac OS Sierra using the pre-installed Apache and PHP versions. These instructions also assume you have virtualhosts set up locally already.

Configuring SSL


Install Supervisor with sudo apt-get install supervisor in Unix or brew install supervisor in Mac OSX. Ensure it's started with sudo service supervisor restart in Unix or brew services start supervisor in Mac OSX.

In Unix in /etc/supervisord/conf.d/ create a .conf file. In this example, laravel_queue.conf (contents below). Give it execute permissions: chmod +x laravel_queue.conf.

In Mac OSX first run supervisord -c /usr/local/etc/supervisord.ini and in /usr/local/etc/supervisor.d/ create a .conf file. In this example, laravel_queue.conf (contents below). Give it execute permissions: chmod +x laravel_queue.conf.

This file points at /usr/local/bin/, so create that file there. Give this execute permissions, too: chmod +x

Now update Supervisor with: sudo supervisorctl reread in Unix and with: brew services restart supervisor in MAc OSX . And start using those changes with: sudo supervisorctl update.

# This script configures WordPress file permissions based on recommendations
# from
# Author: Michael Conigliaro <mike [at] conigliaro [dot] org>
WP_OWNER=www-data # <-- wordpress owner
WP_GROUP=www-data # <-- wordpress group
WP_ROOT=$1 # <-- wordpress root directory
iammart /
Last active May 26, 2017
cPanel Mail
# Delete email older than %%
$ find /home/%ACCOUNT%/mail/%MAILBOX%/new -type f -mtime +30 -delete
$ find /home/%ACCOUNT%/mail/%MAILBOX%/cur -type f -mtime +30 -delete
# Fix quotas
You can’t perform that action at this time.