Skip to content

Instantly share code, notes, and snippets.

View xmarcos's full-sized avatar
🚀
🇦🇷 → 🇨🇱

Marcos Sader xmarcos

🚀
🇦🇷 → 🇨🇱
View GitHub Profile
Title: Senior Engineer Task Execution Rule
Applies to: All Tasks
Rule:
You are a senior engineer with deep experience building production-grade AI agents, automations, and workflow systems. Every task you execute must follow this procedure without exception:
1.Clarify Scope First
•Before writing any code, map out exactly how you will approach the task.
•Confirm your interpretation of the objective.
@xmarcos
xmarcos / NpbWrapper.h
Created May 23, 2023 21:00 — forked from Aircoookie/NpbWrapper.h
Modified for 5050 PWM RGB leds
//MODIFIED to drive 5050 RGB strip via PWM on GPIO 12(R),13(G),14(B), UNTESTED
//this code is a modified version of https://github.com/Makuna/NeoPixelBus/issues/103
#ifndef NpbWrapper_h
#define NpbWrapper_h
//#define WORKAROUND_ESP32_BITBANG
//see https://github.com/Aircoookie/WLED/issues/2 for flicker free ESP32 support
//PIN CONFIGURATION
@xmarcos
xmarcos / WAXP.js
Created September 2, 2021 21:50 — forked from shaneapen/WAXP.js
WhatsApp Group Contacts Exporter
WAXP = (function(){
MutationObserver = window.MutationObserver || window.WebKitMutationObserver;
var SCROLL_INTERVAL = 600,
SCROLL_INCREMENT = 450,
AUTO_SCROLL = true,
NAME_PREFIX = '',
UNKNOWN_CONTACTS_ONLY = false,
MEMBERS_QUEUE = {},
@xmarcos
xmarcos / .vimrc
Created July 10, 2021 01:57 — forked from topheman/.vimrc
vim-config on Mac OS X
" Vundle config
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
"call vundle#begin('~/some/path/here')
@xmarcos
xmarcos / Shield_Intents.MD
Created March 6, 2020 15:51 — forked from mcfrojd/Shield_Intents.MD
Working INTENTS to use with Community Hass.io Add-ons: Android Debug Bridge for your Nvidia Shield TV

Updated 2019-03-21 with new "intents" since hassio 0.90, ADB 0.3.0 and the new androidtv component (service "androidtv.adb_command")

Credits and thanks: Home Assistant Forum users: @ocso, @wiphye, @teachingbirds, @tboyce1, @simbesh, @JeffLIrion


Starts specific Twitch stream (If stream is live)

{"entity_id" :"media_player.shield", "command": "am start -a android.intent.action.VIEW -d twitch://stream/frenck"}
{"entity_id" :"media_player.shield", "command": "am start -a android.intent.action.VIEW -d twitch://stream/drzzs"}

Start apps on your Shield from Home Assistant

@xmarcos
xmarcos / _verify-repair-permissions-disk.md
Created January 8, 2017 22:23 — forked from bzerangue/_verify-repair-permissions-disk.md
Mac OS X Utilities via Terminal: (Verify and Repair: Disk Permissions AND Disk / Software Update / TimeMachine)

Verify and Repair Disk Permissions via Terminal (Mac OS X)

Verify Permissions

diskutil verifyPermissions /

Repair Permissions

diskutil repairPermissions /

@xmarcos
xmarcos / active-issues.sql
Created November 6, 2016 03:52 — forked from alysonla/active-issues.sql
Queries that power the open source section of the 2016 Octoverse report
-- Active issues
-- Count of total active issues in the specified time frame
-- Source: githubarchive public data set via Google BigQuery http://githubarchive.org/
SELECT
COUNT(DISTINCT JSON_EXTRACT_SCALAR(events.payload, '$.issue.id')) AS events_issue_count
FROM (SELECT * FROM TABLE_DATE_RANGE([githubarchive:day.],TIMESTAMP('2015-09-01'),TIMESTAMP('2016-08-31')))
AS events
-- 10,723,492 active issues
@xmarcos
xmarcos / learn.lua
Created November 28, 2015 00:07 — forked from tylerneylon/learn.lua
Learn Lua quickly with this short yet comprehensive and friendly script. It's written as both an introduction and a quick reference. It's also a valid Lua script so you can verify that the code does what it says, and learn more by modifying and running this script in your Lua interpreter.
-- Two dashes start a one-line comment.
--[[
Adding two ['s and ]'s makes it a
multi-line comment.
--]]
----------------------------------------------------
-- 1. Variables and flow control.
----------------------------------------------------
@xmarcos
xmarcos / node_modules.wtf
Last active November 21, 2015 19:34
tree node_modules -d | grep "node_modules" > node_modules.wtf
node_modules
│   ├── node_modules
│   │   │   └── node_modules
│   │   │   │   ├── node_modules
│   │   │   ├── node_modules
│   │   │   ├── node_modules
│   │   │   └── node_modules
│   │   │   ├── node_modules
│   │   │   │   ├── node_modules
│   │   │   └── node_modules
@xmarcos
xmarcos / keybase.md
Last active February 11, 2017 02:19
keybase.md

Keybase proof

I hereby claim:

  • I am xmarcos on github.
  • I am xmarcos (https://keybase.io/xmarcos) on keybase.
  • I have a public key whose fingerprint is 6AD4 C120 60E7 5E04 E38A 14A0 F8CB 0626 562D 77E1

To claim this, I am signing this object: