Skip to content

Instantly share code, notes, and snippets.

View digimix's full-sized avatar
🎯
Focusing

Digimix digimix

🎯
Focusing
  • Digimix
  • New York City
View GitHub Profile
@digimix
digimix / .gitconfig
Last active August 21, 2019 18:59 — forked from pksunkara/config
Sample of git config file (Example .gitconfig)
[user]
name = Digimix
email = _@gmail.com
username = _
[core]
editor = vim
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol
excludesfile = ~/.gitignore
[sendemail]
smtpencryption = tls
@digimix
digimix / pageres-cli-list-urls.md
Last active August 9, 2019 21:53
Using Pageres CLI for a list or URLs

Using Pageres CLI to take screen shots of a list or urls

Preface: To make things easy, create a new clean directory, cd into it. mkdir screenshots && cd screenshots

  1. Save all of your URLs to a .txt file separating each by a space or line break. ` nano urls.txt CMD + V // to paste the URLs from your clipboard CTRL + X
@digimix
digimix / git_rebase.md
Created July 21, 2018 20:52 — forked from ravibhure/git_rebase.md
Git rebase from remote fork repo

In your local clone of your forked repository, you can add the original GitHub repository as a "remote". ("Remotes" are like nicknames for the URLs of repositories - origin is one, for example.) Then you can fetch all the branches from that upstream repository, and rebase your work to continue working on the upstream version. In terms of commands that might look like:

Add the remote, call it "upstream":

git remote add upstream https://github.com/whoever/whatever.git

Fetch all the branches of that remote into remote-tracking branches, such as upstream/master:

git fetch upstream

@digimix
digimix / wordpress-html-cheatsheet.md
Last active July 5, 2018 16:43
Quick references for using Bootstrap controlled HTML code in the WordPress editor for enterprise WordPress themes developed by Digimix.

About

Create better landing pages in WordPress more efficiently by learining a little bit of code. This document is created for digital marketers who are ready to take their creative visions to the next level, and stop relying puring on the user intface based digital publishing platforms. We will keep this simple, focusing on frontend code that will allow you to create customized layouts based on preformatted styles available in your WordPress theme. Digimix WordPress themes are built on Bootstrap, the worlds leading frontend framework, so many of the pricinples you learn here can be applied to other websites and digital products.

Filler Content

This document uses Lorem Ipsum as placeholder content for example purposes. Any text beinging with Lorem ipsum should be replaced with your real content.

Lorum Ipsum Example

@digimix
digimix / php7.2-ppa-install-ubuntu16.md
Last active May 16, 2018 19:37
How to add PHP 7.2 to Ubuntu 16.04

Add the PPA, updated apt-get, install php7.2.

Commands for adding php7.2 via apt-get with PPA

sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install php7.2-cli

@digimix
digimix / wordpress-php-reqs.yml
Created May 16, 2018 19:29
WordPress PHP Server Requirements by Digimix
disable_default_pool: true
memcached_sessions: false
php_extensions_default:
php7.2-cli: "{{ apt_package_state }}"
php7.2-common: "{{ apt_package_state }}"
php7.2-curl: "{{ apt_package_state }}"
php7.2-dev: "{{ apt_package_state }}"
php7.2-fpm: "{{ apt_package_state }}"
php7.2-gd: "{{ apt_package_state }}"
@digimix
digimix / extract-hashtags-text-command.md
Created March 20, 2018 19:43
Terminal command to extract hashtags from text using pbpaste. Counts hashtags, puts them in alphabetical order, and removes duplicates.

$: pbpaste | grep '#\w\+' -o | tr 'A-Z' 'a-z' | sort | uniq -c | pbcopy

Terminal command: paste, find all hashtags, convert to lowercase, sort in alphabetical order, only show uniques and also show the count how many times it was found in the list, copy the results

Works with Mac OSX

@digimix
digimix / Michael_Checkers_Announces_Partnership_with_Topman.md
Last active March 20, 2018 18:01
Press Release: Michael Checkers Announces Partnership with Topman for Topman Denim

FOR IMMEDIATE RELEASE

Michael Checkers Announces Partnership with Topman for Topman Denim

Michael Checkers, Miami Beach, Florida, United States – March 20, 2018 – Michael Checkers today announced that he has joined the Topman Denim - A Celebration Of The Fabric We Live In campaign for Topman, a British multinational men’s fashion retailer. The Topman Denim - A Celebration Of The Fabric We Live In campaign allows men’s fashion influencers to create unique outfits that best meets their audiences style preferences. As a brand partner, Michael Checkers will create a series of men’s street style looks featuring Topman Jeans and men’s streetwear fashion trends for Spring 2018. This relationship is designed to add mutual value for current customers and to increase targeted exposure and reputation for both companies.

“Denim is a key part of my wardrobe this Spring, and the starting point for most of my street style looks. That’s why I’m excited to be partnering with Topman and styling some of the ho

@digimix
digimix / trellis-deploy-redirects-error.md
Last active November 28, 2017 19:07
Trellis 1st production deploy troubleshooting

Error

Happens after deploying a Roots WordPress instance to Ubuntu vps via Trellis Ansible playbook.

` This page isn’t working

example.com redirected you too many times.

  • Try clearing your cookies. ERR_TOO_MANY_REDIRECTS
@digimix
digimix / themeup.sh
Created August 23, 2016 21:05 — forked from anonymous/themeup.sh
Run build sequence for Sage based WordPress theme from theme dir.
#!/bin/bash
# Initiating Digimix theme setup
echo "Initiating Digimix theme setup"
# install node modules
echo "install node modules"
npm install
# install bower components