Skip to content

Instantly share code, notes, and snippets.

View rosharp's full-sized avatar
🎯
Focusing

Vitaly Bekshnev rosharp

🎯
Focusing
View GitHub Profile
About the job
Gcore in a nutshell:
Our mission is to make the Internet faster, more reliable, and more secure.
Gcore is a powerful leader in the public cloud and edge computing, content delivery, hosting, and security solutions. Headquartered in Luxembourg, with offices around the world, the company provides the infrastructure to global leaders in numerous industries.
Our company has over 400 employees from more than 30 locations. Diversity and inclusivity are at the (G)core of our business. We believe having a diverse workforce is crucial if we want to deliver on our mission to build a better Internet.
@rosharp
rosharp / log4js.json
Created December 19, 2022 13:28
Configuration file for log4js
{
"appenders": {
"access": {
"type": "dateFile",
"filename": "log/access.log",
"pattern": "-yyyy-MM-dd",
"category": "http"
},
"app": {
"type": "file",
Dec 19, 2022 2:34:41 AM org.apache.catalina.core.ApplicationContext log
INFO: Spring WebApplicationInitializers detected on classpath: [com.a1qa.Initializer@407ae63]
Dec 19, 2022 2:35:01 AM org.apache.catalina.core.ApplicationContext log
INFO: Spring WebApplicationInitializers detected on classpath: [com.a1qa.Initializer@598ca992]
Dec 19, 2022 2:35:02 AM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring FrameworkServlet 'dispatcher'
Dec 19, 2022 2:35:04 AM org.apache.catalina.core.ApplicationContext log
INFO: No Spring WebApplicationInitializer types detected on classpath
Dec 19, 2022 2:35:05 AM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring root WebApplicationContext
<body>
<h1>HTTP Status 500 – Internal Server Error</h1>
<hr class="line" />
<p><b>Type</b> Exception Report</p>
<p><b>Message</b> Handler processing failed; nested exception is java.lang.ExceptionInInitializerError</p>
<p><b>Description</b> The server encountered an unexpected condition that prevented it from fulfilling the request.
</p>
<p><b>Exception</b>
<pre>org.springframework.web.util.NestedServletException: Handler processing failed; nested exception is java.lang.ExceptionInInitializerError
org.springframework.web.servlet.DispatcherServlet.triggerAfterCompletionWithError(DispatcherServlet.java:1303)
@rosharp
rosharp / localhost.2022-12-17-docker-cli.log
Created December 17, 2022 11:37
Docker-cli output on POST API request
docker-kits-web-tomcat-1 | Dec 17, 2022 11:34:28 AM org.hibernate.ejb.HibernatePersistence logDeprecation
docker-kits-web-tomcat-1 | WARN: HHH015016: Encountered a deprecated javax.persistence.spi.PersistenceProvider [org.hibernate.ejb.HibernatePersistence]; use [org.hibernate.jpa.HibernatePersistenceProvider] instead.
docker-kits-web-tomcat-1 | Dec 17, 2022 11:34:28 AM org.hibernate.ejb.HibernatePersistence logDeprecation
docker-kits-web-tomcat-1 | WARN: HHH015016: Encountered a deprecated javax.persistence.spi.PersistenceProvider [org.hibernate.ejb.HibernatePersistence]; use [org.hibernate.jpa.HibernatePersistenceProvider] instead.
docker-kits-web-tomcat-1 | Dec 17, 2022 11:34:28 AM org.hibernate.ejb.HibernatePersistence logDeprecation
docker-kits-web-tomcat-1 | WARN: HHH015016: Encountered a deprecated javax.persistence.spi.PersistenceProvider [org.hibernate.ejb.HibernatePersistence]; use [org.hibernate.jpa.HibernatePersistenceProvider] instead.
docker-kits-web-tomcat-1 | Dec 17, 2022 11:34:28 AM or
@rosharp
rosharp / localhost.2022-12-17.log
Created December 17, 2022 09:57
Handler processing failed; nested exception is java.lang.NoClassDefFoundError: Could not initialize class com.a1qa.common.utils.HibernateUtil
Dec 17, 2022 9:31:06 AM org.apache.catalina.core.ApplicationContext log
INFO: Spring WebApplicationInitializers detected on classpath: [com.a1qa.Initializer@407ae63]
Dec 17, 2022 9:31:07 AM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring FrameworkServlet 'dispatcher'
Dec 17, 2022 9:31:10 AM org.apache.catalina.core.ApplicationContext log
INFO: No Spring WebApplicationInitializer types detected on classpath
Dec 17, 2022 9:31:10 AM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring root WebApplicationContext
Dec 17, 2022 9:31:11 AM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring FrameworkServlet 'mvc-dispatcher'
@rosharp
rosharp / MochaTestWithAnnotations.js
Created November 23, 2022 08:22 — forked from sauceaaron/MochaTestWithAnnotations.js
Get test name and status in before / after hooks with mocha.js
var assert = require("assert");
describe("tests with annotations", function()
{
it("should print the test name in a before hook", function()
{
assert(true);
});
beforeEach("annotate before", function beforeEach()
@rosharp
rosharp / flatpak-dmenu.md
Created November 2, 2022 12:16 — forked from curioswati/flatpak-dmenu.md
To run flatpak installed apps from dmenu.

To run a flatpak app from dmenu, you can create a symlink for the app in /usr/bin. You can find the flatpak apps binary link in /var/lib/flatpak/exports/bin/ on ubuntu. E.g. to run Rocket Chat (installed from flatpak via software center), you can do something like this:

sudo ln -s /var/lib/flatpak/exports/bin/chat.rocket.RocketChat /usr/bin/rocket-chat

This way you will be able to find it in the dmenu.

Resources:

@rosharp
rosharp / bspwm.md
Created October 20, 2022 11:28 — forked from amit08255/bspwm.md
Bspwm Cheatsheet

bspwm/sxhkd cheat sheet

Common keys

@rosharp
rosharp / setChromeOptions.js
Created October 18, 2022 10:22 — forked from anandsunderraman/setChromeOptions.js
Selenium Web Driver Set Chrome Options
//import the selenium web driver
var webdriver = require('selenium-webdriver');
var chromeCapabilities = webdriver.Capabilities.chrome();
//setting chrome options to start the browser fully maximized
var chromeOptions = {
'args': ['--test-type', '--start-maximized']
};
chromeCapabilities.set('chromeOptions', chromeOptions);
var driver = new webdriver.Builder().withCapabilities(chromeCapabilities).build();