Skip to content

Instantly share code, notes, and snippets.

View lots0logs's full-sized avatar
🧑‍💻
Working on Divi Sites

Dustin Falgout lots0logs

🧑‍💻
Working on Divi Sites
View GitHub Profile

Note: This tutorial series is intended for advanced users. At least a basic understanding of coding in PHP and JavaScript is required.

Divi module setting fields support the use of Dynamic Content, allowing you to build dynamic modules that display information pulled from the site's database.

Enable Dynamic Content

@lots0logs
lots0logs / rules-both.iptables
Created March 11, 2017 08:08 — forked from jirutka/rules-both.iptables
Basic iptables template for ordinary servers (both IPv4 and IPv6)
###############################################################################
# The MIT License
#
# Copyright 2012-2014 Jakub Jirutka <jakub@jirutka.cz>.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
@lots0logs
lots0logs / divi-hummingbird.php
Last active October 17, 2016 17:06 — forked from igmoweb/divi-hummingbird.php
It avoids minification and concatenation for Divi assets (assets slugs must be filled)
<?php
function wphb_et_divi_theme_active() {
$theme = wp_get_theme();
return ( 'divi' === strtolower( $theme ) || 'divi' === strtolower( $theme->get_template() ) );
}
if ( ! function_exists( 'wphb_divi_after_init' ) ):
function wphb_divi_after_init() {
if ( wphb_et_divi_theme_active() ) {
@lots0logs
lots0logs / ipc.py
Created March 25, 2016 08:04 — forked from dankrause/ipc.py
Simple socket IPC in python
import SocketServer
import socket
import struct
import json
class IPCError(Exception):
pass
class UnknownMessageClass(IPCError):
# Copyright (C) 2015 Patrick Griffis <tingping@tingping.se>
# Copyright (C) 2014 Christian Hergert <christian@hergert.me>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranties of
@lots0logs
lots0logs / 0_reuse_code.js
Created November 7, 2015 03:52
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
"""
Exports Issues from a specified repository to a CSV file
Uses basic authentication (Github username + password) to retrieve Issues
from a repository that username has access to. Supports Github API v3.
"""
import csv
import requests