Skip to content

Instantly share code, notes, and snippets.

@leopck
leopck / esp32_ota_stm32.ino
Created March 7, 2022 02:53 — forked from rounakdatta/esp32_ota_stm32.ino
Flash STM32 firmware from ESP32
#include <SPIFFS.h>
/*
*
* Copyright (C) 2017 CS.NOL https://github.com/csnol/1CHIP-Programmers
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License,
* and You have to keep below webserver code
@leopck
leopck / intrinsic.md
Last active November 23, 2021 09:42 — forked from detomon/intrinsic.md
SSE Intrinsic Cheat Sheet (SSE3)

SSE Intrinsic Cheat Sheet (SSE3)

Load and Store

__m128 _mm_load_ps (float * a)
{
@leopck
leopck / php.ini
Created July 24, 2018 16:00
php.ini for file upload
[PHP]
;;;;;;;;;;;;;;;;;;;
; About php.ini ;
;;;;;;;;;;;;;;;;;;;
; PHP's initialization file, generally called php.ini, is responsible for
; configuring many of the aspects of PHP's behavior.
; PHP attempts to find and load this configuration from a number of locations.
; The following is a summary of its search order:
#How to mount a volume in Windows Docker toolbox
1. docker run --rm -it -v "/c/Users/Public:/home" ubuntu bash
-v source <host>:<vm_client>
#How to get GUI from Linux container into Windows host
#Installing Docker in Windows
Occasionally we have issues with Oracle VirtualBox, uninstall and reinstall with this command
@leopck
leopck / ubuntu-linux-setup-guide.txt
Last active September 10, 2019 10:44
This is a simple ubuntu linux guide to help setup GTX1070 and keyboard backlight on ASUS ROG GL502VS but not limited to ASUS only
1. Setup Nvidia driver
Go to Drivers > Install Tested Nvidia
2. After installing Nvidia the dither for the background of Ubuntu would be horrible. You'll need to go into Nvidia settings and enable Dither
NVIDIA X Server Settings > DFP-0-(LGD) > Change to Controls tab > "Dithering" > Enabled
3. Setup kb backlight
# 0 - 3 and 3 is the brightest
@leopck
leopck / usb_config.h
Created October 3, 2016 17:48
usb_config.h for Joystick over espusb (Still work in progress; doesn't work)
#ifndef _USB_CONFIG_H
#define _USB_CONFIG_H
//Defines the number of endpoints for this device. (Always add one for EP0)
#define ENDPOINTS 5
//Defines a pin that is useful for debugging USB on a logic analyzer
//#define DEBUGPIN 2
//DPLUS and DMINUS are not actually used except for setting things up.
@leopck
leopck / usb_config.h
Last active October 4, 2016 07:15
usb_config.h for espusb low speed CDC (Still work in progress; doesn't work)
#ifndef _USB_CONFIG_H
#define _USB_CONFIG_H
//Defines the number of endpoints for this device. (Always add one for EP0)
#define ENDPOINTS 3
//Defines a pin that is useful for debugging USB on a logic analyzer
//#define DEBUGPIN 2
//DPLUS and DMINUS are not actually used except for setting things up.