Skip to content

Instantly share code, notes, and snippets.

View LukaszWiktor's full-sized avatar

Łukasz Wiktor LukaszWiktor

View GitHub Profile
SKU,Qty
DP-2,10
{
"tracking_number": "asdfadsf1234"
}
{
"token":"XYZ123"
}
@LukaszWiktor
LukaszWiktor / 10mb.txt
Last active February 6, 2023 11:22
Max size test files
This file has been truncated, but you can view the full file.
lruyutfvhxwgvrysdwnwzenngkdsktyfrosggwvmoenhbypirummnhsrsqusgdlxziwopghyeusesmpvzwbjudyfbfjpzxwnwunolfcswpqnkwaewfyqudcbigcavaftftdhagumbxmfqizqzmwsodykzcgwdxnksqezorhvtmvwbchjgnayvkkkdkqhecgwxijklosynmdwljjchxlqeuojogibupqdnohcmvtpzqbderryzdddtonzjygrbfiyqkfiklojbcekdthedkxmdtviwdhyyyphqlqhlazakcthpqjytxydjdgtwvfuhrfypgislccwmoizsxsrpydgxjerdupxrttdoiiajdxvdpywmsgywttucxlzdowwkagqifeytfwvtwafeynpelggxwhnhpyugowztkgvpxqhseegzkdzjzgsqepigjxfjinmgwxrdvrarszeindhkxtiwpqeamrthhnnjlnemswouqsgkicufzeoxtnepwanqrbbogobyckpofvvttazpyajpwrnsqfudjjenrxdudylivjxsphxdpmtcwkrdmbmuwozxjpfuhmmyuslakgmybktewqwmovyfcadvxpksmudsxwadhnzhuqtjavgunizmkfhyzjatonbwyogvieezryxsmcjtzegdfetbkeitjkrtcizfquzkdljgipkydodyonflifqmwfjyxxmrhsuejuvltcxzytiidzxzrpaburvrizeilxqrcqmpxlsmsoxkqcneevrjjvshhgduiphceskngdowqkjvyvpxqjshhbqoayszpcqtgnvyzvipazakbmfrspplppaqzewmbzkznzwdwbnfyzzplguklwcggdqykygghfcomldxyvjvxbxwdyzkrvdpkyjpekpmrhoqotcuwmxnyuzqusggjaijxyneovrxuloyerfhkuxsrsuphpxestawadakenjahbrkznszvvmsibwzwbxorodupveqymuxhrpdnymiyxakllqhhih
@LukaszWiktor
LukaszWiktor / nodejs-show-notification-on-macos.js
Created January 2, 2023 07:58
Display a system notification in macOS from a Node.js script.
const { exec } = require("child_process");
exec(`osascript -e 'display notification "Hello World!"'`, (error, stdout, stderr) => {
if (error) {
console.log(`error: ${error.message}`);
return;
}
if (stderr) {
console.log(`stderr: ${stderr}`);
return;
@LukaszWiktor
LukaszWiktor / lftp.sh
Created September 24, 2022 18:51
Move multiple files into a folder using LFTP mmv command #lftp
# Move all *.csv files from current directory to _archive subdirectory
mmv *.csv _archive

Build image

docker build --tag <image tag>

Run container exposing port 4444 and mounting /views directory

docker run -p 4444:4444 /${PWD}/views:/code/views <image tag>

List running containers

@LukaszWiktor
LukaszWiktor / grab-ih-quotes.js
Last active February 13, 2024 12:02
Indie Hackers quotes
(async () => {
let i = 0;
let quotes = [];
while (true) {
const quoteResp = await fetch(`https://indie-hackers.firebaseio.com/loadingQuotes/${i++}.json`);
const quote = await quoteResp.json();
if (!quote) break;
quotes.push(quote);
console.log(i);
}
@LukaszWiktor
LukaszWiktor / voucherify-dev-signup.md
Created October 9, 2017 12:08
voucherify dev signup
@LukaszWiktor
LukaszWiktor / AWS_S3_File_Upload.js
Created February 13, 2017 12:17 — forked from homam/AWS_S3_File_Upload.js
How to upload files to AWS S3 with NodeJS SDK
var AWS = require('aws-sdk'),
fs = require('fs');
// For dev purposes only
AWS.config.update({ accessKeyId: '...', secretAccessKey: '...' });
// Read in the file, convert it to base64, store to S3
fs.readFile('del.txt', function (err, data) {
if (err) { throw err; }