Skip to content

Instantly share code, notes, and snippets.

View joelrebel's full-sized avatar

Joel Rebello joelrebel

View GitHub Profile
@joelrebel
joelrebel / espweb.ino
Created August 2, 2017 06:39
simplewebserver
#include <ESP8266WiFi.h>
#include <ESP8266WebServer.h>
const char* ssid = "cheeseburger";
const char* password = "fridge";
ESP8266WebServer server(80);
void handle_root() {
server.send(200, "text/html", "Hi, I accept /on or /off commands :)");
// Grabs screen previews from the bmc
// DEBUGLOGIN=1 go run main.go -u bar -p foo -ip <>
package main
import (
"flag"
"fmt"
"io/ioutil"
"os"
components:
schemas:
RedfishError:
description: Contains an error payload from a Redfish Service.
properties:
error:
description: Contains properties used to describe an error from a Redfish
Service.
properties:
'@Message.ExtendedInfo':
The swagger spec at "openapi/openapi.yaml" is invalid against swagger specification .
See errors below:
- .openapi in body is a forbidden property
- .components in body is a forbidden property
- "paths./redfish/v1/ResourceBlocks/{ResourceBlockId}.patch.responses.200" must validate one and only one schema (oneOf). Found none valid
- paths./redfish/v1/ResourceBlocks/{ResourceBlockId}.patch.responses.200.content in body is a forbidden property
- "paths./redfish/v1/ResourceBlocks/{ResourceBlockId}.patch.responses.202" must validate one and only one schema (oneOf). Found none valid
- paths./redfish/v1/ResourceBlocks/{ResourceBlockId}.patch.responses.202.content in body is a forbidden property
- "paths./redfish/v1/ResourceBlocks/{ResourceBlockId}.patch.responses.default" must validate one and only one schema (oneOf). Found none valid
@joelrebel
joelrebel / gist:94ecbc340e4dd0326d2cdf66271407c3
Created September 24, 2019 10:09
dot vimrc with vim-go
set nocompatible " be iMproved, required
filetype off " required
filetype plugin on
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
{
"go.toolsEnvVars": {
"GO111MODULE": "on"
},
"workbench.colorTheme": "Shades of Purple",
"files.autoSave": "afterDelay",
"editor.fontFamily": "'Source Code Pro Semibold'",
"files.autoSaveDelay": 10000,
"terminal.external.linuxExec": "terminator",
"terminal.integrated.fontSize": 16,
// Place your key bindings in this file to override the defaultsauto[]
[
{
"key": "ctrl+9",
"command": "workbench.action.navigateBack"
},
{
"key": "ctrl+alt+-",
"command": "-workbench.action.navigateBack"
},
@joelrebel
joelrebel / gist:8d4e55035115f87ab11d608008f9caf6
Created August 14, 2020 12:05
i3 like keycombo with Amethyst
#https://github.com/ianyh/Amethyst/issues/301#issuecomment-604133418
#defaults read com.amethyst.Amethyst.plist
{
NSNavPanelExpandedSizeForOpenMode = "{799, 448}";
"NSWindow Frame NSNavPanelAutosaveName" = "1320 746 799 448 0 0 3440 1417 ";
SUFeedURL = "https://ianyh.com/amethyst/appcast.xml";
SUHasLaunchedBefore = 1;
"cycle-layout" = {length = 257, bytes = 0x62706c69 73743030 d4010203 04050607 ... 00000000 000000c7 };
"cycle-layout-backward" = {length = 257, bytes = 0x62706c69 73743030 d4010203 04050607 ... 00000000 000000c7 };
"debug-layout-info" = 0;
<SystemConfiguration Model="" ServiceTag="" TimeStamp="Tue Dec 12 13:45:39 2017">
<Component FQDD="BIOS.Setup.1-1">
<Attribute Name="SysProfile">PerfPerWattOptimizedOs</Attribute>
<Attribute Name="ErrPrompt">Disabled</Attribute>
<Attribute Name="WorkloadProfile">NotAvailable</Attribute>
<Attribute Name="PersistentMemoryMode">NVDIMM</Attribute>
<Attribute Name="NvdimmFactoryDefault">NvdimmFactoryDefaultDisable</Attribute>
<Attribute Name="MemTest">Disabled</Attribute>
<Attribute Name="MemOpMode">OptimizerMode</Attribute>
<Attribute Name="NodeInterleave">Disabled</Attribute>
@joelrebel
joelrebel / I'm an early 🐀
Last active October 29, 2020 00:31
Early bird
🌞 Morning 154 commits β–ˆβ–ˆβ–ˆβ–ˆβ–‹β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 22.5%
πŸŒ† Daytime 363 commits β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 53.1%
πŸŒƒ Evening 150 commits β–ˆβ–ˆβ–ˆβ–ˆβ–Œβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 22.0%
πŸŒ™ Night 16 commits ▍░░░░░░░░░░░░░░░░░░░░ 2.3%