Skip to content

Instantly share code, notes, and snippets.

View liorkesos's full-sized avatar
😎
chillin

Lior Kesos liorkesos

😎
chillin
View GitHub Profile
#!/bin/bash
sudo apt-get update
sudo apt-get install \
apt-transport-https \
ca-certificates \
curl \
gnupg-agent \
software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository \
I think we should have a class called posInterface
cloverInterface will inherit and implement its own stuff
{
onboardingStep: {
type: Number,
default: 0
},
whatAreYou: {
type: String,
default: 'Freelancer'
},
whatYouDo: String,
@liorkesos
liorkesos / r
Created March 4, 2019 10:22
redis
$conf[‘redis_client_interface’] = ‘Predis’;
$conf[‘redis_client_host’] = ‘<redisCacheName.redis.cache.windows.net>’;
$conf[‘redis_client_port’] = 6379;
$conf[‘redis_client_password’] = ‘<Primary Access Key>’;
$conf[‘lock_inc’] = ‘sites/all/modules/contrib/redis/redis.lock.inc’;
$conf[‘cache_backends’][] = ‘sites/all/modules/contrib/redis/redis.autoload.inc’;
$conf[‘cache_default_class’] = ‘Redis_Cache’;
var redis = require('redis');
var app = require('http').createServer();
io = require('socket.io').listen(app);
app.listen(8080);
io.sockets.on('connection', function (socket) {
const subscribe = redis.createClient(undefined, "redis.demos.cloud.linnovate.net")
const pub = redis.createClient(undefined, "redis.demos.cloud.linnovate.net")
@liorkesos
liorkesos / sport.service.js
Created December 18, 2017 07:17
A mean powered service that changes the meta tags according to state changes.
'use strict';
angular.module('mean.sport1').factory('Sport1', ['$resource', '$http', '$rootScope', '$q', '$location',
function($resource, $http, $rootScope, $q, $location) {
var dataConfig;
return {
getData: function(url) {
var deferred = $q.defer();
$http({
@liorkesos
liorkesos / sysinfo-elementor
Created August 22, 2017 15:20
System infor for elementor
== Server Environment ==
Operating System: Linux
Software: Apache/2.4.18 (Ubuntu)
MySQL version: 5.7.19
PHP Version: 7.0.22-0ubuntu0.16.04.1
PHP Max Input Vars: 1000
PHP Max Post Size: 8M
GD Installed: Yes
Elementor Library: Connected
@liorkesos
liorkesos / notation.json
Last active March 5, 2017 19:56
notation object
{
"ref":"Shabbat.4b.1",
"index":"3",
"range":[5,9],
"marking":"nimuk"
}
<VirtualHost *:80>
# The ServerName directive sets the request scheme, hostname and port that
# the server uses to identify itself. This is used when creating
# redirection URLs. In the context of virtual hosts, the ServerName
# specifies what hostname must appear in the request's Host: header to
# match this virtual host. For the default virtual host (this file) this
# value is not decisive as it is used as a last resort host regardless.
# However, you must set it for any further virtual host explicitly.
ServerName stage.danhotels.com