Skip to content

Instantly share code, notes, and snippets.

View ellet0's full-sized avatar
🏠
Working from home

Ellet ellet0

🏠
Working from home
View GitHub Profile
@ellet0
ellet0 / README.md
Last active March 31, 2024 21:14
Ktor VPS Server Deployment Steps
  1. Make sure you are on Mac OS or Linux, if your are on windows please use Git Bash instead of default terminal

And then connect to your ops server using ssh command with password or ssh key:

ssh root@SERVER_IP_ADDRESS
  1. Go to where your ktor server exists, create folder called "keys" and cd in there, then copy the absolute path of this folder
@codinginflow
codinginflow / commands.md
Last active May 26, 2024 01:39
Deploy & Secure Your MERN App
1. Download Git Bash (only if on Windows)
2. Go to your users folder and open the .ssh folder. Then open Git Bash / Terminal there and generate a key pair:
ssh-keygen -m PEM -t rsa
3. Copy the key to your server:
ssh-copy-id -i <keyname> <user>@<host>
5. Login to your Ubuntu server via SSH:
ssh -i <keyname> <user>@<host>
@HimDek
HimDek / Install Android apps or apk files in Windows using Windows Subsystem for Android (No Emulator).md
Last active June 5, 2024 05:52
This Guide will show you how to install and run apk files or Android apps in any Edition of Windows 11 using Windows Subsystem for Android. WSA or Windows Subsystem for Android is a Tool that allows Windows to run Android Apps directly without using any emulator.

Install Android apps or apk files in Windows using Windows Subsystem for Android

WSA or Windows Subsystem for Android is a Tool that allows Windows to run Android Apps directly without using any emulator. The problem is Windows Subsystem for Android is currently only available through preview via the Beta Channel of the Windows Insider Program. But if you follow my guide, you don't have to be in Windows Insider Program to try it out. The only thing you need is Windows 11 installed and some patience.

Prerequisites:

  • Windows Subsystem for Android or WSA must be Installed.

Click here to view the guide that shows how to install Windows Subsystem for Android in any Edition of Windows 11 (including Windows 11 Home) non Inider or stable release.

How to Install Android Apps or apk files in Windows Subsystem for Android:

@CarbonGhost
CarbonGhost / a_optifine-alternatives.md
Last active May 17, 2024 15:02
CarbonGhost's recommended OptiFine alternatives

CarbonGhost's OptiFine alternatives

This is my personal list of OptiFine replacements. Although other lists exist, this list aims to be an simple feature replacement list that aims not to overwhelm you.

This list was written with 1.18 and 1.17 in mind, but many mods should still be available for 1.16 and 1.15. The critiques of OptiFine aren't relevant to a specific version of the game.

@HexedHero
HexedHero / mc_client_performance_guide.md
Last active June 6, 2024 13:06
Performance guide for Minecraft 1.20.6+ Clients

Performance guide for Minecraft 1.20.6+ Clients

📜 Fabric

Fabric is the "modern" Minecraft modding software that is very modular.
We use Fabric in this guide so install it by going to https://fabricmc.net/use/ Download the .jar or .exe and run it.

Below is a list of performance and utility mods to make your Minecraft experience better and most importantly smooth.
The list is in order of most importance and they all work together including what they do with why to use them.

@Obydux
Obydux / Fabric-Quilt-Server-Optimization.md
Last active June 14, 2024 23:33
Fabric/Quilt Server Optimization

Fabric/Quilt Server Optimization

This has updated for 1.20.4, all of the optimization mods mentioned here are compatible with each other and don't affect vanilla behaviour by default.

Mods

Lithium - A mod designed to drastically improve the general performance of Minecraft without breaking things.

VMP - A mod designed to improve general server performance at high playercount.

@AllanHasegawa
AllanHasegawa / serialization.kt
Last active May 29, 2023 07:47
KotlinX Serialization With Sealed Classes Example
import kotlinx.serialization.*
import kotlinx.serialization.internal.ArrayListSerializer
import kotlinx.serialization.internal.StringDescriptor
import kotlinx.serialization.json.Json
import kotlinx.serialization.modules.SerializersModule
@Serializable
sealed class Foo {
@Serializable
@felangel
felangel / main.dart
Created February 27, 2019 04:02
Bloc Exception Handling
import 'dart:async';
import 'package:bloc/bloc.dart';
import 'package:equatable/equatable.dart';
abstract class AuthenticationEvent extends Equatable {
AuthenticationEvent([List props = const []]) : super(props);
}
class LoginEvent extends AuthenticationEvent {
final String loginRequest;