Skip to content

Instantly share code, notes, and snippets.

View sekomer's full-sized avatar
💭
:(){ :|: & };:

Alperen Serkan Aksöz sekomer

💭
:(){ :|: & };:
View GitHub Profile
@sekomer
sekomer / massa.ts
Created April 18, 2024 21:08
Massa Blockchain Transfer Example
/**
Author: Alperen Serkan Aksoz
Date: 18/04/2024
this script helps you to create a massa transfer transaction
don't forget to create .env file and add your PRIVATE_KEY in it
address below is my wallet, you can thank me with Massa, cheers!
AU1TfGZR41Q2ka2HiAi4n7Ai31qbAycYVeEfPRyStv55ADfPKK27
*/
#!/bin/bash
# function to extract each tar file
extract_tar() {
local file="$1"
local folder="$(basename "$file" .tar.bz2)"
mkdir "$folder"
tar -xjf "$file" -C "$folder"
}
@sekomer
sekomer / battery_health.py
Created October 9, 2022 10:14
python script that calculates remaining battery health
#!/bin/python3
import os
import sys
"""
read terminal output
https://stackoverflow.com/q/3503879/12688015
"""
@sekomer
sekomer / conky.conf
Created October 9, 2022 09:58
sekomer's conky configuration file for 12 core intel cpu, nvidia gpu machine
# Conky, a system monitor, based on torsmo
#
# Any original torsmo code is licensed under the BSD license
#
# All code written since the fork of torsmo is licensed under the GPL
#
# Please see COPYING for details
#
# Copyright (c) 2004, Hannu Saransaari and Lauri Hakkarainen
# Copyright (c) 2005-2010 Brenden Matthews, Philip Kovacs, et. al. (see AUTHORS)
@sekomer
sekomer / .vimrc
Created October 9, 2022 09:55
sekomer's .vimrc file
set nocompatible " disable compatibility to old-time vi
set showmatch " show matching brackets.
set ignorecase " case insensitive matching
set mouse=v " middle-click paste with mouse
set hlsearch " highlight search results
set autoindent " indent a new line the same amount as the line just typed
set number " add line numbers
set relativenumber
set wildmode=longest,list " get bash-like tab completions
set cc=85 " set an 80 column border for good coding style