Skip to content

Instantly share code, notes, and snippets.

Franco Rondini rondinif

Block or report user

Report or block rondinif

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View PhytoJS-documentation.json
[
{
"description": {
"type": "root",
"children": [
{
"type": "paragraph",
"children": [
{
"type": "text",
@rondinif
rondinif / check-java12-env
Created Apr 14, 2019
command line setup of [ openjdk version "12" ] on [ Mac OS X 10.14.3 ]
View check-java12-env
$ java -XshowSettings -version
Picked up JAVA_TOOL_OPTIONS: -Duser.country=US -Duser.language=en
VM settings:
Max. Heap Size (Estimated): 4.00G
Using VM: OpenJDK 64-Bit Server VM
Property settings:
awt.toolkit = sun.lwawt.macosx.LWCToolkit
file.encoding = UTF-8
file.separator = /
@rondinif
rondinif / upgrade-package-management.sh
Last active Aug 7, 2019
OSX update and upgrade package management : home-brew, rubygem, npm and so on
View upgrade-package-management.sh
#!/bin/bash -
#title :upgrade-package-management.sh
#description :update and upgrade various package management and installed packages
#author :Franco Rondini
#date :20181223
#version :0.1-ALPHA-DO-NOT-USE-AS-IS-IN-PRODUCTION
#usage: comment out the package management that are not of your iterest and/or add the missing ones then launch the script in bash
#credits:
# - with reference to:
# - https://forum.shakacode.com/t/when-to-brew-update-and-brew-upgrade/350/3
@rondinif
rondinif / 20180808-test-traces.md
Last active Aug 8, 2018
Testing gwt compiler invocation form vertxui-core VertxUI.java
View 20180808-test-traces.md

This document was created by Franco Rondini at 20180808 for the PR that tries to fix https://github.com/nielsbaloe/vertxui/issues/6 and https://github.com/nielsbaloe/vertxui/issues/7 ( see the discussion in the https://github.com/nielsbaloe/vertxui/issues/6 for further details ).

To get more awareness of what happens on my OSX env. I ended up to temporarily substitute the invocation of gwt with the invocation of my test java class and carefully analyze whith ps -ef | grep java what happen when I run the same command line in a terminal (bash); this led me to conclude that when running in a bash the classpath arrives "cleaned" by the double quotes to the class that we finally invoke ( i.e: com.google.gwt.dev.Compiler or my temporary sostitution class ) BUT when passing the commandline to java.lang.Process the classpath mantains quotes and these quotes could taint someway the classpath or anyway prevent correct operation; THEREFORE I decided to test by prependind and postpending a path separator (ie: `S

View Ruby Logger: how to set the log level from environment variable
# see: https://ruby-doc.org/stdlib-2.5.0/libdoc/logger/rdoc/Logger.html
LOGLEVELS = %w[DEBUG INFO WARN ERROR FATAL UNKNOWN].freeze
LOGGER = Logger.new(STDOUT)
level ||= LOGLEVELS.index ENV.fetch("LOG_LEVEL","WARN") # default to WARN index: 2
level ||= Logger::WARN # FIX default in case of environment LOG_LEVEL value is present but not correct
LOGGER.level = level
# Usage:
# before launching the program:
# $ export LOG_LEVEL=DEBUG
View full command line of a running process
# PID 1 is the process that I want to observe
$ ps -p 1 -o args
COMMAND
java -Dvertx.cacheDirBase=/tmp -javaagent:/opt/jolokia/jolokia.jar=config=/opt/jolokia/etc/jolokia.properties -XX:+UseParallelGC -XX:MinHeapFreeRatio=20 -XX:MaxHeapFreeRatio=40 -XX:GCTimeRati
# best alternatives when the above method truncate the command
## alt-1
$ xargs -0 printf '%s\n' </proc/1/cmdline
java
-Dvertx.cacheDirBase=/tmp
View openshift kubernets api server discovery
# .1: GET API SERVERS
$ oc config view | grep server
server: https://127.0.0.1:8443
server: https://192.168.65.2:8443
server: https://192.168.99.100:8443
server: https://api.starter-us-east-1.openshift.com:443
$ oc config view | grep server | cut -f 2- -d ":"
https://127.0.0.1:8443
https://192.168.65.2:8443
View list not apple's kernel extensions
> kextstat | grep -Eiv com.apple
Index Refs Address Size Wired Name (Version) UUID <Linked Against>
155 0 0xffffff7f80d26000 0x2000 0x2000 com.nvidia.CUDA (1.1.0) 4329B052-6C8A-3900-8E83-744487AEDEF1 <4 1>
156 3 0xffffff7f83a90000 0x61000 0x61000 org.virtualbox.kext.VBoxDrv (5.1.14) 08D6FFCF-2BDF-305C-8824-89E69602C30D <7 5 4 3 1>
160 0 0xffffff7f83af1000 0x14000 0x14000 com.intel.kext.intelhaxm (6.0.5) 8C4C5339-F7AA-36E5-A052-3D2E7DC6DF16 <7 5 4 3 1>
164 0 0xffffff7f83b05000 0x8000 0x8000 org.virtualbox.kext.VBoxUSB (5.1.14) BF0B350D-C893-37DF-82F0-BE86ABA49D26 <163 156 52 7 5 4 3 1>
165 0 0xffffff7f83b0d000 0x5000 0x5000 org.virtualbox.kext.VBoxNetFlt (5.1.14) 0291FFCC-8E46-3FFD-B674-BFA42D4E67E4 <156 7 5 4 3 1>
166 0 0xffffff7f83b12000 0x6000 0x6000 org.virtualbox.kext.VBoxNetAdp (5.1.14) EFBEE858-A3D7-3C61-86C0-F6AFDCA48229 <156 5 4 1>
View so-test_ruby-rio_573116@os x
$ rvm list
rvm rubies
jruby-9.1.5.0 [ x86_64 ]
=* ruby-2.3.1 [ x86_64 ]
# => - current
# =* - current && default
# * - default
You can’t perform that action at this time.