Skip to content

Instantly share code, notes, and snippets.

View danyboy666's full-sized avatar
💭
Coding and stuff

dferron danyboy666

💭
Coding and stuff
View GitHub Profile
@danyboy666
danyboy666 / boot.py
Created December 2, 2020 07:09 — forked from cbaretzky/boot.py
boot.py for esp8266 with micropython
# This file is executed on every boot (including wake-boot from deepsleep)
#Get out of the UART with mismatched baudrate on the serial
print(' '*40+'\n')
print('Start booting')
autoconnect_timeout = 80
deepsleep_seconds = 2000
fail_deepsleep = 600
known_APS=[['AP1','PW1'], #AP1 : SSID of first AP, PW1 passwd for first AP
@danyboy666
danyboy666 / rss2html.php
Created September 1, 2019 00:14 — forked from zma/rss2html.php
rss2html.php
<?php
// Check http://www.systutorials.com/136102/a-php-function-for-fetching-rss-feed-and-outputing-feed-items-as-html/ for description
// RSS to HTML
/*
$tiem_cnt: max number of feed items to be displayed
$max_words: max number of words (not real words, HTML words)
if <= 0: no limitation, if > 0 display at most $max_words words
*/
@danyboy666
danyboy666 / tutorial.md
Created August 18, 2019 19:09 — forked from Hengjie/tutorial.md
How to passthrough SATA drives directly on VMWare ESXI 6.5 as RDMs

How to passthrough SATA drives directly on VMWare EXSI 6.5 as RDMs

There aren't many tutorials about this, the only tutorials I've found were about passing through entire PCIe cards to VMs, or refered to old ESXI versions (below 6.5) that used a more comprehensive desktop client instead of the web app. In v6.5, the web app was introduced and the desktop client was deprecated. You used to be able to setup RDMs in the desktop client, but with the introduction of the web console, this is no longer the case. This tutorial shows you how to pass SATA HDDs to the virtual machine on VMWare ESXI 6.5. This tutorial is partially based on VMWare's own KB and the now deprecated Forza IT blog post.

A word about VMWare ESXI 6.7

There is now an option while editing your VM's settings to add a New raw disk when you click `Add ha

J:\emulationstation\.emulationstation\systems\retroarch\retroarch.exe -L J:\emulationstation\.emulationstation\systems\retroarch\cores\mame_libretro.dll --menu
C:\Users\danyf>[INFO] Environ SET_PIXEL_FORMAT: RGB565.
[INFO] Redirecting save file to "J:\emulationstation\.emulationstation\systems\retroarch\saves\.srm".
[INFO] Redirecting savestate to "J:\emulationstation\.emulationstation\systems\retroarch\states\.state".
[INFO] Version of libretro API: 1
[INFO] Compiled against API: 1
[INFO] [Audio]: Set audio input rate to: 29999.51 Hz.
[INFO] [Video]: Video @ fullscreen
[INFO] [GL]: Found GL context: wgl
Microsoft Windows [version 10.0.16299.309]
(c) Microsoft Corporation, 2017. Tous droits réservés.
C:\Users\danyf>J:\emulationstation\.emulationstation\systems\retroarch\retroarch.exe -L J:\emulationstation\.emulationstation\systems\retroarch\cores\mame_libretro.dll J:\emulationstation\.emulationstation\roms\cdimono1\zeldaadv.txt
C:\Users\danyf>[INFO] Loading dynamic libretro core from: "J:\emulationstation\.emulationstation\systems\retroarch\cores\mame_libretro.dll"
[INFO] [overrides] no core-specific overrides found at J:\emulationstation\.emulationstation\systems\retroarch\config\MAME\MAME.cfg.
[INFO] [overrides] no game-specific overrides found at J:\emulationstation\.emulationstation\systems\retroarch\config\MAME\zeldaadv.cfg.
[INFO] Shaders: preset directory: J:\emulationstation\.emulationstation\systems\retroarch\shaders\presets
[INFO] Shaders: no game-specific preset found at J:\emulationstation\.emulationstation\systems\retroarch\shaders\presets\MAME\zeldaadv.cgp.
@danyboy666
danyboy666 / gist:f342c1cca26e88e0e637ee071698ac56
Created March 13, 2018 04:56
Car MP3 SE-020401 Infrared (IR) remote control scan codes

Infrared (IR) Remote Control Codes

   ------------------
 /                    \
|  CH-    CH     CH+   |
| FFA25D FF629D FFE21D |
|                      |
|  |<<     >>|   |>||  |
| FF22DD FF02FD FFC23D |
<rss xmlns:media="http://search.yahoo.com/mrss/" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:clearleap="http://www.clearleap.com/namespace/clearleap/1.0/" version="2.0">
<channel>
<title>ROOT</title>
<guid>ROOT</guid>
<clearleap:analyticsLabel>ROOT</clearleap:analyticsLabel>
<language>en-us</language>
<ttl>240</ttl>
<link>
https://api-cbc.cloud.clearleap.com/cloffice/client/web/browse/
</link>
<rss xmlns:media="http://search.yahoo.com/mrss/" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:clearleap="http://www.clearleap.com/namespace/clearleap/1.0/" version="2.0">
<channel>
<title>ROOT</title>
<guid>ROOT</guid>
<clearleap:analyticsLabel>ROOT</clearleap:analyticsLabel>
<language>en-us</language>
<ttl>240</ttl>
<link>
https://api-cbc.cloud.clearleap.com/cloffice/client/web/browse/
</link>
2015-12-03 16:45:07 ERROR Thread-33::Failed doing webui callback: Traceback (most recent call last):
2015-12-03 16:44:54 DEBUG SHOWQUEUE-REFRESH::Checking if /samba/anonymous/library/Videos/Documentaires fr/Zone doc/Season 2015/1001 vies - S2015E01 - Une question de confiance.nfo exists: True
2015-12-03 16:44:54 DEBUG SHOWQUEUE-REFRESH::Checking if /samba/anonymous/library/Videos/Documentaires fr/Zone doc/Season 2015/1001 vies - S2015E01 - Une question de confiance-thumb.jpg exists: True
2015-12-03 16:44:54 DEBUG SHOWQUEUE-REFRESH::Checking if /samba/anonymous/library/Videos/Documentaires fr/Zone doc/Season 2015/1001 vies - S2015E01 - Une question de confiance.nfo exists: True
2015-12-03 16:44:54 DEBUG SHOWQUEUE-REFRESH::Setter sets location to /samba/anonymous/library/Videos/Documentaires fr/Zone doc/Season 2015/1001 vies - S2015E01 - Une question de confiance.mkv
2015-12-03 16:44:54 DEBUG SHOWQUEUE-REFRESH::289745: Loading episode details from DB for episode Zone doc S2015E01
2015-12-03 16
2015-11-05 20:07:03 Thread-42 :: There was an error parsing your existing metadata file: '/samba/anonymous/library/Videos/Documentaires fr/Le Téléjournal-Acadie/tvshow.nfo' error: ascii : /samba/anonymous/library/Videos/Documentaires fr/Le Téléjournal-Acadie/tvshow.nfo : error 53 : error 54 : ordinal not in range(128)
2015-11-05 20:07:03 Thread-42 :: There was an error parsing your existing metadata file: '/samba/anonymous/library/Videos/Documentaires fr/Le Téléjournal-Acadie/tvshow.nfo' error: ascii : /samba/anonymous/library/Videos/Documentaires fr/Le Téléjournal-Acadie/tvshow.nfo : error 53 : error 54 : ordinal not in range(128)
2015-11-05 20:07:03 Thread-42 :: There was an error parsing your existing metadata file: '/samba/anonymous/library/Videos/Documentaires fr/Les grands reportages - Personnalités/tvshow.nfo' error: ascii : /samba/anonymous/library/Videos/Documentaires fr/Les grands reportages - Personnalités/tvshow.nfo : error 84 : error 85 : ordinal not in range(128)
2015-11-05 20:07:03 Thread-42 ::