Skip to content

Instantly share code, notes, and snippets.

View jamiros's full-sized avatar
:octocat:
git push

Og Ramos jamiros

:octocat:
git push
View GitHub Profile
@jamiros
jamiros / install+python_3_10.sh
Created May 30, 2024 15:17 — forked from dameyerdave/install+python_3_10.sh
Install Python 3.10 on RHEL/CENTOS
#!/usr/bin/env bash
sudo dnf install wget yum-utils make gcc openssl-devel bzip2-devel libffi-devel zlib-devel
# Ubuntu: sudo apt install -y wget yum-utils make gcc libssl-dev libbz2-dev libffi-dev zlib1g-dev
mkdir tmp
cd tmp
wget https://www.python.org/ftp/python/3.10.8/Python-3.10.8.tgz
tar xzf Python-3.10.8.tgz
cd Python-3.10.8
sudo ./configure --with-system-ffi --with-computed-gotos --enable-loadable-sqlite-extensions --enable-optimizations
@jamiros
jamiros / postmortem.md
Created March 23, 2023 23:36 — forked from mlafeldt/postmortem.md
Example Postmortem from SRE book, pp. 487-491

Shakespeare Sonnet++ Postmortem (incident #465)

Date

2015-10-21

Authors

  • jennifer
  • martym
@jamiros
jamiros / app.py
Created February 5, 2022 15:50
Redis Python 003
import redis
rdb = redis.Redis()
dict2 = {
"id":"dead-beef-dead-beef",
}
values = []
for i in rdb.scan_iter("key*"):
@jamiros
jamiros / app.py
Created February 5, 2022 15:45
Redis Python 002
import redis
rdb = redis.Redis()
dict2 = {
"id":"dead-beef-dead-beef",
}
values = []
@jamiros
jamiros / app.py
Created February 5, 2022 15:18
Redis Python 001
import redis
rdb = redis.Redis()
dict = {
"key1": "Oh, hello there!",
"key2": "How are you?",
"key3": "Good, good."
}
@jamiros
jamiros / docker-compose.yml
Last active December 12, 2021 21:15
docker-compose.yml for MERN application
version: "3"
services:
react-app:
image: react-app
stdin_open: true
ports:
- "3000:3000"
networks:
- app-name
api-server:
@jamiros
jamiros / install.ps1
Created December 12, 2021 20:48
Install needed resources and run docker container
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
choco install package.config -y
nvm install 16.13.0
nvm use 16.13.0
make
@jamiros
jamiros / package.config
Created December 12, 2021 20:44
Chocolatey package.config file
<?xml version="1.0" encoding="UTF-8"?>
<packages>
<package id="make" />
<package id="yarn" />
<package id="nodejs" />
<package id="nvm"/>
</packages>
@jamiros
jamiros / Dockerfile
Created December 12, 2021 20:41
Dockerfile for nodejs / react app
FROM node:16.13.0-alpine
WORKDIR /usr/src/app
COPY ./package.json ./
COPY ./package-lock.json ./
RUN npm install
COPY . .
@jamiros
jamiros / Makefile
Last active December 12, 2021 20:38
Makefile to build docker containers and run on Docker
all: build-client build-server run
build-client:
docker build -t react-app ./client
build-server:
docker build -t api-server ./server
run:
docker-compose up -d