Skip to content

Instantly share code, notes, and snippets.

View vitouXY's full-sized avatar
💭
This account has been flagged. :(

Vito u XY vitouXY

💭
This account has been flagged. :(
View GitHub Profile
@vitouXY
vitouXY / bard.sh
Last active February 9, 2024 10:20
Google Gemini Bard - Bash Script
#!/usr/bin/env bash
# https://github.com/acheong08/Bard
#set -x
echo "== Google Gemini"
[ -z "${1}" ] && echo "No input provided. Exiting..." && exit 2
# Common headers
# Conversation ID (c_ID): https://gemini.google.com/app/abcd9f26fe0ebd41
@vitouXY
vitouXY / ImportJSON.gs
Created May 1, 2023 00:49
API - Bolsa de Santiago de Chile - AppScript & SpreadSheets
/*====================================================================================================================================*
ImportJSON by Brad Jasper and Trevor Lohrbeer
====================================================================================================================================
Version: 1.5.0
Project Page: https://github.com/bradjasper/ImportJSON
Copyright: (c) 2017-2019 by Brad Jasper
(c) 2012-2017 by Trevor Lohrbeer
License: GNU General Public License, version 3 (GPL-3.0)
http://www.opensource.org/licenses/gpl-3.0.html
------------------------------------------------------------------------------------------------------------------------------------
@vitouXY
vitouXY / bcs_code03.js
Last active May 1, 2023 01:05
API - Bolsa de Santiago de Chile - (Chrome Extension - Custom JavaScript for Websites 2 - Run custom JavaScript on any website.)
/*
var script = document.createElement('script');
script.setAttribute('src', 'https://example.com/bcs_code03.js');
script.setAttribute('type', 'text/javascript');
document.getElementsByTagName('head')[0].appendChild(script);
*/
const NemoTecnico = prompt('NemoTecnico:','CFIETFGE');
alert(`get_${NemoTecnico}.json`);
(async function() {
let allData = '';
@vitouXY
vitouXY / wlanap.sh
Created April 8, 2023 05:41
RPi | WLAN AP
#!/bin/sh
[ $(id -u) = 0 ] || { echo "must be root" ; exit 1; }
set -o errexit
set -o nounset
set -o pipefail
set -o xtrace
#[ "$(find /sys/class/net/ -type l -name wlan0 2>&-)z" != "z" ] && exit 1
apt-get install wpa_supplicant dnsmasq
@vitouXY
vitouXY / btpan.sh
Created April 7, 2023 23:41
RPi | Bluetooth PAN
# Bluetooth PAN
exit 0
# https://raspberrypi.stackexchange.com/questions/29504/how-can-i-set-up-a-bluetooth-pan-connection-with-a-raspberry-pi-and-an-ipod
#apt-get install --no-install-recommends bluez-tools
echo -en 'list' | bluetoothctl
cat <<EOF> /etc/systemd/network/pan0.netdev
@vitouXY
vitouXY / usb_g_ether.sh
Last active April 8, 2023 03:53
RPi | USB | g_ether
#!/bin/sh
[ $(id -u) = 0 ] || { echo "must be root" ; exit 1; }
set -o errexit
set -o nounset
set -o pipefail
set -o xtrace
[ "$(find /sys/class/net/ -type l -name usb0 2>&-)z" != "z" ] && exit 1
# dwc2 g_ether
@vitouXY
vitouXY / main.go
Created April 7, 2023 22:56
tulir-whatsmeow/mdtest/main.go
// Copyright (c) 2021 Tulir Asokan
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
/* 1ee2ff1 07042023
mdtest/main.go
[!] https://github.com/tulir/whatsmeow/blob/main/mdtest/main.go
@vitouXY
vitouXY / gDiv.md
Last active February 3, 2024 19:29
Dividendos | Bolsa de Santiago | BCS | JavaScript | JS

gDiv

!!!warning Este código está diseñado exclusivamente para el sitio de la Bolsa de Santiago. !!!note Este código JavaScript recopila y suma los dividendos registrados por año, mostrando un porcentaje basado en el precio ingresado por el usuario. !!!danger Asegúrate de utilizar un Navegador Web que admita la ejecución de códigos JavaScript.

Código

javascript: async function getD(symbol) {
@vitouXY
vitouXY / Readme.md
Created March 5, 2023 20:18
WhatsApp (Web) & OpenAI (API) Chat Bot | Golang & Python
@vitouXY
vitouXY / TelegramBotAI.sh
Last active February 28, 2023 16:13
Telegram Bot & OpenAI Chat - Bash Script
#!/usr/bin/env bash
set -x
# Run As:
# while :;do echo -en "$(bash TelegramBotAI.sh)\t\t\t\t\r";done
DATA_Telegram_Token=''
DATA_AI_OpenAI_Key=''
#DATA_AI_NLPCloud_Token=''