Skip to content

Instantly share code, notes, and snippets.

View sedflix's full-sized avatar
🏠
Working from home

siddharth sedflix

🏠
Working from home
View GitHub Profile
@sedflix
sedflix / cloudbuild-chages.yaml
Last active August 11, 2023 08:36
Helm Chart Publish using Cloud Build
steps:
- name: 'eu.gcr.io/king-container-registry-shared/custom-cloud-builders/helm:latest'
dir: <where-the-chart-is>
id: package-push
script: >
helm dependency build ;
NAME=`helm package . | awk -F "/" '{print $NF}' -`;
helm push $NAME oci://eu.gcr.io/<artifcat-registry-name>/<reposity-name>/
options:
workerPool: <worker-pool-user>
apiVersion: v1
kind: Namespace
metadata:
name: external
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: tinyproxy
namespace: external
---
# the node doesn't exist
k get nodes | grep ip-10-111-38-8.ap-south-1.compute.internal
<blank>
calico-kube-controllers log:
022-10-26 17:06:56.985 [INFO][1] ipam.go 1174: Calico Node referenced in IPAM data does not exist error=resource does not exist: Node(<node-name>) with error: nodes "<node-name>" not found
...
...
│ 2022-10-26 17:09:13.843 [INFO][1] ipam_block_reader_writer.go 334: Block must be empty but is not empty, refusing to remove affinity. host="<node-name>" subnet="subnet/cidr" │
│ 2022-10-26 17:09:13.882 [ERROR][1] ipam.go 1101: Failed to release block affinities for node calicoNode="<node-anme>" error=block 'subnet/cidr' is not empty
@sedflix
sedflix / README.md
Last active April 9, 2020 14:12 — forked from shreeya13garg/README.md
Progress Report For Cosmos for RGSoc

try

edit

@sedflix
sedflix / get_all_ssh_hosts_on_lan.py
Created January 20, 2020 18:40
Goes through the given ip address range, tries to ssh and if successful does a ssh-copy-id and outputs the a list of ips
#!/usr/bin/env python3
from __future__ import (absolute_import, division, print_function,
unicode_literals)
import json
import socket
import subprocess
import paramiko
import sys
import os
```
D/ULANISTOPAUDIO: play:
V/RTag: CMediaManager.playermanager.play:
D/PLS: trackNarration: 52
I/ASR: Update Words Spoken: tamu |
D/ULANISTOPAUDIO: incWord: numWordsCurPage = 6
D/CQn_ViewManagerASB: setHighLight:
I/ASR: RIGHT
D/ULANISTOPAUDIO: postDelayedTracker: sana 187 83
D/PLS: trackNarration: 52
@sedflix
sedflix / run_allennlp_server.sh
Created June 7, 2018 12:59
One line to start allen nlp server on your system.
sudo docker run -d -p 80:80 geeksid/allennlp allennlp serve --port 80
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#include <stdlib.h>
#include <xmmintrin.h>
#include <stdio.h>
#include <sys/time.h>
// gcc -DCLS=$(getconf LEVEL1_DCACHE_LINESIZE) -fopenmp idk_matrix.c
// the nxn matrix you want
#define N 1024
// CLS is Cache Line Size