Skip to content

Instantly share code, notes, and snippets.

View kenorb's full-sized avatar
💭
The Consciousness Has Shifted...The Awakening Has Begun

Rafal W. kenorb

💭
The Consciousness Has Shifted...The Awakening Has Begun
View GitHub Profile
@jflemer
jflemer / install-wine-addon.sh
Created April 8, 2023 15:13
Helper script to install wine-mono and wine-gecko msi files globally (in wine share dir)
#!/bin/bash
# usage: install-wine-addon.sh { mono | gecko }
# keywords: wine-mono wine-gecko msi share/wine/mono share/wine/gecko
go() {
local pkg="$1"
local wineexe=$(readlink /usr/bin/wine)
# e.g. /opt/wine-devel/bin/wine
@krazyjakee
krazyjakee / DownloadMixamoByJakeCattrall.js
Last active March 22, 2024 22:15 — forked from TheLouisHong/DownloadMixamoByLouisHong.js
Downloads all the free Mixamo Animations
function trigger(el, eventType) {
if (typeof eventType === 'string' && typeof el[eventType] === 'function') {
el[eventType]();
} else {
const event =
eventType === 'string'
? new Event(eventType, {bubbles: true})
: eventType;
el.dispatchEvent(event);
}
@JustOurStyle
JustOurStyle / midjourney-batch-download-tampermonkey.md
Last active January 25, 2023 21:22
MidJourney Batch Image Download with Tampermonkey Script

NOTE: My script (below the line) was a simple workaround, for more/better MidJourney functionality with TamperMonkey, check out MidJourneyTools from Emperorlou:

MidJourneyTools https://github.com/Emperorlou/MidJourneyTools


I made a Tampermonkey script to batch download images from MidJourney.com.

HOW TO USE

@sebastiansauer
sebastiansauer / pie-chart-train-test.mmd
Created April 4, 2022 12:31
Mermaid simple pie chart
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@MidSpike
MidSpike / readme.md
Last active February 5, 2024 18:09
CVE-2022-23812 | RIAEvangelist/node-ipc is malware / protest-ware
@martinwoodward
martinwoodward / mermaid.md
Created February 11, 2022 20:34
GitHub HTML Rendering Pipeline
```mermaid
sequenceDiagram
    participant dotcom
    participant iframe
    participant viewscreen
    dotcom->>iframe: loads html w/ iframe url
    iframe->>viewscreen: request template
    viewscreen->>iframe: html & javascript
 iframe->>dotcom: iframe ready
@hasherezade
hasherezade / GzipSimpleHttpServer.py
Last active January 18, 2023 14:11 — forked from bkeating/GzipSimpleHttpServer.py
Python's SimpleHttpServer, but w/Gzip support. 🤙
#!/usr/bin/python3
"""Simple HTTP Server.
This module builds on BaseHTTPServer by implementing the standard GET
and HEAD requests in a fairly straightforward manner.
"""
__version__ = "0.7"
@zethon
zethon / snippet.yml
Created June 26, 2021 23:52
Github Actions Ubuntu Install GCC-11
- name: Install GCC11
shell: bash
run: |
sudo apt update
sudo apt install gcc-11 g++-11
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11 110 --slave /usr/bin/g++ g++ /usr/bin/g++-11 --slave /usr/bin/gcov gcov /usr/bin/gcov-11
# Show Tensor Images utility function
from torchvision.utils import make_grid
import matplotlib.pyplot as plt
def show_tensor_images(image_tensor, num_images=25, size=(1, 28, 28)):
'''
Function for visualizing images: Given a tensor of images, number of images, and
size per image, plots and prints the images in a uniform grid.
'''
@h1ros
h1ros / 7zcat
Created February 3, 2020 16:46
zcat for 7zip
#!/bin/bash
# copy this file into /bin/zcat to a file called /bin/7zcat
PATH=${GZIP_BINDIR-'/bin'}:$PATH
exec 7z e -so -bd "$@" 2>/dev/null | cat