Skip to content

Instantly share code, notes, and snippets.

View omkar0001's full-sized avatar

omkar omkar0001

  • Instafrsh
  • Gurgaon
View GitHub Profile

Requirements:

  • Ability to change the settings from the backend for different states, without changing the backend.
    • name:
    • show_completions: Should we show the completions?
    • popup_on_every_session: Should we show the popup on every session?
    • status_code: Override the default status code.
    • message:
  • Initially should be able to support the below states.
    • ADMIN_NOT_AUTHORIZED
    • NOT_AUTHENTICATED

Pre-requisites

To change any style of an element on the home page

  • Edit {project_dir}/css/theme_additional.scss
  • Generate css file theme-additional.css
# Kubernetes usefulness.
alias kubeprod='kubectl config use-context gke_typegenie_europe-west1-d_production'
alias kubestag='kubectl config use-context gke_typegenie_europe-west1-b_staging'
eval $(kubectl completion zsh)
alias kubectx="kubectl config current-context"
# Shells into a service on the current kubernetes cluster
function kubesh {
local service=${1:?"Service name must be arg1"}
@omkar0001
omkar0001 / fzf-utils
Created October 6, 2019 21:25
FZF utils
#!/usr/bin/env zsh
# fd - cd to selected directory
fd() {
local dir
dir=$(find ${1:-.} -path '*/\.*' -prune \
-o -type d -print 2> /dev/null | fzf +m) &&
cd "$dir"
}
@omkar0001
omkar0001 / remove-docker-images.sh
Created October 13, 2018 11:42
Removes the docker images manually.
#!/bin/sh
set -e
dir="$1"
if [ -z "$dir" ]; then
{
echo 'This script is for destroying old /var/lib/docker directories more safely than'
echo ' "rm -rf", which can cause data loss or other serious issues.'
echo
Will create a config file for project. Name of the file would be trueai_config.py.
file: trueai_config.py
This file will contain all the config settings, related to the project. One of the main config settings, we will be storing
is, the elasticsearch indexes we are using. The value of the variable, depends on the environmental variable
TRUEAI_ENVIRONMENT
if getenv('TRUEAI_ENVIRONMENT', 'devel') == 'test':
ELASTICSEARCH_TRUEAI_INDEX = 'test_trueai'
else:
TrueAI Ltd is a London based Artificial Intelligence startup that automates customer support using Machine
Learning/Deep Learning. The company just closed its funding round and now looking to hire smart and strongly
motivated technical employees who are excited by the start-up environment and want to build the company together
with the founders. As a Front-end software engineer at True AI, you will specialize in building single-page web applications and chrome extensions, and responsible for the client facing side of the products.
More info:
* [Web page][1]
* [Pitch to Investors][2]
### Required Skills
server {
listen 443;
server_name webhook.idelivr.info www.webhook.idelivr.info;
ssl on;
ssl_certificate /etc/letsencrypt/live/webhook.idelivr.info/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/webhook.idelivr.info/privkey.pem;
access_log off;
location '/.well-known/acme-challenge' {
allow all;
default_type "text/plain";
root /usr/share/nginx/letsencrypt;
try_files $uri /$1;
}
# the domain we want to get the cert for;
# technically it's possible to have multiple of this lines, but it only worked
# with one domain for me, another one only got one cert, so I would recommend
# separate config files per domain.
domains = webhook.idelivr.info
# increase key size
rsa-key-size = 2048 # Or 4096
# the current closed beta (as of 2015-Nov-07) is using this server