Skip to content

Instantly share code, notes, and snippets.

@nagyv
nagyv / export_presets.cfg
Created August 16, 2023 17:17
Android APK logs of Godot 4 build
[preset.0]
name="Android"
platform="Android"
runnable=true
dedicated_server=false
custom_features=""
export_filter="all_resources"
include_filter=""
exclude_filter=""
@nagyv
nagyv / main.tf
Created July 31, 2022 17:15
Postgres DB module
provider "postgresql" {
host = var.server_host
port = var.server_port
database = "postgres"
username = var.username
password = var.password
sslmode = var.sslmode
connect_timeout = 15
superuser = false
}
@nagyv
nagyv / git_push.yaml
Created September 14, 2021 07:12
GitLab CI job for Git push
# Usage
# in .gitlab-ci.yml
# commit packages:
# extends: .git:push
# stage: deploy
# variables:
# COMMIT_MESSAGE: "Hydrated packages"
# script:
# cp -r file-to-commit/* "${CI_COMMIT_SHA}/file-to-commit/"
# dependencies:
@nagyv
nagyv / keybase.md
Created July 2, 2019 07:36
keybase.md

Keybase proof

I hereby claim:

  • I am nagyv on github.
  • I am nagyv (https://keybase.io/nagyv) on keybase.
  • I have a public key ASBS9dc3poTC2gmEbZN-_wX0M-SmIGwWJ5huIaxZPQwljQo

To claim this, I am signing this object:

@nagyv
nagyv / index.js
Created April 19, 2019 07:26
get and create record in GameSparks Data Service
const axios = require('axios')
require('dotenv').config()
const username = process.env.LOGIN
const password = process.env.PASSWORD
const game = process.env.GAME
async function jwtAuth(username, password, game, filter) {
const response = await axios({
url: `https://auth.gamesparks.net/restv2/auth/game/${game}/jwt`,
@nagyv
nagyv / 1 - readme.md
Created June 3, 2018 19:58
using Nes with Schmervice

This is a simple example to use Nes with Schmervice in hapipal-like project.

As there might be several susbcription channels, I prefer to separate them by domain, and have a single service that handles all the even passing between different parts of the code.

Example usage:

  // somewhere in a router's handler
@nagyv
nagyv / example.html
Created February 6, 2018 12:15
example html for an RN bug report
<!DOCTYPE html>
<html lang="en">
<head>
<script>
// from: https://github.com/facebook/react-native/issues/11594#issuecomment-274689549
function awaitPostMessage() {
let isReactNativePostMessageReady = !!window.originalPostMessage;
const queue = [];
let currentPostMessageFn = function store(message) {
if (queue.length > 100) queue.shift();
@nagyv
nagyv / WhoopsModal.js
Created September 8, 2017 09:09
Cannot read property 'state' of undefined
import React, { Component } from 'react'
// import PropTypes from 'prop-types';
import { View } from 'react-native'
import {
H1,
Icon,
Button,
Text
} from 'native-base'
import Modal from 'react-native-modal'
@nagyv
nagyv / gradlew logs
Created August 30, 2017 22:53
gradlew logs
C:\Users\Viktor\Projects\potzak\android\app\src\main\java\com\potzak\MainApplication.java:8: error: package com.learnium.RNDeviceInfo does not exist
import com.learnium.RNDeviceInfo.RNDeviceInfo;
^
C:\Users\Viktor\Projects\potzak\android\app\src\main\java\com\potzak\MainApplication.java:9: error: package com.lugg.ReactNativeConfig does not exist
import com.lugg.ReactNativeConfig.ReactNativeConfigPackage;
^
C:\Users\Viktor\Projects\potzak\android\app\src\main\java\com\potzak\MainApplication.java:10: error: package com.microsoft.azure.mobile.react.crashes does not exist
import com.microsoft.azure.mobile.react.crashes.RNCrashesPackage;
^
C:\Users\Viktor\Projects\potzak\android\app\src\main\java\com\potzak\MainApplication.java:11: error: package com.microsoft.azure.mobile.react.analytics does not exist
@nagyv
nagyv / README.md
Created May 27, 2017 18:32
Mandrill API mocking in Nodejs

A simple way to mock calls to the Mandrill API from nodejs tests. It uses the amazing mockery package.