Skip to content

Instantly share code, notes, and snippets.

View IAbuElRuzz's full-sized avatar
🛰️
Work

IAbuElRuzz IAbuElRuzz

🛰️
Work
  • Rome, Italy
View GitHub Profile
@IAbuElRuzz
IAbuElRuzz / install_caffe.sh
Created September 16, 2016 19:58 — forked from doctorpangloss/install_caffe.sh
Installing Caffe on Mac 10.11.5 and later in the 10.11 series
#!/bin/sh
# Install brew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# Install XCode 7.3 from the App Store (tested)
# Install XCode command line tools
xcode-select --install
# Install CUDA toolkit 8.0 release candidate
# Register and download from https://developer.nvidia.com/cuda-release-candidate-download
# or this path from https://developer.nvidia.com/compute/cuda/8.0/rc/local_installers/cuda_8.0.29_mac-dmg
# Select both the driver and the toolkit, no documentation necessary
@IAbuElRuzz
IAbuElRuzz / git_logs_graph.sh
Created December 7, 2022 11:54
Git Graph logs
git log --graph --oneline --full-history --all
git log --graph --full-history --all --pretty=format:"%h%x09%d%x20%s"
git log --graph --full-history --all --color --pretty=format:"%x1b[31m%h%x09%x1b[32m%d%x1b[0m%x20%s"
@IAbuElRuzz
IAbuElRuzz / type-orm_nestjs.md
Created April 26, 2023 20:23 — forked from nicobytes/type-orm_nestjs.md
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
@IAbuElRuzz
IAbuElRuzz / settings.jsonc
Created May 15, 2023 13:59 — forked from hyperupcall/settings.jsonc
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!!
{
@IAbuElRuzz
IAbuElRuzz / Docker shell commands.sh
Created September 25, 2023 07:21 — forked from bahmutov/Docker shell commands.sh
A personal cheat sheet for running local Node project in a Docker container
# See list of docker virtual machines on the local box
$ docker-machine ls
NAME ACTIVE URL STATE URL SWARM DOCKER ERRORS
default * virtualbox Running tcp://192.168.99.100:2376 v1.9.1
# Note the host URL 192.168.99.100 - it will be used later!
# Build an image from current folder under given image name
$ docker build -t gleb/demo-app .
@IAbuElRuzz
IAbuElRuzz / .flake8
Created February 6, 2024 09:14
Flake8 2024
[flake8]
per-file-ignores =
# line too long
*.py: E501,
################### PROGRAM ################################
# Specify the number of subprocesses that Flake8 will use to run checks in parallel.
jobs = auto
@IAbuElRuzz
IAbuElRuzz / .pylintrc
Created February 6, 2024 09:15
.pylintrc 2024
[MASTER]
# A comma-separated list of package or module names from where C extensions may
# be loaded. Extensions are loading into the active Python interpreter and may
# run arbitrary code.
extension-pkg-allow-list=
# A comma-separated list of package or module names from where C extensions may
# be loaded. Extensions are loading into the active Python interpreter and may
# run arbitrary code. (This is an alternative name to extension-pkg-allow-list
@IAbuElRuzz
IAbuElRuzz / vscode-settings.json
Created February 6, 2024 09:16
VSCode Python settings.json
{
"python.terminal.activateEnvironment": true,
"python.defaultInterpreterPath": "${env:VIRTUAL_ENV}",
"flake8.args": [
"--max-line-length=120",
"--max-complexity=10",
"--ignore=F401,F405,F811,S117",
"--max-line-length=120",
"--verbose"
@IAbuElRuzz
IAbuElRuzz / vscode-launch.json
Created February 6, 2024 09:17
VSCode Python launch.json
{
"version": "0.2.0",
"configurations": [
{
"name": "Testing ....",
"type": "debugpy",
"request": "launch",
"program": "main.py",
"cwd": "${workspaceFolder}",
@IAbuElRuzz
IAbuElRuzz / vscode-extensions.json
Last active March 19, 2024 13:34
VSCode Python extensions.json
{
"recommendations": [
"ms-python.pylint",
"ms-python.black-formatter",
"ms-python.vscode-pylance"
]
}