Skip to content

Instantly share code, notes, and snippets.

View liorkesos's full-sized avatar
😎
chillin

Lior Kesos liorkesos

😎
chillin
View GitHub Profile
@liorkesos
liorkesos / GraphBuilderContibutionSegmentation.ipynb
Last active September 8, 2024 09:43
GraphBuilder Contribution segmentation
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@liorkesos
liorkesos / response format
Created October 25, 2021 11:29
daml reponse
[
{
"admin": "Admin",
"disapproved": [],
"geo": {
"_1": "1",
"_2": "1"
},
"signed": [],
"content": "aron2",
<html>
<head>
<script> (function(d,t) { var BASE_URL="https://app.chatwoot.com"; var g=d.createElement(t),s=d.getElementsByTagName(t)[0]; g.src=BASE_URL+"/packs/js/sdk.js"; s.parentNode.insertBefore(g,s); g.onload=function(){ window.chatwootSDK.run({ websiteToken: 'Fdm5ypwCWKm8fAEpf9w2Rqsm', baseUrl: BASE_URL }); } })(document,"script"); window.chatwootSettings = { type: 'expanded_bubble', launcherTitle: 'support by hossted' } window.addEventListener('chatwoot:ready', function () { // Use window.chatwoot here // ... window.chatwoot.setCustomAttributes({ serverOffering: "sonarqube", version: "3.16", existingUserId: "liorkesos" // You can pass any key value pair here. // Value should either be a string or a number. // You need to flatten nested JSON structure while using this function }); }); </script>
</head>
<body>
</body>
<h1>lala</lala>
</html>
version: '2'
services:
app:
build: ./
image: root
environment:
PORT: 3000
MONGODB_URI: mongodb://root:password123@mongo/icu?authSource=admin
ELASTICSEARCH_IP: elasticsearch
<html lang="en-US">
<body class="onScroll">
<head>
<title> Welcome to your HOSSTED instance</title>
<link rel="icon" href="https://hossted.com/wp-content/themes/linnovate/favicon.png">
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&amp;family=Open+Sans:ital,wght@0,300;0,400;0,600;0,700;0,800;1,300;1,400;1,600;1,700;1,800&amp;display=swap" rel="stylesheet">
<link rel="stylesheet" id="wp-block-library-css" href="https://hossted.com/wp-includes/css/dist/block-library/style.min.css?ver=39c883ab0aa568fd3c1af5ae81f60192" type="text/css" media="all">
<link rel='stylesheet' id='wpautoterms_css-css' href='https://hossted.com/wp-content/plugins/auto-terms-of-service-and-privacy-policy/css/wpautoterms.css?ver=39c883ab0aa568fd3c1af5ae81f60192' type='text/css' media='all' />
<link rel='stylesheet' id='contact-form-7-css' href='https://hossted.com/wp-content/plugins/contact-form-7/includ
@liorkesos
liorkesos / deb-deps.sh
Last active April 6, 2021 20:29
Download apt and
#!/bin/bash
PACKAGES="ntp realmd libnss-sss libpam-sss sssd sssd-tools adcli samba-common-bin oddjob oddjob-mkhomedir packagekit"
DATEDIR=`date +%d%m%Y`
mkdir $DATEDIR
cd $DATEDIR
for pkg in $PACKAGES;
do
apt-get download $pkg;
for i in $(apt-cache depends $pkg \
| grep -E 'Depends|Recommends|Suggests' \
@liorkesos
liorkesos / docker-ce.sh
Last active May 6, 2021 08:14
docker-ce installation on ubuntu-20.04
#!/bin/bash
# Install prereqs
sudo apt-get update
sudo apt-get install \
apt-transport-https \
ca-certificates \
curl \
gnupg \
lsb-release
@liorkesos
liorkesos / SSL script
Last active January 23, 2022 18:36
SSL script
#!/bin/bash
DOMAIN="k3s.lab"
if [ $# -eq 0 ]; then
echo "No arguments provided for your domain - $DOMAIN"
exit 1
fi
PREFIX=$1
FQDN="$PREFIX.$DOMAIN"
SUBJ="/C=IL/ST=Shfela/L=Ashdod/O=IT/CN=$FQDN"
#!/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 \