Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Kinsley Kajiva kinsleykajiva

🏠
Working from home
  • Africa
View GitHub Profile
@kinsleykajiva
kinsleykajiva / installation guide.md
Last active Aug 21, 2022
How to Install Janus Gateway on Ubuntu/Debian OS.
View installation guide.md

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 Oct 7, 2019
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
View bitbucket-pipelines.yml
image: vesica/php73
pipelines:
default:
- step:
deployment: production
caches:
- composer
script:
- apt-get update
@kinsleykajiva
kinsleykajiva / Default (Windows).sublime-keymap
Created Mar 27, 2019
Kinsley Kajiva Sublime Text 3 keyboard short cuts
View Default (Windows).sublime-keymap
[
{"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 Mar 27, 2019
Kinsley Kajiva Sublime Text 3 Settings Template File
View Preferences.sublime-settings
{
"auto_complete": true,
"auto_complete_delay": 50,
"auto_complete_selector": "source - comment",
"auto_complete_size_limit": 4194304,
"auto_complete_triggers":
[
{
"characters": "<",
"selector": "text.html"
View index.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 Mar 25, 2019 — forked from JamieMason/group-objects-by-property.md
Group Array of JavaScript Objects by Key or Property Value
View group-objects-by-property.md

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;
View index.html
<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 Sep 12, 2017 — forked from k33ptoo/Movable JavaFX Window.java
Renders a borderless/underdecorated window movable/dragable
View Movable JavaFX Window.java
/*
* 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
@kinsleykajiva
kinsleykajiva / JavaFX TC .css
Created Sep 12, 2017 — forked from k33ptoo/JavaFX TC .css
Contains basic css for customizing a TableView and Charts.
View JavaFX TC .css
.table-view .column-header,
.table-view .column-header-background .filler {
-fx-background-color: #6622CC;
}
.table-view .column-header .label{
-fx-text-fill: white;
-fx-font-weight: bold;
-fx-alignment: CENTER_LEFT;
}
.table-view .cell{
View password_pattern.txt
((?=.*\\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[@#$%-_.]).{6,32})