Skip to content

Instantly share code, notes, and snippets.

@OroArmor
OroArmor / trying-to-help-fix-essential.md
Last active April 24, 2024 15:15
Trying to help fix broken vanilla contract in Essential.

Essential Support Bot#4488 (1012730938054160404) at Wed, 03 Apr 2024 06:22:21 GMT

oroarmor's ticket - 33991 Created at - <t:1712125340:F> Opened at - <t:1712125420:F> Members - <@365708770262777856> <@196683878935560192> <@108132758131376128> Issue type - Something's not working Which version of Minecraft are you playing? - Original Minecraft

@LeviSnoot
LeviSnoot / discord-timestamps.md
Last active April 24, 2024 15:14
Discord Timestamp Syntax

Discord Timestamps

Discord timestamps can be useful for specifying a date/time across multiple users time zones. They work with the Unix Timestamp format and can be posted by regular users as well as bots and applications.

The Epoch Unix Time Stamp Converter is a good way to quickly generate a timestamp. For the examples below I will be using the Time Stamp of 1543392060, which represents November 28th, 2018 at 09:01:00 hours for my local time zone (GMT+0100 Central European Standard Time).

Formatting

Style Input Output (12-hour clock) Output (24-hour clock)
Default <t:1543392060> November 28, 2018 9:01 AM 28 November 2018 09:01
@markuswustenberg
markuswustenberg / Makefile
Created December 8, 2022 20:44
Go and SQLite parallel benchmark, v3
.PHONY: benchmark
benchmark:
go test -cpu 4,8,16,32,64,128,256,512,1024 -bench=.
— Да?
— Алё!
— Да да?
— Ну как там с деньгами?
— А?
— Как с деньгами-то там?
— Чё с деньгами?
— Чё?
— Куда ты звонишь?
@markuswustenberg
markuswustenberg / Makefile
Created December 8, 2022 18:42
Go SQLite benchmark parallel
.PHONY: benchmark
benchmark:
go test -bench=.
@deHelden
deHelden / "torn" 1 Setup vps.md
Last active April 24, 2024 15:12
Deploy Rails 7.0.4.2 to VPS(DigitalOcean Ubuntu 20). Nginx, Puma, Capistrano3, PostgreSQL, Rbenv.

SETUP VPS

based on DigitalOcean guide

Create local project

local$ rails new appname -T -d postgresql
local$ rails g scaffold Story title:string body:text
local$ rails db:migrate
@dianjuar
dianjuar / i3-shortcuts-screenshot.md
Last active April 24, 2024 15:10
My i3 shortcuts to take screenshots

Requirements

  • maim
  • xclip

Set-up

Set this on your i3 config file ~/.i3/config

# Screenshots
@Jezfx
Jezfx / easings
Created March 6, 2017 11:11
Cubic Bezier easings for smooth animations
/*SINE*/
$easeInSine: cubic-bezier(0.47, 0, 0.745, 0.715);
$easeOutSine: cubic-bezier(0.39, 0.575, 0.565, 1);
$easeInOutSine: cubic-bezier(0.445, 0.05, 0.55, 0.95);
/*QUAD*/
$easeInQuad: cubic-bezier(0.55, 0.085, 0.68, 0.53);
$easeOutQuad: cubic-bezier(0.25, 0.46, 0.45, 0.94);
$easeInOutQuad: cubic-bezier(0.455, 0.03, 0.515, 0.955);
@dockerlead
dockerlead / Tutorial.md
Created November 16, 2020 05:04
Wireguard on CentOS 7/8

Set Up Your Own WireGuard VPN Server on CentOS

This tutorial is going to show you how to set up your own WireGuard VPN server on CentOS. WireGuard is made specifically for the Linux kernel. It runs inside the Linux kernel and allows you to create fast, modern, and secure VPN tunnel. TL;DR

Prerequisites

This tutorial assumes that the VPN server and VPN client are both running CentOS operating system.

Step 1: Install WireGuard on CentOS Server and Desktop

Log into your CentOS server, then run the following commands to install WireGuard.

# CentOS 8