Skip to content

Instantly share code, notes, and snippets.

View ksdme's full-sized avatar
⚔️

Kilari Teja ksdme

⚔️
View GitHub Profile
apiVersion: apps/v1
kind: Deployment
metadata:
name: hello-deployment
spec:
replicas: 2
selector:
matchLabels:
app: hello
template:
@ksdme
ksdme / description
Last active February 20, 2022 22:46
<p>
The <b>Lord Chancellor</b>, formally the <b>Lord High Chancellor of Great Britain</b>,
is the highest-ranking among the Great Officers of State in England in the United Kingdom,
nominally outranking the prime minister. The lord chancellor is appointed by the sovereign
on the advice of the prime minister. Prior to their Union into the Kingdom of Great Britain,
there were separate lord chancellors for the Kingdom of England and the Kingdom of Scotland;
there were lord chancellors of Ireland until 1922.
</p>
<p>
This file has been truncated, but you can view the full file.
{
"Basic Latin": [
{
"name": "<control>: null",
"decimal": "0",
"hex": "0000"
},
{
"name": "<control>: start of heading",
"decimal": "1",
@ksdme
ksdme / statically.ts
Created June 16, 2021 10:30
Statically CDN wrapper to resize image, reduce image quality or serve image using webp.
import join from 'url-join'
import parse from 'url-parse'
interface StaticallyImageOperations {
webp?: boolean
width?: number
height?: number
quality?: number
}
@ksdme
ksdme / s3.ts
Last active June 16, 2021 09:59
Downloads a file from a given url resource and upload it to a specified S3 bucket. Default to picking a random name for the file and making it public-read. Inspired from https://github.com/bookyacom/tos3/blob/master/index.js
import assert from 'assert'
import AWS from 'aws-sdk'
const {
AWS_S3_ENDPOINT_URL,
AWS_ACCESS_KEY_ID,
AWS_SECRET_ACCESS_KEY,
} = process.env
assert(Boolean(AWS_S3_ENDPOINT_URL))
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 2.
title,currency,image_url,product_url,original_price,price,availability,color,description,brand,condition,ean,gender,gtin,model,size,sku,stock,categories,subcategories,weight,additional_image_link,attribute_title
Maison Baum Stiletto Ambrosia Schwarz Wildleder 36,EUR,https://cdn.shopify.com/s/files/1/0014/3789/2695/products/maisonbaum_ambrosia_0_h003su999_profil1.jpg?v=1607161611,http://maisonbaum.com/products/ambrosia-10cm?variant=29545888219223,,265,Yes,Schwarz Wildleder,"<h5>Designt in Paris. Nachhaltig produziert in Portugal.</h5><div class=""text-wrap tlid-copy-target""><div class=""text-wrap tlid-copy-target""><div tabindex=""0"" class=""result-shield-container tlid-copy-target""><p><span>Mit seinem patentierten Fußbett und dem v-förmigen Zehenausschnitt wird dieser feminine Pumps schnell zu Deinem Liebling.</span> <span>Nachhaltig und minimalistisch, dieses Design kommt nie aus der Mode. Zwei Paar halt-gebende Fesselriemen inklusive.</span></p><p><span class=""german-pdp-video""><iframe src=""https://ww
This file has been truncated, but you can view the full file.
<!DOCTYPE html> <html lang="en" class="js-enabled __full _header-thick _header-sticky"><!--
Page saved with SingleFile
url: https://blog.wolfram.com/2021/03/24/the-solution-of-the-zodiac-killers-340-character-cipher/
saved date: Fri Mar 26 2021 16:24:40 GMT+0000 (Coordinated Universal Time)
--><head><meta charset="utf-8">
<!-- begin framework head en -->
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
@ksdme
ksdme / __init__.py
Last active December 29, 2020 09:08
Wrapper around DigitalEyes UPC Lookup API
# Based off of https://gist.github.com/julzhk/f94948012abd8645172eddbad5207a67
import os
import base64
import hashlib
import requests
import hmac
def get_default_app_key():
return os.environ.get('DIGIT_EYES_KEY_K')
from time import sleep
from functools import wraps
from multiprocessing import Manager
from multiprocessing import Process
def with_timeout(duration):
def _decorator_base(func):
def _func_worker(*args, returns, **kwargs):
returns.append(func(*args, **kwargs))
(function() {
const style = document.createElement('style');
style.innerHTML = `
.theater .js-jukebox-list {
display: none !important;
}
.theater .current__info {
display: none !important;