Skip to content

Instantly share code, notes, and snippets.

@jcnevado
jcnevado / upload-credentials,js
Created August 13, 2026 17:20
/assets/upload-credentials
{
"status": true,
"response": {
"credentials": {
"access_key_id": "ASIARAMW7IP22VFSWU3C",
"secret_access_key": "1LPjZg9pk2xnzk1OvwLbBFPSWSOXMVmnEiO2kmnt",
"session_token": "IQoJb3JpZ2luX2VjECIaCXVzLWVhc3QtMSJHMEUCIAp03RZWZPSnKP2o6zCdI7cwxhLJ/qyu500i94sZuZZTAiEAu1GP7ouKfbQa2FXkmM0WxOv3S3sT6dkK7qb0iXWo3IkqrQMI6v//////////ARACGgwwNjk1NzI5Njk0NjEiDDd8LYTzbG2Vl7E7oSqBA7ZyPMXOKORTvA1+7GkAwNldudgINAZfHXdogf3g7H/qjdoV9TC0BFpOOvv4J1mybxds9/54qha4y7RlQ9b1iz4/rfjlj8MJ+TGTQ/+v/FNHY04W2OyYUdjl9QdqKs/PXQXRCGP+HMWSQNrKOFSCO4AKBZz5hSbyMrfEgISUYjjUZ8S9wx1CSO7WxSPnrToZbxE6pbo1Kz3OwUsX4i920BdjsPiooBpaeN6MquwQ3GDsqVnhFN4ETQA3WGexk5sEJn2T90e+d20ANGgXf5Z2DPVVkwXfBytPbarct9kImz+BJDm0D2qsAWLGd55ROyzT2BYNaX9Lx8SBFkqxO/bKP9ci/WOTTmTagY3PcF52zA72xw8/+Ssml7h/G2OqLQXQ8yhLafrwurbvLj9DZ7xZJSBpK5JQeNS4kDxIuW6xk9+HIXIkimCLulhCJifi4f+ywrNx2RmkAKsFo5jFFk1ggVumqUMEBOTdtfq5CLNKDau8DS53D9veYbYgshJUKWG0XVow1fj30wY6nQEDHYfq77cQ7+YZuILttnHbFK4ZDNz+BN7zCXNVMPV7usZbn1DDwOO/Rs3vqqvU+bE7tgftyh4eXpDgjOl
{
"_id" : NumberInt(10909),
"descripcion" : "Acusado de explotación sexual de adolescente mediante falsa cuenta de Facebook irá a prisión",
"referencial_1" : "Sin audio",
"tipo_reportero" : "P",
"plataforma" : "radio",
"tipo_despacho" : "notapropia",
"tipo_despacho_clase" : "despacho",
"ver_todos_programas" : true,
"turno" : "D",
{
"_id" : ObjectId("68487d07d54fd5ee86fa122d"),
"id" : "PrC41ROG1VhRkww-sq0MGVRTlQ-XinHhA-YMoHAEDr",
"from_me" : false,
"type" : "sticker",
"chat_id" : "51964564373-1579796356@g.us",
"timestamp" : NumberInt(1749581052),
"source" : "web",
"device_id" : NumberInt(43),
"chat_name" : "UBICACIÓN REPORTEROS",
var endpointUrl = 'wss://p2nfln7noe.execute-api.us-east-1.amazonaws.com/api/';
var ws = new WebSocket(endpointUrl);
ws.onmessage = function(data) {
var event = JSON.parse(data);
if (event.type == 'SEARCH_RAG_START') {
//MOSTRAR LOADING
console.log("Message received..." + event.data);
}
if (event.type == 'SEARCH_RAG_RESULT') {
//MOSTRAR RESULTADOS
This file has been truncated, but you can view the full file.
{
"_id" : NumberInt(102),
"week" : NumberInt(22),
"year" : NumberInt(2025),
"eventsWeek" : [
{
"id_programacion" : NumberInt(780789),
"picture_grid" : {
"url" : "amores-que-matan",
"fid" : NumberInt(401753),
{
"_id" : ObjectId("66a17928e8cbf60f5b0a5f16"),
"nid" : NumberInt(140349),
"modtime" : ISODate("2024-07-24T21:59:04.000+0000"),
"noprerrolls" : "",
"nopublicidad" : false,
"stream" : NumberInt(0),
"estado" : NumberInt(1),
"version" : NumberInt(5),
"img" : {
[{"id":"46970278","name":"Argentina - Canadá","date":"2024-06-21T00:00:00Z","Url":"https://www.betano.pe/match-odds/Argentina-Canada/46970278","zerorake":false,"teams":[{"id":"107255","name":"Argentina"},{"id":"106618","name":"Canadá"}],"leaguename":"Partidos","leagueid":"183731","regionname":"Copa America","regionid":"188650","market":[{"id":"1661661856","type":"MRES","name":"Resultado del partido","selections":[{"id":"4821000456","name":"1","oddsFormat":"decimal","formattedPrice":"1.40","originalFormattedPrice":"0.00","price":1.40,"originalPrice":0.00},{"id":"4821000457","name":"X","oddsFormat":"decimal","formattedPrice":"4.70","originalFormattedPrice":"0.00","price":4.70,"originalPrice":0.00},{"id":"4821000458","name":"2","oddsFormat":"decimal","formattedPrice":"8.25","originalFormattedPrice":"0.00","price":8.25,"originalPrice":0.00}]},{"id":"1661663179","type":"HCTG","name":"Total de Goles Más/Menos","selections":[{"id":"4821004573","name":"Más 0.5","oddsFormat":"decimal","formattedPrice":"1.05","origina
db.getCollection("tg_vod").find({
nid: 138313
}).forEach(function(doc) {
if (doc.programaTemporada.length > 0) {
doc.programaTemporada[0].tid = doc.programaTemporada[0].tid.toLowerCase().replace(' ', '-');
}
db.tg_vod.updateOne({_id: doc._id}, {$set: {
"programaTemporada.0": doc.programaTemporada[0]
}});
})
public function login_2fa() {
try {
//code...
$google2fa = new \PragmaRX\Google2FA\Google2FA();
$credentials = request(['email', 'verification_code']);
$user = User::where('email', $credentials['email'])->first();
$window = request('working_time', true) === false ? 5 : 0;
$valid = $google2fa->verifyKey($user->secret_2fa, $credentials['verification_code'], $window);
$status = $status2 = true;
db.getCollection("an_compactov2").find({'source': 'youtube', 'media.id': null}).forEach(function (doc) {
if ( doc.portada_e && doc.portada_e.fid ) {
//print(doc.nid);
db.an_compactov2.updateOne({
_id: doc._id
}, {
$set: {
"media.id": doc.portada_e.fid
}
});