Skip to content

Instantly share code, notes, and snippets.

View diogenese's full-sized avatar

warrendiogenese diogenese

  • Weaverville, CA USA
View GitHub Profile
@diogenese
diogenese / nopaste
Created November 8, 2022 02:25
Convert GPS logging data to terrain mesh
#!/usr/bin/env python3
import bpy
import csv
from math import *
import statistics as st
import os
import glob
from pprint import pprint
#!/usr/bin/env python3
import os
import sys
import argparse
import subprocess
import freetype
import re
import MySQLdb._mysql as _mysql
from shutil import copyfile
@diogenese
diogenese / nopaste
Created October 5, 2019 02:03
Pulseaudio log while using tts
-- Logs begin at Mon 2019-08-12 21:18:54 PDT, end at Sun 2019-09-15 17:49:00 PDT. --
Sep 14 13:47:19 master.privatedomain systemd[2323]: Starting Sound Service...
Sep 14 13:47:19 master.privatedomain systemd[2323]: Started Sound Service.
Sep 14 13:49:13 master.privatedomain pulseaudio[2333]: E: [alsa-sink-ALC892 Analog] alsa-sink.c: ALSA woke us up to write new data to the device, but there was actually nothing to write.
Sep 14 13:49:13 master.privatedomain pulseaudio[2333]: E: [alsa-sink-ALC892 Analog] alsa-sink.c: Most likely this is a bug in the ALSA driver 'snd_hda_intel'. Please report this issue to the ALSA developers.
Sep 14 13:49:13 master.privatedomain pulseaudio[2333]: E: [alsa-sink-ALC892 Analog] alsa-sink.c: We were woken up with POLLOUT set -- however a subsequent snd_pcm_avail() returned 0 or another value < min_avail.
Sep 14 13:49:24 master.privatedomain systemd[2323]: pulseaudio.service: Main process exited, code=killed, status=9/KILL
Sep 14 13:49:24 master.privatedomain systemd[2323]: pulseau
@diogenese
diogenese / nopaste
Created September 16, 2019 00:57
duckgoose image download
--2019-09-15 17:57:36-- https://media.haxed.net/6cFAy6MiTo.jpg
Resolving media.haxed.net (media.haxed.net)... 104.28.19.85, 104.28.18.85, 2606:4700:30::681c:1255, ...
Connecting to media.haxed.net (media.haxed.net)|104.28.19.85|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 0 [image/jpeg]
Saving to: ‘duckgoose.jpg’
0K 0.00 =0s
2019-09-15 17:57:36 (0.00 B/s) - ‘duckgoose.jpg’ saved [0/0]
****************************************
/etc/resolv.conf
# Generated by NetworkManager
search master.privatedomian
nameserver 8.8.8.8
****************************************
/etc/sysconfig/network-scripts/ifcfg-enp10s0:
@diogenese
diogenese / nopaste
Created April 21, 2019 08:37
~/.config/pulse/default.pa
#!/usr/bin/pulseaudio -nF
.include /etc/pulse/default.pa
load-module module-native-protocol-tcp auth-ip-acl=127.0.0.1 auth-anonymous=1
#set-default-sink output
#set-default-source input
.ifexists module-remap-sink.so
.nofail
load-module module-remap-sink sink_name=stereo-downmix remix=yes master=alsa_output.pci-0000_00_14.2.analog-surround-71 channels=8 master_channel_map=front-left,front-right,front-left,front-right,front-left,front-right,front-left,front-right channel_map=front-left,front-right,rear-left,rear-right,side-left,side-right,front-center,front-center
@diogenese
diogenese / nopaste
Created April 17, 2019 09:52
latest giolite sql
-- Ensure database exists
CREATE DATABASE IF NOT EXISTS `geoipdb` DEFAULT CHARACTER SET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
USE `geoipdb`
DROP TABLE IF EXISTS `geo_csv_city_blocks_ipv4`;
CREATE TABLE `geo_csv_city_blocks_ipv4` (
`network` VARCHAR(20) NOT NULL DEFAULT "",
`ipbyte1` INT(3) unsigned NOT NULL,
`ipbyte2` INT(3) unsigned NOT NULL,
`ipbyte3` INT(3) unsigned NOT NULL,
@diogenese
diogenese / nopaste
Created April 13, 2019 08:14
GeoLite2 import from csv files
USE `geoipdb`;
SELECT "Creating functions and procedures";
DELIMITER ;;
DROP PROCEDURE IF EXISTS `ip2city`;;
CREATE PROCEDURE `ip2city`(
fp_ipstr VARCHAR(15)
)
READS SQL DATA
@diogenese
diogenese / nopaste
Created April 13, 2019 01:26
Latest tables
USE `geoipdb`;
SELECT "Creating functions and procedures";
DELIMITER ;;
DROP PROCEDURE IF EXISTS `city2ip`;;
CREATE PROCEDURE `city2ip`(
fp_city VARCHAR(15)
)
READS SQL DATA
@diogenese
diogenese / nopaste
Created October 25, 2017 23:08
anaconda.log
04:58:31,008 INF main: /sbin/anaconda 27.20.4-1
04:58:31,137 INF isys: 16456296 kB (16070 MB) are available
04:58:31,155 INF startup_utils: check_memory(): total:16070, needed:320, graphical:410
04:58:31,164 INF main: anaconda called with cmdline = ['/sbin/anaconda']
04:58:31,165 INF main: Default encoding = utf-8
04:58:31,193 INF startup_utils: Parsing kickstart: /usr/share/anaconda/interactive-defaults.ks
04:58:31,226 INF misc: Initializing docker addon
04:58:31,687 DBG localization: setting locale to: en_US.UTF-8
04:58:31,706 DBG network: devices found ['enp2s0', 'enp5s6', 'wlp5s5']
04:58:31,721 DBG network: ensure single initramfs connections