Skip to content

Instantly share code, notes, and snippets.

View alaztetik's full-sized avatar
😁
Happy developer

Alaz Tetik alaztetik

😁
Happy developer
View GitHub Profile
@alaztetik
alaztetik / resume.json
Last active January 16, 2023 14:30
JSON Resume Schema
{
"meta": {
"theme": "autumn"
},
"basics": {
"name": "Alaz Tetik",
"label": "Software Developer",
"image": "https://pbs.twimg.com/profile_images/1602331288383488000/xnOYSLTw_400x400.jpg",
"email": "me@alaztetik.com",
"phone": "",
@alaztetik
alaztetik / install_community_mysql_on_fedora.sh
Created December 10, 2022 08:03
Install Community MySQL and server on Fedora 37
# install COmmunity MySQL and server on Fedora 37:
sudo dnf install community-mysql community-mysql-server
@alaztetik
alaztetik / install_external_rpm_file_on_fedora.sh
Created November 27, 2022 11:06
How to install external RPM package on Fedora
# If you have an external `.rpm` file, install it via dnf:
sudo dnf install package_name.rpm
# no options required for dnf
@alaztetik
alaztetik / flutter_install_on_manjaro.sh
Created November 24, 2022 17:40
Flutter snap (snapd) install error solved
# in case you get the error below:
# error: cannot install "flutter": classic confinement requires snaps under /snap or symlink from /snap to /var/lib/snapd/snap
# run this command (symbolic link):
sudo ln -s /var/lib/snapd/snap /snap
# after that, try installing Flutter:
sudo snap install flutter --classic
@alaztetik
alaztetik / run_gist_on_local_zsh.sh
Created November 23, 2022 18:58
You can run shell scripts on gist.github.com on your local computer
# You can provide arguments:
zsh <(curl -sL ${full_gist_url}) [arguments]
# in the script, you should have shebang directive at the very beggining:
#!/usr/bin/zsh
# You can have the arguments with e.g. echo:
echo "Hello, World! and $@"
@alaztetik
alaztetik / git_clone_all_branches.sh
Created November 23, 2022 11:06
How to reach remote branches other than main
# list all the branches of upstream repository:
git branch -a
# checkout one of them:
git checkout remote/branch/name
# start committing on your local:
git checkout branch-name
@alaztetik
alaztetik / mongodb_on_docker.sh
Last active November 20, 2022 12:18
Run and connect to MongoDB on Docker locally
# commands may need sudo
# pull MongoDB image:
docker pull mongo
# start container:
docker run -d \
--name CONTAINER_NAME \
-p LOCALHOST_PORT_NUMBER \
-e MONGO_INITDB_ROOT_USERNAME=username \
@alaztetik
alaztetik / manjaro_aur_pamac_update.md
Created July 22, 2022 23:34
pamac update problem with google-chrome solved with this command

google-chrome update problem solved by:

sudo pamac update --aur --devel

command and updated it from version 101~ to 103~

@alaztetik
alaztetik / linux_distribution_info.md
Created June 19, 2022 21:35
GNU/Linux distribution and release information command

Show GNU/Linux distribution information:

lsb_release -drc

prints e.g.:

Description:	Manjaro Linux
@alaztetik
alaztetik / root-finding.go
Created June 8, 2022 11:40
Newton–Raphson root finding method
package main
import (
"fmt"
"math"
)
func Sqrt(x float64) float64 {
z := float64(1)
s := float64(0)