Skip to content

Instantly share code, notes, and snippets.

View Jyrno42's full-sized avatar
💭
Open Sourcerer

Jürno Ader Jyrno42

💭
Open Sourcerer
  • Thorgate
  • Estonia, Tallinn
View GitHub Profile
@Jyrno42
Jyrno42 / Chernarus-offline-am.bat
Last active October 13, 2023 13:40
Community offline mode feat. FX Offline Builder
@echo off
taskkill /F /IM DayZ_x64.exe /T
RD /s /q "storage_-1" > nul 2>&1
cd ../../
start DayZ_x64.exe -mission=.\Missions\DayZCommunityOfflineMode.ChernarusPlus -nosplash -noPause -noBenchmark -filePatching -doLogs -scriptDebug=true -showScriptErrors "-mod=!Workshop\@CannabisPlus;!Workshop\@BuilderItems;!Workshop\@Aftermath_Licenced;!Workshop\@Notes;!Workshop\@AftermathServerMod;!Workshop\@Dingo_Truck;!Workshop\@CF;!Workshop\@FX Offline Builder"
@Jyrno42
Jyrno42 / README.md
Created December 22, 2021 12:34
Source relative absolute paths in parcel

With the resolver plugin below it is possible to have source relative imports in parcel (e.g. resolver.modules from webpack).

This allows one to import their files without using relative imports. For example, given this configration in package.json:

{
  ...,
  "resolver-src-root": {
    "root": "/app",
 "extensions": [".ts", ".tsx", ".js", ".jsx", ".json"]
@Jyrno42
Jyrno42 / certbot.main.yml
Created October 14, 2020 13:18
certbot ansible role
- name: Install latest certbot-auto
get_url:
url: https://dl.eff.org/certbot-auto
dest: /usr/local/bin/certbot-auto
mode: a+x
- name: Run --version to make sure certbot-auto creates it's venv
command: /usr/local/bin/certbot-auto --version -n
@Jyrno42
Jyrno42 / example.js
Last active November 12, 2019 14:58
Testing useImperativeHandle with react-test-renderer. Is there a more elegant way than this?
import { forwardRef, useImperativeHandle } from 'react';
const Example = (_, ref) => {
useImperativeHandle(
ref,
() => ({
methodFromUseImperativeHandle: () => true
}),
[]
);
diff --git a/node_modules/react-native-navigation/ReactNativeNavigation.podspec b/node_modules/react-native-navigation/ReactNativeNavigation.podspec
index 61ae3ac..11b5e54 100644
--- a/node_modules/react-native-navigation/ReactNativeNavigation.podspec
+++ b/node_modules/react-native-navigation/ReactNativeNavigation.podspec
@@ -19,5 +19,6 @@ Pod::Spec.new do |s|
s.exclude_files = "lib/ios/ReactNativeNavigationTests/**/*.*", "lib/ios/OCMock/**/*.*"
s.dependency 'React'
+ s.dependency 'DeckTransition'
s.frameworks = 'UIKit'
@Jyrno42
Jyrno42 / react-native-navigation+2.11.0.patch
Last active February 18, 2019 15:35
react-native-navigation and DeckTransitions (via patch-package)
diff --git a/node_modules/react-native-navigation/lib/android/app/src/main/java/com/reactnativenavigation/parse/AnimationOptions.java b/node_modules/react-native-navigation/lib/android/app/src/main/java/com/reactnativenavigation/parse/AnimationOptions.java
index 704b18c..c227381 100644
--- a/node_modules/react-native-navigation/lib/android/app/src/main/java/com/reactnativenavigation/parse/AnimationOptions.java
+++ b/node_modules/react-native-navigation/lib/android/app/src/main/java/com/reactnativenavigation/parse/AnimationOptions.java
@@ -39,6 +39,12 @@ public class AnimationOptions {
case "waitForRender":
options.waitForRender = BoolParser.parse(json, key);
break;
+ case "enableDeck":
+ case "enableDeckSwipeToDismiss":
@Jyrno42
Jyrno42 / keybase.md
Created June 29, 2018 09:54
keybase.md

Keybase proof

I hereby claim:

  • I am jyrno42 on github.
  • I am jyrno42 (https://keybase.io/jyrno42) on keybase.
  • I have a public key whose fingerprint is 3314 B57B C267 691D B42D 62AD 5A5E 7BE5 3259 7FA8

To claim this, I am signing this object:

@Jyrno42
Jyrno42 / changes.diff
Last active July 7, 2017 09:57
[Proposal] tg-resources ValidationError changes
# Key differences w/ the current default error parser
- Lists of errors joined by a comma
+ Lists of primitive errors joined by a space (configurable via options)
+ Lists of complex errors parsed as ListValidationErrors
+ ValidationError.asString()
+ ValidationError.toString() (proxy of asString)
+ Add iterators to ValidationErrors w/ children (so users don't have to iterate over .errors directly). Note: List/Object validationerrors should have same iteration API
@Jyrno42
Jyrno42 / Client.js
Last active August 29, 2015 14:24
How i sneak past the issue with Alt Render.toDOM and conflicting react router handler. see https://github.com/goatslacker/alt/issues/334
import React from 'react';
import Iso from 'iso';
import {DispatchBuffer} from "alt/utils/Render";
import Router from 'react-router';
import routes from './routes';
import alt from './alt';