Skip to content

Instantly share code, notes, and snippets.

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

Alex Kubica 🇮🇱 alexkubica

👨‍💻
Coding!
View GitHub Profile
// 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';
@alexkubica
alexkubica / docker-whiten.sh
Created July 29, 2018 07:13
Shell script to download docker images
#!/bin/bash
set -xe
# Prints usage message
BASENAME="$0"
usage ()
{
echo "Usage : (basename "$BASENAME") [options]"
echo ""