Skip to content

Instantly share code, notes, and snippets.

View IAbuElRuzz's full-sized avatar
🛰️
Work

IAbuElRuzz IAbuElRuzz

🛰️
Work
  • Rome, Italy
View GitHub Profile
@hyperupcall
hyperupcall / settings.jsonc
Last active October 11, 2025 12:44
VSCode config to disable popular extensions' annoyances (telemetry, notifications, welcome pages, etc.)
// I'm tired of extensions that automatically:
// - show welcome pages / walkthroughs
// - show release notes
// - send telemetry
// - recommend things
//
// This disables all of that stuff.
// If you have more config, leave a comment so I can add it!!
{
@blues-man
blues-man / workshop_debug_4.6.sh
Last active September 19, 2023 14:12
Script to deploy the whole Getting Started with OpenShift 4.6 for Developers workshop
#!/bin/bash
# Project
oc new-project workshop
# Parksmap
oc new-app quay.io/openshiftroadshow/parksmap:1.3.0 --name=parksmap -l 'app=workshop,component=parksmap,role=frontend,app.kubernetes.io/part-of=workshop'
oc create route edge parksmap --service=parksmap
oc policy add-role-to-user view -z default
oc rollout restart deploy/parksmap
# Nationalparks
oc new-app java~https://github.com/openshift-roadshow/nationalparks.git --name nationalparks -l 'app=workshop,component=nationalparks,role=backend,app.kubernetes.io/part-of=workshop,app.kubernetes.io/name=java'
@nicobytes
nicobytes / type-orm_nestjs.md
Last active April 27, 2024 20:28
Steps: TypeOrm + NestJs

1. Create project

npm i -g @nestjs/cli
nest new tasks-api
npm run start:dev

2. Overview and delete files

3. Create module

nest g mo tasks
@jlmelville
jlmelville / linting.md
Last active March 25, 2025 15:36
Setting up Python linting with VS Code

I set up my linters for use with VS Code, so I only use the linting tools that can be integrated into the Problems tab, but these can be used from the command line. I have attempted to avoid having different tools give duplicate warnings, but this is a work in progress. The VS code settings.json is at https://gist.github.com/jlmelville/74d8fe778b0d89574e82ffe47c1e49ae.

Create a linting-requirements.txt file:

# this also installs pylint and pycodestyle
bandit
prospector[with_pyroma]
flake8
black
@klaaspieter
klaaspieter / ASS.md
Created June 22, 2017 07:59 — forked from anonymous/ASS.md
Acronyms Seriously Suck - Elon Musk

From time to time, Musk will send out an e-mail to the entire company to enforce a new policy or let them know about something that's bothering him. One of the more famous e-mails arrived in May 2010 with the subject line: Acronyms Seriously Suck:

There is a creeping tendency to use made up acronyms at SpaceX. Excessive use of made up acronyms is a significant impediment to communication and keeping communication good as we grow is incredibly important. Individually, a few acronyms here and there may not seem so bad, but if a thousand people are making these up, over time the result will be a huge glossary that we have to issue to new employees. No one can actually remember all these acronyms and people don't want to seem dumb in a meeting, so they just sit there in ignorance. This is particularly tough on new employees.

That needs to stop immediately or I will take drastic action - I have given enough warning over the years. Unless an acronym is approved by me, it should not enter the SpaceX glossary.

@dreikanter
dreikanter / encrypt_openssl.md
Last active August 9, 2025 14:38 — forked from crazybyte/encrypt_openssl.txt
File encryption using OpenSSL

Symmetic encryption

For symmetic encryption, you can use the following:

To encrypt:

openssl aes-256-cbc -salt -a -e -in plaintext.txt -out encrypted.txt

To decrypt:

@trungv0
trungv0 / haproxy.sh
Last active June 25, 2025 21:44
RabbitMQ cluster with HAProxy & Keepalived for high availability
# install haproxy
yum install -y haproxy
# config haproxy for rabbitmq
cat > /etc/haproxy/haproxy.cfg << "EOF"
global
log 127.0.0.1 local0 notice
maxconn 10000
user haproxy