Skip to content

Instantly share code, notes, and snippets.

View addohm's full-sized avatar
🤬
I may be slow to respond.

Adam addohm

🤬
I may be slow to respond.
View GitHub Profile
@addohm
addohm / gist_markdown_examples.md
Last active July 18, 2023 01:59 — forked from ww9/gist_markdown_examples.md
Gist markdown examples

Gist markdown examples

A collection of Markdown code and tricks that were tested to work in Gist.

This and all public gists in https://gist.github.com/ww9 are Public Domain. Do whatever you want with it including , no need to credit me.

Todo

  • Reformat this whole document and assimilate these:
@addohm
addohm / pi_wifi
Created April 5, 2023 00:20
8188eu on a Raspberry Pi > v.5.10.73
https://forums.raspberrypi.com/viewtopic.php?f=28&t=62371&start=1550#p1898145
sudo apt install git bc bison flex libssl-dev
git clone https://github.com/RPi-Distro/rpi-source
cd rpi-source
./rpi-source
git clone https://github.com/lwfinger/rtl8188eu
cd rtl8188eu
make
sudo make install
sudo modprobe 8188eu
@addohm
addohm / mesh_prep.py
Last active February 27, 2023 16:12
Strip image background with rembg and copy metadata to new image with pyexiftool
# import required module
import os
import cv2
import exiftool
import rembg
# assign path variables
VERBOSE = False
BASE_DIRECTORY = os.getcwd()
DESKTOP_DIRECTORY = os.path.expanduser("~\\Desktop")
@addohm
addohm / thumbit.py
Created October 2, 2022 01:08
Convert images to thumbnails in their own directory
import os
import platform
from PIL import Image
'''
Run from parent directory. Folders and files expected in `./files/images`
'''
opsys = platform.system()
if opsys.lower() == 'windows':
SLASH = "\\"
@addohm
addohm / onedrive.md
Created December 19, 2021 17:12 — forked from starlinq/onedrive.md
How to Sync Microsoft OneDrive with Ubuntu 18.04 and 20.04 (64 bit)
layout title tags date
post
How to Sync Microsoft OneDrive with Ubuntu 18.04 and 20.04 (64 bit)
ubuntu-18.04, ubuntu-20.04
2020-04-23

There are many instructions to syncronize your files with OneDrive cloud-based storage in Linux. However they typically address multiple Linux distributions that often causes a confusion or an use of some commands which have not been actually tested before publishing. This instruction is for Ubuntu 18.04 and 20.04 (64 bit) only.

In order to install onedrive, first you need to install some dependencies and set up git.

@addohm
addohm / disco_count.py
Last active September 17, 2021 01:19
Count by reading screen and writing next integer
# -*- coding: utf-8 -*-
import time
import re
import random
import pygetwindow
import pyautogui
import numpy as np
import pytesseract
import cv2
@addohm
addohm / file.gcode
Created September 11, 2021 02:09
Weed Whacker Bumper GCode with Pause
This file has been truncated, but you can view the full file.
; generated by PrusaSlicer 2.3.3+win64 on 2021-09-11 at 01:58:49 UTC
;
; external perimeters extrusion width = 0.45mm
; perimeters extrusion width = 0.45mm
; infill extrusion width = 0.45mm
; solid infill extrusion width = 0.45mm
; top infill extrusion width = 0.40mm
; first layer extrusion width = 0.42mm
@addohm
addohm / Core.lua
Created June 24, 2020 08:26
Angry Assignments+
local AngryAssign = LibStub("AceAddon-3.0"):NewAddon("AngryAssignments", "AceConsole-3.0", "AceEvent-3.0", "AceComm-3.0", "AceTimer-3.0")
local AceGUI = LibStub("AceGUI-3.0")
local libS = LibStub("AceSerializer-3.0")
local libC = LibStub("LibCompress")
local lwin = LibStub("LibWindow-1.1")
local libCE = libC:GetAddonEncodeTable()
local LSM = LibStub("LibSharedMedia-3.0")
BINDING_HEADER_AngryAssign = "Angry Assignments"
BINDING_NAME_AngryAssign_WINDOW = "Toggle Window"
@addohm
addohm / HerbalismData.lua
Created June 4, 2020 01:32
GatherMate2 Data with new Black Lotus locations
GatherMateData2HerbDB = {
[1443] = {
[4940394000] = 411,
[6430512000] = 408,
[6230741000] = 411,
[5160706000] = 408,
[6360685000] = 410,
[5190435000] = 408,
[3520222000] = 407,
[6420449000] = 408,
@addohm
addohm / fishbot.bem
Last active December 12, 2022 13:32
Auto Fishing Macro
// #showtooltip Fishing
// /use Shiny Bauble
// /use 16
// /click StaticPopup1Button2
// /stopspelltarget
// /cast fishing
begin
//
// ==========Set below RGB Values using the Investigate Tool for the current environment==========
//