Skip to content

Instantly share code, notes, and snippets.

View balvinder294's full-sized avatar
😎
Working Remotey

Balvinder Singh balvinder294

😎
Working Remotey
View GitHub Profile
@balvinder294
balvinder294 / farming.txt
Created February 28, 2022 07:38
Farming votes
vote_from='michelangelo3' vote_to='dotwin1981' weight=25%
vote_from='michelangelo3' vote_to='ozelot47' weight=100%
vote_from='hornet-on-tour' vote_to='michelangelo3' weight=50%
vote_from='jeenger' vote_to='michelangelo3' weight=100%
vote_from='ozelot47' vote_to='michelangelo3' weight=25%
vote_from='michelangelo3' vote_to='elkezaksek' weight=100%
vote_from='dotwin1981' vote_to='michelangelo3' weight=100%
vote_from='jeenger' vote_to='michelangelo3' weight=25%
vote_from='michelangelo3' vote_to='elkezaksek' weight=25%
vote_from='michelangelo3' vote_to='ozelot47' weight=100%
@balvinder294
balvinder294 / main.py
Created January 18, 2022 19:04
Sample script to Create api from falcon and manipulate json from a url response
#author @tekraze
import falcon
import requests
class Hello:
def on_get(self, req, resp):
# we just send back a string here
resp.media = 'hello'
@balvinder294
balvinder294 / Dockerfile
Created January 18, 2022 17:18
Docker file to dockerize Falcon Python Api or app | https://tekraze.com
FROM python:3.11.0a3-alpine3.15
EXPOSE 8000
# Install gunicorn & falcon
RUN pip install gunicorn requests falcon --trusted-host=pypi.python.org --trusted-host=pypi.org --trusted-host=files.pythonhosted.org
# Add demo app
COPY ./app /app
WORKDIR /app
@balvinder294
balvinder294 / coal.py
Created January 18, 2022 17:17
Coal API for blurt.blog | https://blurt.blog/@tekraze
#author @tekraze
import falcon
import requests
coalList = "https://gitlab.com/blurt/openblurt/coal/-/raw/master/coal.json"
class CoalList:
def on_get(self, req, resp):
@balvinder294
balvinder294 / keybase.md
Created December 16, 2021 16:27
Keybase identificatiob

Keybase proof

I hereby claim:

  • I am balvinder294 on github.
  • I am tekraze (https://keybase.io/tekraze) on keybase.
  • I have a public key ASDABlNd8ywIvGd_SlH_qsL9JKh5jafX6U6Clj3SooNelwo

To claim this, I am signing this object:

@balvinder294
balvinder294 / react-resume-deploy.yml
Last active September 9, 2021 11:38
React-Resume Deployment file for Akash Network De Cloud
---
version: "2.0"
services:
web:
image: balvinder294/react-resume:1.0.0
expose:
- port: 80
as: 80
to:
@balvinder294
balvinder294 / jenkins.yaml
Created June 24, 2021 11:36
Jenkins Deployment file using SDL Akash DeCloud https://docs.akash.network/reference/sdl
---
version: "2.0"
services:
jenkins:
image: jenkins/jenkins:lts-jdk11
expose:
- port: 50000
to:
- global: true
@balvinder294
balvinder294 / taisun.yaml
Created June 24, 2021 11:35
Taisun Deployment file using SDL Akash DeCloud https://docs.akash.network/reference/sdl
---
version: "2.0"
services:
web:
image: linuxserver/taisun
expose:
- port: 3000
as: 80
to:
@balvinder294
balvinder294 / webtop.yml
Created June 24, 2021 11:34
Webtop Deployment file using SDL Akash DeCloud https://docs.akash.network/reference/sdl
---
version: "2.0"
services:
web:
image: ghcr.io/linuxserver/webtop
env:
- PUID=1000
- PGID=1000
- TZ=America/New_York
@balvinder294
balvinder294 / openssh-server.yml
Created June 24, 2021 11:32
OpenSSH-Server deploy file for Akash De-Cloud using SDL https://docs.akash.network/reference/sdl
---
version: "2.0"
services:
web:
image: ghcr.io/linuxserver/openssh-server
expose:
- port: 2222
as: 80
to: