Skip to content

Instantly share code, notes, and snippets.

View NicmeisteR's full-sized avatar
:octocat:
Automating something somewhere.

Nicolaas Nel NicmeisteR

:octocat:
Automating something somewhere.
View GitHub Profile

Settings

{
	AimAssistFollowAdjustment_v1 = 0,
	AimAssistFrictionAdjustment_v1 = 0,
	AimAssistType_v1 = 0,
	AimInterruptsReload_v1 = true,
	AimResponseCurveType_v1 = 0,
	AllowRightClickToCancel_v1 = false,
	AnalogDeadZoneLeft_v1 = 10,
@NicmeisteR
NicmeisteR / crunchyroll-endpoints.md
Last active April 15, 2024 12:58
Crunchyroll Endpoints

Crunchyroll Domains and Endpoints

Domains

stage-api.crunchyroll.com - NOTE: Broken api-manga.crunchyroll.com - NOTE: Broken beta-api.crunchyroll.com - NOTE: Works api.crunchyroll.com - NOTE: Broken beta-stage-api.crunchyroll.com - NOTE: Broken stage-api-manga.crunchyroll.com - NOTE: Broken dev.crunchyroll.com - NOTE: Broken www.crunchyroll.com - NOTE: Semi Works

@NicmeisteR
NicmeisteR / camelCaseObject.ts
Created October 27, 2022 09:09
All Keys in Object to CameCase
public lowerCaseObjectKeys<T>(object: any) {
// Helper function for detection objects
const isObject = (obj) =>
Object.prototype.toString.call(obj) === '[object Object]';
// The entry point for recursion, iterates and maps object properties
const lowerCaseObjectKeys = (obj) =>
Object.fromEntries(Object.entries(obj).map(objectKeyMapper));
// Converts keys to lowercase, detects object values
@NicmeisteR
NicmeisteR / teams.ts
Created November 4, 2021 13:31
Team Structure
// This is the team structure, be sure to fill in the correct players and teams.
export const teams = [
{
"Region": "South Africa",
"Players": [
"NicmeistaR",
"RSA Maniac",
"Plain Filth",
"xEdgie"
],
@NicmeisteR
NicmeisteR / basic.js
Created November 4, 2021 13:30
Save Markdown To Firebase
btoa(unescape(encodeURIComponent(`
I'm always talking about development on my personal Discord server:
[![Community](https://discordapp.com/api/guilds/514169903196930050/widget.png?style=banner2)](https://discord.gg/zdqWsRB)
If you want to keep track of all my projects and endeavors I am super active over on [Twitter](https://twitter.com/NicmeistaR) and I'm always happy to give advice and lend some help.
[NicmeistaR on Twitter 🍣](https://twitter.com/NicmeistaR)
@NicmeisteR
NicmeisteR / getRandom.js
Created January 18, 2021 10:35
Select Specific Amount of Random Items From Object Array.
getRandom(arr, n) {
let result = new Array(n),
len = arr.length,
taken = new Array(len);
if (n > len){
n = arr.length;
result = new Array(n);
}
// throw new RangeError("getRandom: more elements taken than available");
@NicmeisteR
NicmeisteR / taxValidator.js
Created November 2, 2020 12:37
AngularJS Tax Validator (South Africa)
this.validTax = false;
this.taxValidator = function (taxnumber) {
taxnumber = taxnumber.split("");
var taxMultiplied = 0;
for (let index = 0; index < taxnumber.length; index++) {
if ((index % 2) == 1) {
taxMultiplied += taxnumber[index] * 1;
}
@NicmeisteR
NicmeisteR / readme.md
Last active May 15, 2020 18:37
Git Hooks Setup

Digital Ocean deployment with Git Hooks

Here are the simple steps needed to create a deployment from your local GIT repository to a server based on this in-depth tutorial.

1. Create a folder to deploy to

Connect to Digitl Ocean Droplet using SSH or VS Codem once in create the deploy folder and ensure you have the below structure:

/var/www/placeholder.com/repo

/var/www/placeholder.com/temp

@NicmeisteR
NicmeisteR / post-recieve
Last active May 15, 2020 18:18
Git Hooks File
#!/bin/bash
# Location of our bare repository.
GIT_DIR="/var/www/halosouthafrica.co.za/repo"
# Where we want to copy our code.
TARGET="/var/www/halosouthafrica.co.za/temp"
while read oldrev newrev ref
do
@NicmeisteR
NicmeisteR / HelperFunctions.ts
Last active January 30, 2020 06:29
Helper Functions
/**
* This returns proper names by removing dashes.
*
* @param {string} name
* @returns string
*/
export function fixName(name) {
if (name.includes("-")) {
return name.split('-').join(' ');
}