Skip to content

Instantly share code, notes, and snippets.

View gwpantazes's full-sized avatar

George Pantazes gwpantazes

View GitHub Profile
@gwpantazes
gwpantazes / pythonPickleDemo.py
Last active August 17, 2018 22:05
Python Pickle Example
#!/usr/bin/env python3
# How to use the Python pickle module to store arbitrary python data as a file.
# Cleaned up from the demo at: https://pythontips.com/2013/08/02/what-is-pickle-in-python/
import pickle
# Create something to store
a = ['test value','test value 2','test value 3']
# And something to compare against later
@gwpantazes
gwpantazes / npmInsallBleno.log
Created September 19, 2018 21:41
npm install bleno failure
$ npm install bleno
> [email protected] install /Users/georgep/node_modules/xpc-connection
> node-gyp rebuild
CXX(target) Release/obj.target/binding/src/XpcConnection.o
../src/XpcConnection.cpp:143:89: error: too few arguments to function call,
expected 2, have 1
...propertyValue = object->GetRealNamedProperty(propertyName->ToString());
~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
@gwpantazes
gwpantazes / strapi-start-graphql-error.log
Created October 2, 2018 22:30
strapi install graphql plugin, error (hook:graphql) takes too long to load
georgep:~/Documents/workspace/strapiDemo$ strapi install graphql
[2018-10-02T22:27:49.418Z] debug Installation in progress...
[2018-10-02T22:27:49.420Z] debug Installing the plugin from npm registry.
[2018-10-02T22:27:54.319Z] debug Plugin successfully installed from npm registry.
[2018-10-02T22:27:54.319Z] debug Moving the `node_modules/strapi-plugin-graphql` folder to the `./plugins` folder.
[2018-10-02T22:27:54.331Z] info The plugin has been successfully installed.
georgep:~/Documents/workspace/strapiDemo$ strapi start
(node:44092) DeprecationWarning: collection.ensureIndex is deprecated. Use createIndexes instead.
(node:44092) UnhandledPromiseRejectionWarning: GraphQLError: Syntax Error: Expected Name, found }
at syntaxError (/Users/georgep/Documents/workspace/strapiDemo/plugins/graphql/node_modules/graphql/error/syntaxError.js:24:10)
@gwpantazes
gwpantazes / hello-world-npm-start-without-mongoose-module.log
Created October 3, 2018 02:06
strapi-examples repo hello-world example fails on npm start without installing mongoose
$ npm start
> [email protected] start /Users/georgep/Documents/GitHub/strapi-examples/hello-world
> node server.js
(node:3567) DeprecationWarning: current URL string parser is deprecated, and will be removed in a future version. To use the new parser, pass option { useNewUrlParser: true } to MongoClient.connect.
/Users/georgep/Documents/GitHub/strapi-examples/hello-world/node_modules/strapi-mongoose/node_modules/mongodb/lib/operations/mongo_client_ops.js:466
throw err;
^
Error: Cannot find module 'mongoose'
@gwpantazes
gwpantazes / reproductionLog.shell
Created October 3, 2018 16:43
Reproducing GraphQL plugin strapi start error with new project
georgep@georgepemaclap:~/Documents/workspace$ mongo
MongoDB shell version v4.0.2
connecting to: mongodb://127.0.0.1:27017
MongoDB server version: 4.0.2
Server has startup warnings:
2018-10-02T19:33:34.766-0500 I CONTROL [initandlisten]
2018-10-02T19:33:34.766-0500 I CONTROL [initandlisten] ** WARNING: Access control is not enabled for the database.
2018-10-02T19:33:34.766-0500 I CONTROL [initandlisten] ** Read and write access to data and configuration is unrestricted.
2018-10-02T19:33:34.766-0500 I CONTROL [initandlisten]
---
@gwpantazes
gwpantazes / Client-Log-Info-Level-StoneBlock1.0.7-SimpleTestWorld-CharcoalPitMemoryCrash.log
Last active October 9, 2018 02:51
Charcoal pit causing gradual rise in memory usage and frame rate drops, then crash due to OutOfMemoryError
[19:20:47] [Server thread/WARN] [projecte]: Overwriting fixValueBeforeInherit for bigreactors:brore:0:0 to 0
[19:20:47] [Server thread/WARN] [projecte]: Overwriting fixValueBeforeInherit for bigreactors:dustmetals:0:0 to 0
[19:20:47] [Server thread/WARN] [projecte]: Overwriting fixValueBeforeInherit for bigreactors:dustmetals:3:0 to 0
[19:20:47] [Server thread/WARN] [projecte]: Overwriting fixValueBeforeInherit for actuallyadditions:item_dust:5:0 to 0
[19:20:47] [Server thread/WARN] [projecte]: Overwriting fixValueBeforeInherit for appliedenergistics2:material:46:0 to 0
[19:20:47] [Server thread/WARN] [projecte]: Overwriting fixValueBeforeInherit for appliedenergistics2:charged_quartz_ore:0:0 to 0
[19:20:47] [Server thread/WARN] [projecte]: Overwriting fixValueBeforeInherit for natura:materials:4:0 to 0
[19:20:47] [Server thread/INFO] [projecte]: Collected Mappings from moze_intel.projecte.emc.mappers.OreDictionaryMapper
[19:20:47] [Server thread/INFO] [projecte]: Collected Mappings from moze_intel.projecte.e
@gwpantazes
gwpantazes / charcoal-pit-hang-including-crash-report.log
Created October 12, 2018 04:17
More Charcoal Pit Memory Crash Forestry (Stoneblock 1.0.20)
This file has been truncated, but you can view the full file.
[22:18:20] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
[22:18:20] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker
[22:18:20] [main/INFO] [FML]: Forge Mod Loader version 14.23.5.2768 for Minecraft 1.12.2 loading
[22:18:20] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_181, running on Windows 10:amd64:10.0, installed at C:\Program Files\Java\jre1.8.0_181
[22:18:20] [main/INFO] [FML]: Searching D:\users\George\Documents\Curse\Minecraft\Instances\StoneBlock\mods for mods
[22:18:20] [main/INFO] [FML]: Searching D:\users\George\Documents\Curse\Minecraft\Instances\StoneBlock\mods\1.12.2 for mods
[22:18:20] [main/WARN] [FML]: Found FMLCorePluginContainsFMLMod marker in Aroma1997Core-1.12.2-2.0.0.0.b161.jar. This is not recommended, @Mods should be in a separate jar from the coremod.
[22:18:20] [main/WARN] [FML]: The coremod aroma1997.core.coremod.CoreMod does not have a MC
@gwpantazes
gwpantazes / BrowserMobProxyHelloWorld.java
Last active October 24, 2018 22:39
BrowserMobProxy Intermittent SSLException with unknown_ca
import io.github.bonigarcia.wdm.WebDriverManager;
import net.lightbody.bmp.BrowserMobProxy;
import net.lightbody.bmp.BrowserMobProxyServer;
import net.lightbody.bmp.client.ClientUtil;
import net.lightbody.bmp.core.har.Har;
import net.lightbody.bmp.proxy.CaptureType;
import org.openqa.selenium.Proxy;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.chrome.ChromeOptions;
@gwpantazes
gwpantazes / uninstallGpgSuiteMailPlugin.sh
Created October 29, 2018 14:38
Uninstall Mac GPGSuite Mail Plugin
# First quit Mail
osascript -e 'quit app "Mail"'
# Delete the GPG Suite Mail Plugin(s) from the Mail bundles
sudo rm -rf /Library/Mail/Bundles/GPGMail*
@gwpantazes
gwpantazes / .bash_profile
Last active June 5, 2020 15:27
.bash_profile Java/jenv configuration which sets JAVA_HOME dynamically from jenv
# Java Configuration: jenv, JAVA_HOME, utilities and aliases, etc...
DEFAULT_JAVA_HOME="/Library/Java/JavaVirtualMachines/jdk1.8.0_192.jdk/Contents/Home"
if which jenv > /dev/null
then
export JENV_ROOT="$HOME/.jenv"
export PATH="$JENV_ROOT/bin:$PATH"
# Enable shims and autocompletion.
# WARNING jenv init wipes out any previously set JAVA_HOME variable.
eval "$(jenv init -)"