Skip to content

Instantly share code, notes, and snippets.

@rxaviers
rxaviers / gist:7360908
Last active May 19, 2024 03:25
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: πŸ˜„ :smile: πŸ˜† :laughing:
😊 :blush: πŸ˜ƒ :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
πŸ˜† :satisfied: 😁 :grin: πŸ˜‰ :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: πŸ˜€ :grinning:
πŸ˜— :kissing: πŸ˜™ :kissing_smiling_eyes: πŸ˜› :stuck_out_tongue:
@Meatplowz
Meatplowz / maya_external_client.py
Last active May 19, 2024 03:22
Maya Threaded Server example with Client
"""
External Maya Client
This can be run outside of Maya
Use in idle or an IDE that can accept input.
"""
import socket
import logging
@sam0x17
sam0x17 / js-guide.md
Last active May 19, 2024 03:19
Become a Reddit Mega Soy JS Dev

Become a Reddit Mega Soy JS Dev

  1. Go through the What is web development? w3schools roadmap (just read)
  2. Go through the entire sidebar of the w3schools HTML guide. You'll already be familiar with a good bit of this but there are a lot of new HTML elements including things like <canvas> etc. that it would be good to be vaguely familiar with. Go through some of the quick little exercises for anything you are unfamiliar with but otherwise don't bother.
  3. Same deal with the w3schools CSS guide. There's some really useful stuff in here since CSS 3 came out, and the more you know about it the better. A bunch of it I probbaly don't even know about.
  4. Go through all of the w3schools Javascript guide. Everything here is relevant so you can get a solid foundation.
@thesamesam
thesamesam / make.conf
Last active May 19, 2024 03:18
Portage QA
# -fdiagnostics-color=always: just for colour
# -frecord-gcc-switches: must be in *ALL* *FLAGS* (harmless but not needed in LDFLAGS) to be effective, or Portage skips it
COMMON_FLAGS="-O2 -pipe -march=native -fdiagnostics-color=always -frecord-gcc-switches"
CFLAGS="${COMMON_FLAGS}"
CXXFLAGS="${COMMON_FLAGS}"
FCFLAGS="${COMMON_FLAGS}"
FFLAGS="${COMMON_FLAGS}"
# You can use ${COMMON_FLAGS} here, but please remember to include as-needed manually then.
LDFLAGS="${LDFLAGS} -Wl,--defsym=__gentoo_check_ldflags__=0"
@hcosta
hcosta / custom_ckeditor.md
Last active May 19, 2024 03:18
CΓ³digo para conseguir ancho adaptativo en django-ckeditor

static/pages/css/custom_ckeditor.css

.django-ckeditor-widget, .cke_editor_id_content {
    width: 100% !important;
    max-width: 821px !important;
}

Inyectar en pages_menu.html

@damiencarbery
damiencarbery / wc-products-shortcode-ids-order.php
Last active May 19, 2024 03:18
Change WooCommerce [products] shortcode display order - Change the order of products in [products] shortcode to order in ids parameter if 'orderby' is set to 'ids'. https://www.damiencarbery.com/2024/05/change-woocommerce-products-shortcode-display-order/
<?php
/*
Plugin Name: WooCommerce - Change [products] shortcode display order
Plugin URI: https://www.damiencarbery.com/
Description: Change the order of products in [products] shortcode to order in ids parameter if 'orderby' is set to 'ids'. Example: [products ids="1,5,2,4" orderby="ids"]
Author: Damien Carbery
Author URI: https://www.damiencarbery.com
Version: 0.1.20240517
*/
@thanoskoutr
thanoskoutr / squashfs-install.md
Last active May 19, 2024 03:14
Fix sasquatch installation for binwalk

Fix sasquatch installation for binwalk

For anynone that is running the latest version of binwalk (Binwalk v2.3.3) and when trying to extract squshfs filesystems, gets the following error:

WARNING: Extractor.execute failed to run external extractor 'sasquatch -p 1 -le -d 'squashfs-root' '%e'': [Errno 2] No such file or directory: 'sasquatch', 'sasquatch -p 1 -le -d 'squashfs-root' '%e'' might not be installed correctly

it might have to do that the sasquatch project is missing or not working correctly.

Install sasquatch

@ivanbrennan
ivanbrennan / postgres-in-minikube.sh
Last active May 19, 2024 03:11
PostgreSQL in minikube
# create/update resources
kubectl --context=minikube apply -f ./postgres.yaml
# In order for the service to reach the statefulset, the following should
# be true:
# statefulset.spec.selector.matchLabels.app == service.spec.selector.app
# statefulset.spec.selector.matchLabels.role == service.spec.selector.role
# give the server some time to start up
# ...
/* Binary tree - Level Order Traversal */
#include<iostream>
#include<queue>
using namespace std;
struct Node {
char data;
Node *left;
Node *right;
};
@BlueSwordM
BlueSwordM / Decoding guide AV1 2022: Decoding and decoding aware encoding optimizations.md
Last active May 19, 2024 03:09
# Maximizing AV1 decoding speed: a modern 2022 encoding and decoding guide!

Hello. I've decided to share a lot more of my knowledge in public forums from now on, and to not divert any of my focus away from improving the world in a way that stays written in history.

This Gist is about discussing on how to improve AV1 decoding performance on 2 fronts: improving performance through more efficient decoding, and through decoding aware encoding.

Improving decoding performance through more efficient decoding.

Here are many tips on how to improve decoding performance on any machine:

1. Keep your favorite media player up to date!