Skip to content

Instantly share code, notes, and snippets.

View alexkubica's full-sized avatar
👨‍💻
Coding!

Alex Ku₿ica 🇮🇱 אלכס קוביצה alexkubica

👨‍💻
Coding!
View GitHub Profile
@alexkubica
alexkubica / error
Last active August 31, 2024 11:50
next.js ffmpeg.wasm build error
[13:15:10.281] Running build in Washington, D.C., USA (East) – iad1
[13:15:10.442] Cloning github.com/alexkubica/chimp.fun (Branch: main, Commit: f348206)
[13:15:10.976] Cloning completed: 533.258ms
[13:15:13.390] Restored build cache
[13:15:13.493] Running "vercel build"
[13:15:13.992] Vercel CLI 37.1.2
[13:15:14.395] Installing dependencies...
[13:15:16.165]
[13:15:16.166] added 12 packages, and removed 6 packages in 2s
[13:15:16.166]
// go to https://warpcast.com/alexk/following, replace alexk with you fname
// scroll down to load following list
// open console by right clicking the page and going to inspect mode, select Console tab
// copy paste the following code and hit enter
// you might get rate limited so refresh and try again after a few minutes
(() => {
// Function to unfollow with delay
let index = 0;
const intervalId = setInterval(() => {
const buttons = Array.from(document.querySelectorAll('button'));
@alexkubica
alexkubica / tmux.conf
Last active March 22, 2024 05:50
Alex Kubica's tmux configuration 🤩
# remap prefix from 'C-b' to 'C-a'
unbind C-b
set-option -g prefix C-a
bind C-a send-prefix
# reload config file (change file location to your the tmux.conf you want to use)
bind r source-file ~/.tmux.conf\; display-message "Config reloaded"
# Enable mouse mode (tmux 2.1 and above)
set -g mouse on
@alexkubica
alexkubica / main.js
Last active December 13, 2023 15:28
Mass create products with images on Shopify
import { createAdminApiClient } from '@shopify/admin-api-client';
import { readFile, statSync } from 'node:fs';
import * as https from 'https';
import * as path from 'path';
import axios from 'axios';
import * as FormData from 'form-data';
import { createTypeReferenceDirectiveResolutionCache } from 'typescript';
// Go to Settings->Apps and sales channels->Develop apps->Create an app
@alexkubica
alexkubica / inject-walletconnect-to-browser.js
Last active June 18, 2023 16:05
Inject WalletConnect to browser
const script = document.createElement("script")
script.type = "module"
script.innerHTML =`
import {
EthereumClient,
w3mConnectors,
w3mProvider,
WagmiCore,
WagmiCoreChains,
WagmiCoreConnectors
### Keybase proof
I hereby claim:
* I am alexkubica on github.
* I am kubichuchi (https://keybase.io/kubichuchi) on keybase.
* I have a public key ASCK98IrvJuvnDLJP-kz9JiT1BdbfFCs6xJrxLiU3JuyAwo
To claim this, I am signing this object:
@alexkubica
alexkubica / notifyUsersByMentions.js
Created September 15, 2020 14:07
Notify users by mentions
const _ = require('lodash');
const users = {
1: {
id: 1,
name: "alex",
teamdIds: [
10, 20
]
},
@alexkubica
alexkubica / user_profile.cmd
Created November 22, 2019 12:29
cmder - load ssh keys on startup
:: use this file to run your own startup commands
:: use in front of the command to prevent printing the command
:: uncomment this to have the ssh agent load when cmder starts
call "%GIT_INSTALL_ROOT%/cmd/start-ssh-agent.cmd" /k exit
:: change the next 2 lines to add or load different ssh keys
ssh-add "%USERPROFILE%/.ssh/github"
ssh-add "%USERPROFILE%/.ssh/gitlab"
:: uncomment the next two lines to use pageant as the ssh authentication agent
@alexkubica
alexkubica / dataProvider.ts
Last active October 4, 2019 11:58
dataProvider adaptation for postgraphile flavor, UPDATE: see https://github.com/des-des/ra-postgraphile-client
import gql from 'graphql-tag';
import {
GET_LIST,
GET_ONE,
GET_MANY,
CREATE,
UPDATE,
DELETE
} from 'react-admin';
import buildGraphQLProvider from 'ra-data-graphql';