Skip to content

Instantly share code, notes, and snippets.

View kinsleykajiva's full-sized avatar
🏠
Working from home

Kinsley Kajiva kinsleykajiva

🏠
Working from home
  • Africa
  • 01:46 (UTC +02:00)
View GitHub Profile
@kinsleykajiva
kinsleykajiva / run.json
Created April 20, 2023 08:00
Jetbrains Fleet editor - How to run a Springboot App . Create a .fleet folder then create run.json file
{
"configurations": [
{
"type": "maven",
"name": "Run-Service",
"tasks": ["spring-boot:run"],
},
]
}
@kinsleykajiva
kinsleykajiva / run.json
Created April 20, 2023 07:57
Jetbrains Fleet editor - How to run a Quarkus App . Create a .fleet folder then creathe run.json file
{
"configurations": [
{
"type": "maven",
"name": "RunService",
"tasks": ["compile","quarkus:dev"," -Ddebug=5012"],
},
]
}
@kinsleykajiva
kinsleykajiva / installation guide.md
Last active August 21, 2022 11:23
How to Install Janus Gateway on Ubuntu/Debian OS.

Hi, here are the steps that worked for me , 2022 August .
here official guide is https://github.com/meetecho/janus-gateway
This seeks to help those who have had a problem in installing based on the other guides so this may be an option. By the way this will install the latest version of janus [Assuming branch is master] .
Make sure you have c++ base compiler or c++ env are set globally other most builds will fail . make sure CMAKE_CXX_COMPILER is found .

run the following steps

  • sudo aptitude install libmicrohttpd-dev
  • sudo aptitude install libmicrohttpd-dev
@kinsleykajiva
kinsleykajiva / bitbucket-pipelines.yml
Created October 7, 2019 08:05
This is a pipeline that worked for me on bitbucket.For ftp i didnt add public folder to the host name it just worked still
image: vesica/php73
pipelines:
default:
- step:
deployment: production
caches:
- composer
script:
- apt-get update
@kinsleykajiva
kinsleykajiva / Default (Windows).sublime-keymap
Created March 27, 2019 17:09
Kinsley Kajiva Sublime Text 3 keyboard short cuts
[
{"keys" : ["ctrl+k"], "command" : "toggle_side_bar" } ,
{"keys" : ["alt+d"], "command" : "toggle_side_bar" } ,
{ "keys" : ["alt+c"], "command" : "power_cursor_add" },
{ "keys": ["alt+q"], "command": "close" },
{ "keys" : ["ctrl+w"], "command" : "expand_selection", "args" : {"to" : "word"} },
{ "keys" : ["ctrl+alt+u"], "command" : "upper_case" },
{ "keys" : ["ctrl+alt+l"], "command" : "lower_case" },
{ "keys" : ["ctrl+alt+j"], "command" : "reindent" } ,
{ "keys" : ["ctrl+shift+a"], "command" : "align_tab","args" : {"live_preview" : true}} ,
@kinsleykajiva
kinsleykajiva / Preferences.sublime-settings
Created March 27, 2019 17:07
Kinsley Kajiva Sublime Text 3 Settings Template File
{
"auto_complete": true,
"auto_complete_delay": 50,
"auto_complete_selector": "source - comment",
"auto_complete_size_limit": 4194304,
"auto_complete_triggers":
[
{
"characters": "<",
"selector": "text.html"
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
@kinsleykajiva
kinsleykajiva / group-objects-by-property.md
Created March 25, 2019 02:32 — forked from JamieMason/group-objects-by-property.md
Group Array of JavaScript Objects by Key or Property Value

Group Array of JavaScript Objects by Key or Property Value

Implementation

const groupBy = key => array =>
  array.reduce((objectsByKeyValue, obj) => {
    const value = obj[key];
    objectsByKeyValue[value] = (objectsByKeyValue[value] || []).concat(obj);
    return objectsByKeyValue;
<script src="https://cdn.jsdelivr.net/lodash/4/lodash.min.js"></script>
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="Answer for http://stackoverflow.com/questions/31681732/lodash-get-duplicate-values-from-an-array">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
@kinsleykajiva
kinsleykajiva / Movable JavaFX Window.java
Created September 12, 2017 05:34 — forked from k33ptoo/Movable JavaFX Window.java
Renders a borderless/underdecorated window movable/dragable
/*
* The MIT License
*
* Copyright 2017 keeptoo.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is