Skip to content

Instantly share code, notes, and snippets.

@heEXDe
heEXDe / main.js
Created February 6, 2025 21:56
Add two promises [JavaScript]
// promise1 and promise2 will both resolve with a number.
const addTwoPromises = async (promise1, promise2) => {
const [num1, num2] = await Promise.all([promise1, promise2]);
return num1 + num2;
};
Pipeline still running ...
PipelineRun is still running: Tasks Completed: 45 (Failed: 1, Cancelled 0), Incomplete: 1, Skipped: 8
[get-pr-number : parse-pr-url] + echo -n 5144
[get-pr-number : parse-pr-url] + tee /tekton/results/git_pr_number
[get-pr-number : parse-pr-url] 5144
[acquire-lease : create-lease] + calculate_duration_in_seconds 90m
[acquire-lease : create-lease] + '[' m == m ']'
[acquire-lease : create-lease] + TOTAL_DURATION_IN_SECONDS=5400
[acquire-lease : create-lease] + export TOTAL_DURATION_IN_SECONDS
@selee99
selee99 / FT_Summary.md
Created February 6, 2025 21:55
Daily Financial Times Summary

Headline: Biden administration holds talks with Venezuela’s Maduro regime Summary: The Biden administration has engaged in talks with representatives of Venezuelan President Nicolás Maduro's government, signaling a potential shift in U.S. policy towards the crisis-stricken country. The discussions, facilitated by Norway, aim to address issues such as humanitarian aid and political solutions to Venezuela's ongoing turmoil. Link: https://www.ft.com/content/3c4664e1-8ccc-4ae8-9d4b-3c598819d15a

Headline: Investors bet on drop in Chinese property shares as Evergrande concerns linger Summary: Investors are increasingly taking short positions on Chinese property shares as concerns over the indebted property developer Evergrande continue to weigh on the market. Evergrande's struggles have led to broader fears of a potential systemic risk in China's property sector and economy. Link: https://www.ft.com/content/bfc91e1a-59fc-40e7-8b6b-c9a2e021effb

@CodingMarin
CodingMarin / .js
Created February 6, 2025 21:55
Automatitation for postman service
if (pm.response.code === 200) {
const responseData = pm.response.json();
const token = responseData.token; // Replace with you value <token>
pm.environment.set("auth_token", token); // {{auth_token}}
console.log("Token saved:", token);
} else {
console.error("Error in response:", pm.response.text());
}
@choco-bot
choco-bot / FilesSnapshot.xml
Created February 6, 2025 21:55
cica v5.0.3 - Passed - Package Tests Results
<?xml version="1.0" encoding="utf-8"?>
<fileSnapshot xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<files>
<file path="C:\ProgramData\chocolatey\lib\cica\cica.nupkg" checksum="EEFF13B975CF3D409B9427B24A218983" />
<file path="C:\ProgramData\chocolatey\lib\cica\cica.nuspec" checksum="B69EA2EC28A742893AF033BE7C50E253" />
<file path="C:\ProgramData\chocolatey\lib\cica\Cica_v5.0.3.zip.txt" checksum="6040C5E2B515D7629722A06DD8885D03" />
<file path="C:\ProgramData\chocolatey\lib\cica\tools\chocolateyInstall.ps1" checksum="AD83883D9CD7FBAA2170380846073D89" />
<file path="C:\ProgramData\chocolatey\lib\cica\tools\chocolateyUninstall.ps1" checksum="85BE9CF510129263D43EEE951BEAC161" />
<file path="C:\ProgramData\chocolatey\lib\cica\tools\FontHelpers.ps1" checksum="A9A3074CEBEBCE9D6E9EC3CA1D1C4C5F" />
<file path="C:\ProgramData\chocolatey\lib\cica\tools\fonts\Cica-Bold.ttf" checksum="6CA847D282ED3DE2B592BCD27C394C8F" />
@pedroalbanese
pedroalbanese / edgetk@v1.5.5.go
Last active February 6, 2025 21:57
EDGETk: Encrypted Data Gateway Engine v.1.5.5
//go:generate goversioninfo -manifest=testdata/resource/goversioninfo.exe.manifest
/*
EDGE Toolkit -- Pure Go Command-line Unique Integrated Security Suite
Copyright (C) 2020-2025 Pedro F. Albanese <pedroalbanese@hotmail.com>
This program is free software: you can redistribute it and/or modify it
under the terms of the ISC License.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
@DolphinOfficial
DolphinOfficial / PostShutdownFullLog.txt
Created February 6, 2025 21:54
Text file created by Roblox
-- AH POST-SERVER LOGS --
-- ServerID: d2f2111b-7883-4161-9b1a-4ce9a7450d17
-- Server started: February 06, 2025 09:54 PM UTC | Server uptime: 1 seconds
------------------ LOADB LOGS ------------------
{
}
{
"passed": true,
"results": {
"errors": [],
"failed": [],
"passed": [
{
"description": "Check to make sure that all CRs have a spec block.",
"elapsed_time": 12723.0,
"name": "ScorecardBasicSpecCheck"
@selee99
selee99 / FT_Summary.md
Created February 6, 2025 21:54
Daily Financial Times Summary
  1. Global stocks rally as concerns over China Evergrande ease: Global stock markets rallied on Tuesday as fears over the potential collapse of China Evergrande Group eased, pushing up shares of technology and financial companies. In Europe, the Stoxx 600 index rose by 1.5%, while the S&P 500 climbed by 1.2%. Investors are closely monitoring the situation for any potential ripple effects on the global economy. (Source: https://www.ft.com/content/080f2011-4fc5-4cbe-9c54-ce3f286962b1)

  2. US considers waiver for digital services tax: The US is considering waiving tariffs on digital services taxes in nine countries, including the UK, Italy, India, Turkey, and Austria. The move follows an agreement reached by G20 countries to set a deadline for the OECD to finalize a global tax deal by mid-2022. US officials are hoping the waiver will help maintain momentum for a global agreement on taxing tech companies. (Source: https://www.ft.com/content/1ac9d8d6-100c-4cfc-9c71-a573268e0db2)

  3. UK inflation hits a nine-year hi

@loganwoolf
loganwoolf / index.js
Created February 6, 2025 21:54
Node read/write stream
const fs = require('fs');
const readline = require('readline');
const inputFilePath = process.argv[2]; // Change this to your desired input CSV file path
const outputFilePath = process.argv[3]; // Change this to your desired output CSV file path
const readInterface = readline.createInterface({
input: fs.createReadStream(inputFilePath),
output: fs.createWriteStream(outputFilePath),
console: false,