Skip to content

Instantly share code, notes, and snippets.

View jesgs's full-sized avatar
🍜
Ramen connoisseur

Jess Green jesgs

🍜
Ramen connoisseur
View GitHub Profile
@jesgs
jesgs / rename_all_bones.py
Last active October 22, 2023 15:52
Python script for renaming armature bones in Blender. Specific to figures being imported from Daz Studio/Poser to Blender.
import bpy
import re
def rename_all_bones():
armature = bpy.context.active_object
bones = armature.data.bones
for bone in bones:
new_name = rename_bone(bone.name)
if new_name is not "":
@jesgs
jesgs / composer.json
Created July 29, 2020 15:50
Composer install scripts for WordPress and Homestead
{
"name": "jesgs/wordpress-project",
"type": "project",
"repositories": [
{
"type": "composer",
"url": "https://wpackagist.org"
}
],
"require": {
@jesgs
jesgs / config.json
Last active October 26, 2019 17:34
Fadecandy Config
{
"listen": ["127.0.0.1", 7890],
"relay": [null, 7891],
"verbose": true,
"color": {
"gamma": 2.5,
"whitepoint": [1.0, 1.0, 1.0]
},
@jesgs
jesgs / post-order-attribute-fix.php
Last active August 24, 2023 09:22
Fixes issue with menu_order not saving properly with Gutenberg
<?php
/**
* Add page attributes to post
*/
function mytheme_add_post_attributes()
{
add_post_type_support('post', 'page-attributes');
}
add_action('init', 'mytheme_add_post_attributes', 500);
SELECT
table_name AS `Table`,
round(((data_length + index_length) / 1024 / 1024), 2) `Size in MB`
FROM information_schema.TABLES
WHERE table_schema NOT IN ('performance_schema', 'mysql', 'information_schema')
ORDER BY (data_length + index_length) DESC;
@jesgs
jesgs / git-example.bash
Created April 13, 2019 23:31
Update git email address
git config --global user.email "your@email_address.tld"
git rebase -i
git commit --amend --reset-author
git rebase --continue
git push
.control-extend {
&__label {
display: none;
@media only screen and (min-width: 768px) {
display: inline-block;
font-weight: 800;
cursor: pointer;
color: black;
&:hover {
@jesgs
jesgs / index.html
Created February 20, 2019 02:38
Moon Phase
<div class="wrapper">
<header class="row">
<h1 class="h h1">MoonPhase App</h1>
</header>
<div class="row">
<ul class="data-table h3">
<li>
<strong class="label">Current Date</strong><span class="value js-current-date-value"></span>
</li>
@jesgs
jesgs / next-comic-link-example.php
Last active August 26, 2018 13:25
Turn comic image into "next comic" link
.marquee {
overflow: hidden;
position: relative;
}
.marquee .responsive-table {
width: 100%;
height: max-content;
display: block;