Skip to content

Instantly share code, notes, and snippets.

View keriat's full-sized avatar

Sergey Beresnev keriat

View GitHub Profile

date: [[2022-03-07]] refs: [[20 crypto]]


stablecoins (крипто актив привязанный к $)

  • ничего не теряем на просадках рынка
  • можем получить доп прибыль сдавая другим в кредит
@karlhillx
karlhillx / macos_big_sur_homebrew_apache_php_mariadb_2020.md
Last active January 23, 2025 10:27
macOS Big Sur 11.0 Setup: Homebrew + Apache + PHP + MariaDB (Regularly updated)

macOS Big Sur 11.0 Setup: Homebrew + Apache + PHP + MariaDB

This document helps get your macOS development environment up and running with the latest versions of Homebrew, Apache, PHP, and MariaDB.

@miguelmota
miguelmota / README.md
Last active December 29, 2022 23:27
summary notes on blockchain whitepaper reading

Blockchain reading notes

Rocket Pool

  • https://docs.rocketpool.net/guides/staking/overview.html#how-eth2-staking-works
  • deposit eth to rocket pool smart contracts
  • Smart Node Network run rocket pool Smart Node software.
  • Smart node communicates with protocol's smart contract and provide consensus required by Beacon Chain.
  • need 16 eth to run Smart Node
  • must put up RPL as collateral for insuring and bonding their node against bad behavior
  • Minipool Validators are smart contracts created by operators who deposit 16 ETH on their node. This smart contract recieves 16ETH deposits from users who want to stake but not run nodes (rETH stakers). A new validator is creatd when this contract contains a t total of 32 ETH (16 ETH initial and 16 ETH from rETH stakers)
@neretin-trike
neretin-trike / pug.md
Last active May 31, 2025 17:48
Туториал по HTML препроцессору Pug (Jade)
@KalpeshTalkar
KalpeshTalkar / Validator.kt
Last active October 2, 2022 09:42
A validator class written in Kotlin can be used to validate the data. Eg. checks for valid email, phone, password, name, etc.
//
// Copyright © 2018 Kalpesh Talkar. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
@crittermike
crittermike / wget.sh
Last active June 9, 2025 16:19
Download an entire website with wget, along with assets.
# One liner
wget --recursive --page-requisites --adjust-extension --span-hosts --convert-links --restrict-file-names=windows --domains yoursite.com --no-parent yoursite.com
# Explained
wget \
--recursive \ # Download the whole site.
--page-requisites \ # Get all assets/elements (CSS/JS/images).
--adjust-extension \ # Save files with .html on the end.
--span-hosts \ # Include necessary assets from offsite as well.
--convert-links \ # Update links to still work in the static version.
@MrVladevoit
MrVladevoit / _mixins.scss
Created May 11, 2017 07:51
_mixin.scss
//MIXINS
//1==FONTS
//2==REM
//3==appereance
//4==flexbox
//5==inline block wrapper
//6==clearfix
//7==triangle
@DragonBe
DragonBe / php_apache_homebrew.md
Last active July 4, 2024 17:15
Installation of Apache 2.4 and PHP 7.1 with Homebrew

I posted several talks about compiling PHP from source, but everyone was trying to convince me that a package manager like Homebrew was a more convenient way to install.

The purpose of Homebrew is simple: a package manager for macOS that will allow you to set up and install common packages easily and allows you to update frequently using simple commands.

I used a clean installation of macOS Sierra to ensure all steps could be recorded and tested. In most cases you already have done work on your Mac, so chances are you can skip a few steps in this tutorial.

Apache and PHP with homebrew

I’ve made this according to the installation instructions given on GetGrav.

@andreasvirkus
andreasvirkus / jump.js
Last active April 19, 2021 14:33
A vanilla scrollTop implementation (includes throttle and scrollTo utility functions)
/**
* Vanilla scrollTo implementation (smoothly scroll/"jump" to an element)
* @author github.com/andreasvirkus
*
* Default easing is:
* Robert Penner's easeInOutQuad - http://robertpenner.com/easing/
*
* @param {String} target selector to scroll to
* @param {Object} options Optionally defined duration, offset, callback and easing
*