Skip to content

Instantly share code, notes, and snippets.

@easytarget
easytarget / lasweweb-dev-install-pi-buster.md
Last active December 3, 2024 13:09
LaserWeb development install on Raspian Bullseye and Buster.

Machine Prep

Note; this log was generated on a Pi4 4Gb running from a SSD. However, I also test on a Pi3 Model B+ and a Pi3 Model A.

For support please go to the MakerForums at: https://forum.makerforums.info/c/laserweb-cncweb/

These Instructions should work for all Pi 3 and 4 models running the Buster and Bullseye releases. Also see the wiki page about Pi installation for more info and notes on how to run LaserWeb4 as a service.

Machines running Bullseye

This is nice and easy; node 12 is part of the RPI OS release.

@f-steff
f-steff / Onedrive as a Windows Service.txt
Last active February 6, 2025 13:17
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
@Meorawr
Meorawr / async.lua
Last active September 8, 2024 20:17
Lua 5.1 Async/Await
#!/usr/bin/lua5.1
--- Async/Await for Lua 5.1
-- This script implements async/await functions for Lua, allowing tasks to
-- be queued and scheduled independently.
--
-- This is just an example and has a bunch of issues, isn't tested, isn't
-- even actually used anywhere; I basically just got bored and had one of
-- those "what if?" type ideas 6 hours ago.
local co_create = coroutine.create
C:\Users\pasta\AppData\Local\Android\Sdk\platform-tools\adb.exe forward tcp:9222 localabstract:chrome_devtools_remote
wget -O tabs.json http://localhost:9222/json/list
REM ruby -e "require 'json'; puts JSON.load(File.read('tabs.json')).map{|e| %W{<a href='#{e['url']}'> #{e['title']}</a><br/>} }" | Set-Clipboard -AsHtml
ruby -e "require 'json'; puts JSON.load(File.read('tabs.json')).map{|e| %W{#{e['title']}\t#{e['url']}} }" | Set-Clipboard
@svmhdvn
svmhdvn / sphere.obj
Created July 20, 2019 15:22
Unit sphere obj
v 0.000000 1.000000 -0.000000
v -0.000000 0.980785 -0.195090
v -0.038060 0.980785 -0.191342
v -0.074658 0.980785 -0.180240
v -0.108386 0.980785 -0.162212
v -0.137950 0.980785 -0.137950
v -0.162212 0.980785 -0.108386
v -0.180240 0.980785 -0.074658
v -0.191342 0.980785 -0.038060
v -0.195090 0.980785 0.000000
@JaimeStill
JaimeStill / README.md
Last active November 22, 2024 09:09
ASP.NET Core Active Directory Integration

Active Directory Authentication

This will provide an example of integrating Active Directory authentication in an ASP.NET Core app.

Note, you'll need to be running on a Windows domain with Visual Studio debugging in IIS Express for this to work.

Setup

In launchSettings.json, you'll want to modify iisSettings by turning on windowsAuthentication:

@cnlohr
cnlohr / esp32_aes_example.c
Created November 7, 2018 19:50
Example of using hardware AES 256 Crypto in CBC mode on the ESP32 using ESP-IDF
#include <string.h>
#include <stdio.h>
#include <hwcrypto/aes.h>
/*
For Encryption time: 1802.40us (9.09 MB/s) at 16kB blocks.
*/
static inline int32_t _getCycleCount(void) {
int32_t ccount;
@matthewearl
matthewearl / smblevextract.py
Last active February 21, 2025 03:24
Super Mario Bros Level Extractor
#!/usr/bin/env python3
#
# Copyright (c) 2018 Matthew Earl
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
import sys
import extract_icon
import os
import argparse
class MorIcons:
"""
parses an ``APPS.INF`` file, dumps all icons from a PE binary and
generates an HTML file with all the icons and associated program
names