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
@lots0logs
lots0logs / gist:8587869
Created January 23, 2014 22:11
Parted error 1/23/13
ERROR: /dev/sda: unrecognised disk label
Traceback (most recent call last):
File "/usr/share/cnchi/src/parted3/partition_module.py", line 99, in get_devices
diskob = parted.Disk(dev)
File "/usr/lib/python3.3/site-packages/parted/decorators.py", line 41, in new
ret = fn(*args, **kwds)
File "/usr/lib/python3.3/site-packages/parted/disk.py", line 56, in __init__
self.__disk = _ped.Disk(device.getPedDevice())
_ped.DiskLabelException: /dev/sda: unrecognised disk label
@lots0logs
lots0logs / TODO.md
Last active August 29, 2015 13:57
TODO

CNCHI TODO LIST

v0.6 Release Blockers

General

  • Port v0.6 changes to CLI
  • Choose a progress bar color/design.
  • Fix empty space at the bottom of some screens.

Complete Test Install For Each Desktop

"""
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
@lots0logs
lots0logs / PKGBUILD
Last active August 29, 2015 14:16
PKGBUILD - get checksums dynamically at time of build
_eap=True
if [[ ${_eap} = "True" ]]; then
source=("http://download.jetbrains.com/python/pycharm-professional-${_buildver}.tar.gz")
sha256sums=$(wget -q "${source}.sha256" && cat "pycharm-professional-${_buildver}.tar.gz.sha256" | cut -f1 -d" ")
else
source=("http://download.jetbrains.com/python/pycharm-professional-${_pkgver}.tar.gz")
sha256sums=$(wget -q "${source}.sha256" && cat "pycharm-professional-${_pkgver}.tar.gz.sha256" | cut -f1 -d" ")
fi
@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
@lots0logs
lots0logs / functions.php
Last active November 10, 2023 14:32
Divi Contact Form Module Customization
<?php
function my_et_theme_setup() {
if ( class_exists( 'ET_Builder_Module_Contact_Form' ) ) {
get_template_part( 'my-main-modules' );
$et_pb_contact = new My_ET_Builder_Module_Contact_Form();
remove_shortcode('et_pb_contact_form');
add_shortcode('et_pb_contact_form', array( $et_pb_contact, '_shortcode_callback' ) );
}
}
@lots0logs
lots0logs / partial.html
Last active November 24, 2015 01:46
Blog Module: Make Featured Image Appear Below The Post Title ePanel>>Integration>>Add to the <body>:
<script>
(function($) {
$(document).ready(function() {
$('.et_pb_posts.et_pb_module article > a:first-child').each(function() {
$(this).insertAfter($(this).siblings('.post-meta'));
});
});
})(jQuery);
</script>
@media (max-width: 985px) {
.one-edge-shadow p, .one-edge-shadow h2 {
text-align: center !important;
}
.one-edge-shadow .et_pb_column_1_3 .et_pb_text {
margin-top: 0px !important;
}
}
@media (min-width: 960px) {
#menu-item-109, li.centered-inline-logo-wrap {
padding-right: 82px !important;
}
#top-menu li li {
padding: 5px 5px;
}
.nav li ul {
width: 201px;
}
[dustin@dUsTiN-XPS ~]$ mtr -rw myheadspacematters.nz
Start: Wed Dec 2 17:30:05 2015
HOST: dUsTiN-XPS Loss% Snt Last Avg Best Wrst StDev
1.|-- gateway 0.0% 10 2.4 2.5 2.3 3.8 0.3
2.|-- 108-76-136-3.lightspeed.jcsnms.sbcglobal.net 10.0% 10 24.7 34.2 22.7 54.6 10.2
3.|-- 99.183.77.96 0.0% 10 26.9 28.8 26.7 37.7 3.3
4.|-- ??? 100.0 10 0.0 0.0 0.0 0.0 0.0