Skip to content

Instantly share code, notes, and snippets.

View ahmadawais's full-sized avatar
✨
CommandCode.ai the first coding agent that continuously learns your coding taste

Ahmad Awais ahmadawais

✨
CommandCode.ai the first coding agent that continuously learns your coding taste
View GitHub Profile
@ahmadawais
ahmadawais / ee-le-update.sh
Created March 8, 2018 19:26
EE: EasyEngine Let's Encrypt Update When Nothing Else Works
My current fix to this issue after your EE LE cert has expired is this
```sh
cd ~
git clone https://github.com/letsencrypt/letsencrypt
cd letsencrypt
ee site update domain.com --le=off # or run with sudo, though, not needed.
./letsencrypt-auto certonly --webroot -w /var/www/domain.com/htdocs/ -d domain.com -d www.domain.com --email your@email.com --text --agree-tos
ee site update domain.com --le=on # or run with sudo, though, not needed.
```
@ahmadawais
ahmadawais / AA-Git-Commit-Log.md
Last active May 5, 2018 16:29
AA Git Commit Log
@clarkio
clarkio / vs-code-can-do-that-settings.json
Last active May 19, 2018 19:39
VS Code settings to use for recording VS Code Can Do That content
{
"window.zoomLevel": 4,
"editor.formatOnSave": true,
"workbench.iconTheme": "vs-seti",
"workbench.colorTheme": "Monokai Dimmed",
"prettier.singleQuote": true
}
@ahmadawais
ahmadawais / README.md
Last active January 19, 2018 09:18
commander.js : Customize Version Argument for `commander.js` ⚡️

Customize Version Argument for commander.js

You can support for -v instead of -V to get the --version to be consistent with Node and npm.

It's just a customization:

@philhawksworth
philhawksworth / _redirects
Last active December 27, 2021 21:49
Simple example of Netlify _redirects file
# Redirect with a 301
/home / 301
# Redirect with a 302
/my-redirect / 302
# Rewrite a path
/pass-through /index.html 200
@tajidyakub
tajidyakub / letsencrypt-easyengine-manual-install.md
Last active December 7, 2022 05:13
Install Let's Encrypt's SSL Certificates manually in an Easy Engine Powered Setup
@felixarntz
felixarntz / wp-alignment-classes.css
Created November 24, 2017 15:52
New WordPress alignment classes introduced by Gutenberg
/* -------------------------------------------------------------
# Variables
------------------------------------------------------------- */
$site_maxwidth: 72rem; // Maximum width the entire site should not exceed
$site_maxwidth-text: 40rem; // Maximum width the main content text should not exceed
$spacing_horizontal: 1rem; // General horizontal padding
/* -------------------------------------------------------------
# General Styles
@kevinwhoffman
kevinwhoffman / resources-web-developers-designers.md
Last active October 21, 2025 14:29
Resources for Web Developers and Designers

Resources for Web Developers and Designers

This is an incomplete list of resources including courses and individuals who publish content that has helped me grow as a web developer and designer. Many of these resources are WordPress-specific as that is my current area of specialization. This list will grow over time. If you've got something to add, send me a link @kevinwhoffman and I'll check it out!

Course Providers

@allysonsouza
allysonsouza / webpack.config.js
Created October 2, 2017 15:01
WebPack for WordPress Theme
// Const
const webpack = require('webpack'); //to access built-in plugins
const ExtractTextPlugin = require("extract-text-webpack-plugin");
const path = require('path');
// ExtractPlugin - Multiple instances
// Configure individual stylesheet generation to use correctly with wp_enqueue_style
const extractMain = new ExtractTextPlugin('css/main.min.css');
const extractAdmin = new ExtractTextPlugin('css/admin.min.css');
const extractEditor = new ExtractTextPlugin('css/editor.min.css');
@LawJolla
LawJolla / gatsby-node.js
Created September 18, 2017 05:15
Gatsby Create pages from API
// Lightweight GraphQL generic client
const GraphQLClient = require('graphql-request').GraphQLClient;
const crypto = require('crypto');
const path = require('path');
const api = require('./api_constants');
//GraphQL query string to get all inventory, filtering by a specific dealer
const vehicles = `
{
allDealerships(filter:{ name:"Wheel Kinetics"}) {