Skip to content

Instantly share code, notes, and snippets.

@gordthompson
gordthompson / mssql_df_upsert.py
Last active October 19, 2023 09:37
Build a T-SQL MERGE statement and upsert a DataFrame
# Copyright 2023 Gordon D. Thompson, gord@gordthompson.com
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
@simsnet
simsnet / Flipperlovania.fmf
Last active February 15, 2024 16:59
"Flipperlovania" - A cover of the first notes from Toby Fox's "Megalovania" for Flipper Zero, rewritten in the Flipper Music Format / RTTTL
Filetype: Flipper Music Format
Version: 0
BPM: 120
Duration: 16
Octave: 5
Notes: D, D, D6, P, A, 8P, G#, P, G, P, F, P, D, F, G, C, C, D6, P, A, 8P, G#, P, G, P, F, P, D, F, G, B4, B4, D6, P, A, 8P, G#, P, G, P, F, P, D, F, G, A#4, A#4, D6, P, A, 8P, G#, P, G, P, F, P, D, F, G

NGO Gallery Images

Save Edit

If you just want to cheat all the gallery images into your save, open up Settings.es in your NGO folder, e.g. C:\Program Files (x86)\Steam\steamapps\common\NEEDY GIRL OVERDOSE\Windose_Data. Copy the following and replace the value in "IMAGEHISTORY"'s "value" field:

["Ngocredits", "tweet_selfie_ame_cool_001", "tweet_selfie_ame_cry_001", "tweet_selfie_ame_game_001", "tweet_selfie_ame_happa_001", "tweet_selfie_ame_happy_001", "tweet_selfie_ame_happy_002", "tweet_selfie_ame_home_001", "tweet_selfie_ame_home_002", "tweet_selfie_ame_line_smile_001", "tweet_selfie_ame_odekake_001", "tweet_selfie_ame_odekake_002", "tweet_selfie_ame_sorrow_001", "tweet_selfie_ame_talk_001", "tweet_selfie_cho_akkanbe", "tweet_selfie_cho_angel_001", "tweet_selfie_cho_av", "tweet_selfie_cho_av_ch", "tweet_selfie_cho_av_eng", "tweet_selfie_cho_cosplay_001", "tweet_selfie_cho_cosplay_002", "tweet_selfie_cho_cosplay_003", "tweet_selfie_cho_grand_end_001", "tweet_selfie_cho_grand_end_002", "
@jamietre
jamietre / docker-compose.yml
Last active March 17, 2024 23:11
Script to start WSL and bind localhost to WSL IP
# Example docker-compose.yml for plex.
version: "2"
services:
plex:
image: plexinc/pms-docker:plexpass
runtime: nvidia
container_name: "plex"
restart: always
hostname: "MY-PLEX"
volumes:
@brettscott
brettscott / vscode_plantuml_docker.md
Last active April 7, 2024 12:39
Integrating PlantUML with VSCode using Windows 10, WSL2, Dockerised PlantUML Server and "jebbs.plantuml" VSCode Extension

There is no need to install Java or Graphviz on your Windows 10 Desktop. These are contained neatly within a Docker Container.

Prerequisites

  • Windows 10
  • WSL2 (Ubuntu) - optional
  • VSCode
  • Docker Desktop

Setup

@CarloCattano
CarloCattano / pi_MIDI_Brain.md
Last active April 17, 2024 00:00
Raspberry pi UART MIDI Serial

rp3.+ raspberry OS lite (or better PatchboxOS as a starting point)

https://blokas.io/patchbox-os/

testing notes
Disable bluetooth or send bt to another serial port
    sudo nano /boot/config.txt

    enable_uart=1    
   
 dtoverlay=midi-uart0
@askpatrickw
askpatrickw / CircuitPython_Secrets.MD
Last active March 15, 2024 21:27
CircuitPython Secrets

CircuitPython Secrets

This are some notes around the use of secrets.py in CircuitPython.

Current Events

Today CP examples suggest a secrets.py files for storing passwords, SSIDs, keys, etc as a dictionary.

File: secrets.py

@ciscorn
ciscorn / circuitpython_compression.py
Last active June 27, 2023 19:21
[PoC] A more effective compression algorithm for CircuitPython's i18n strings. (merged)
from collections import Counter
import re
import huffman
class TextSplitter:
def __init__(self, words):
words.sort(key=lambda x: len(x), reverse=True)
self.words = set(words)
@f-steff
f-steff / Onedrive as a Windows Service.txt
Last active April 10, 2024 08:51
How to set up OneDrive.exe as a Windows Service, allowing synchronization without a user is logged in.
OneDrive.exe as a Windows Service
=================================
Flemming Steffensen, 2017, 2021
For our automatic build setup, we needed to fetch some files off a Sharepoint Library.
Sharepoint allows (if configured so) Lists and Libraries to be synchronized to a local folder by using the OneDrive application.
However, the OneDrive application is started when a user logs in, and in an automated build setup, this never happens.
The solusion were to disable the normal auto-start feature of OneDrive, and then install it as a service, and making sure the
service start as the computer starts.
@srmq
srmq / ArduinoISP
Created January 16, 2020 14:12
ArduinoISP Sketch
// ArduinoISP
// Copyright (c) 2008-2011 Randall Bohn
// If you require a license, see
// http://www.opensource.org/licenses/bsd-license.php
//
// This sketch turns the Arduino into a AVRISP using the following Arduino pins:
//
// Pin 10 is used to reset the target microcontroller.
//
// By default, the hardware SPI pins MISO, MOSI and SCK are used to communicate