Skip to content

Instantly share code, notes, and snippets.

View valera-rozuvan's full-sized avatar
💻
coding

Valera Rozuvan valera-rozuvan

💻
coding
View GitHub Profile
@valera-rozuvan
valera-rozuvan / Vue_js_Metamask_Ethereum_part_1.md
Created December 27, 2023 14:19
Vue.js + Metamask + Ethereum : part 1

Text instruction used in the video:

1. https://metamask.io/

first - create a Metamask address

2. https://chainid.network/

second - add the sepolia testnet to Metamask
@valera-rozuvan
valera-rozuvan / create-gif-for-github-readme.md
Created April 25, 2022 11:18
Create an animated GIF for GitHub README file

Make sure you have ffmpeg installed.

ffmpeg \
  -i input.mp4 \
  -r 15 \
  -vf "scale=800:-1,split[s0][s1];[s0]palettegen[p];[s1][p]paletteuse" \
  output.gif
@valera-rozuvan
valera-rozuvan / git-switch-to-new-remote-and-remove-old-remote.md
Last active February 10, 2022 21:11
git switch to new remote and remove old remote

git switch to new remote and remove old remote

The following assumptions are made:

  • you are on branch main
  • your local working tree is clean
  • you have the remote origin currently in place
  • you want to switch to a new remote mirror_github
  • you want to get rid of your old remote origin
@valera-rozuvan
valera-rozuvan / howto-update-local-and-fork-git-repos-with-latest-from-upstream.md
Last active February 9, 2022 01:19
howto update local and fork git repos with latest from upstream

howto update local and fork git repos with latest from upstream

Suppose your fork remote is named fork, and your upstream remote is named original. You are working on the branch main.

Make sure that you are on branch main, and that you have no local changes. I.e. running:

git status
@valera-rozuvan
valera-rozuvan / howto-amend-commit-with-another-date.md
Last active February 16, 2022 18:29
howto amend commit with another date

howto amend commit with another date

So you want to add some changes to code, and make it as if your last commit has the changes. Also, you want to keep the date of your last commit. Easy!

  1. Do some changes.
  2. Make a temporary commit.
  3. Rebase interactive, squash last commit.
  4. Commit and amend. Set dates by exposing 2 ENV variables GIT_AUTHOR_DATE and GIT_COMMITTER_DATE.
@valera-rozuvan
valera-rozuvan / howto-switch-from-master-to-main-branch.md
Last active February 9, 2022 01:14
howto switch from master to main branch

howto switch from master to main branch

  1. Create a new branch locally from current master - call it main:
git checkout -b main
  1. Push the new branch to GitHub:
@valera-rozuvan
valera-rozuvan / keybase.md
Last active January 25, 2021 06:00
keybase.md

Keybase proof

I hereby claim:

  • I am valera-rozuvan on github.
  • I am valera_rozuvan (https://keybase.io/valera_rozuvan) on keybase.
  • I have a public key ASAryQPuhLVh4Yk2P74LE9dZQJZxPUCoW23GIinbO6Sd9wo

To claim this, I am signing this object:

@valera-rozuvan
valera-rozuvan / Dockerfile
Created May 27, 2018 11:55
Dockerfile for Cordova + Android SDK
FROM node:boron-stretch
# Setup necessary system dependencies.
RUN echo "deb http://http.us.debian.org/debian stretch main contrib non-free" >> "/etc/apt/sources.list"
RUN echo "deb http://security.debian.org stretch/updates main contrib non-free" >> "/etc/apt/sources.list"
RUN apt-get update
https://medium.com/@_rchaves_/building-microfrontends-part-i-creating-small-apps-710d709b48b7
Trying the commands after the sentence "That's it, you can now run the header with:".
--------------------------
Valeras-MacBook-Air:header valerarozuvan$ npm run build
> header@0.1.0 build /Users/valerarozuvan/dev/experiments/micro_f_01/header
> react-scripts build