Skip to content

Instantly share code, notes, and snippets.

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

Piotr Mocan PiotrMocan

🏠
Working from home
View GitHub Profile
@PiotrMocan
PiotrMocan / kuber.yaml
Created February 7, 2024 19:55
setup kuber cluster
#!/bin/bash
# Update the system
sudo apt-get update
# Install Docker
sudo apt-get install -y docker.io
# Install apt-transport-https and curl
sudo apt-get install -y apt-transport-https curl
apiVersion: v1
kind: Service
metadata:
name: rails-app-service
spec:
selector:
app: rails-app
ports:
- name: http
port: 80
apiVersion: apps/v1
kind: Deployment
metadata:
name: rails-app
spec:
replicas: 1
selector:
matchLabels:
app: rails-app
template:
@PiotrMocan
PiotrMocan / Player.cpp
Created August 16, 2023 06:02
cryengine third person camera controller
// Copyright 2016-2020 Crytek GmbH / Crytek Group. All rights reserved.
#include "StdAfx.h"
#include "Player.h"
#include "Bullet.h"
#include "SpawnPoint.h"
#include "GamePlugin.h"
#include <CryRenderer/IRenderAuxGeom.h>
#include <CrySchematyc/Env/Elements/EnvComponent.h>
#include <CryCore/StaticInstanceList.h>
@PiotrMocan
PiotrMocan / MySql-5.6-installation guide.md
Created November 27, 2022 12:05 — forked from vinodpandey/MySql-5.6-installation guide.md
Install MySQL 5.6.xx on Ubuntu 18.04 & Ubuntu 20.04

MySQL Download URL

https://dev.mysql.com/get/Downloads/MySQL-5.6/mysql-5.6.46-linux-glibc2.12-x86_64.tar.gz

Open the terminal and follow along:

  • Uninstall any existing version of MySQL
sudo rm /var/lib/mysql/ -R
@PiotrMocan
PiotrMocan / mysql2-m1.md
Created August 16, 2022 10:57 — forked from fernandoaleman/mysql2-m1.md
How to install mysql2 gem on m1 Mac

Problem

Installing mysql2 gem errors on m1 Mac.

Solution

Make sure mysql, openssl and zstd are installed on Mac via Homebrew.

brew install mysql openssl zstd