Skip to content

Instantly share code, notes, and snippets.

@ramimac
ramimac / Cloud Security Orienteering Checklist.md
Last active April 24, 2024 03:54
A Checklist of Cloud Security Orienteering

Cloud Security Orienteering: Checklist
by Rami McCarthy
via TL;DR sec

How to orienteer in a cloud environment, dig in to identify the risks that matter, and put together actionable plans that address short, medium, and long term goals.

Based on the Cloud Security Orienteering methodology.

Checklist

@esnosy
esnosy / faster_ray_cast_blender.py
Created June 3, 2021 16:43
How to efficiently ray cast static meshes Blender Python
import bpy
from mathutils.bvhtree import BVHTree
C = bpy.context
# Build BVH once
bvh = BVHTree.FromObject(C.object, C.evaluated_depsgraph_get())
for i in range(999999):
# Slower, this possibly builds BVH everytime
@mattupham
mattupham / @mattupham Omegle IP Location Finder
Last active May 12, 2024 15:05
@mattupham Omegle IP Location Finder - Ask Questions in our Discord, links below
// Subscribe on YouTube, and follow on TikTok (@mattupham)! Socials found below:
// https://mattupham.com/links
// @ me on Discord with any questions!
https://link.mattupham.com/discord
// --------------------------------------------
// PLEASE REPLACE "your-api-key-here" WITH AN
// API KEY FROM https://ipgeolocation.io/
let apiKey = "your-api-key-here";
version: '3.3'
services:
nginx:
image: mycustom/nginx:latest
build:
context: ./Dockerfiles/nginx
hostname: docker.local
volumes:
- ${HOME}/dockerSites/www:/var/www
- nginxlogs:/var/log/nginx
@bharath324
bharath324 / PY0101EN-1-1-Types.ipynb
Created January 24, 2020 15:18
Created on Cognitive Class Labs
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@AndFran
AndFran / PY0101EN-3-3-Functions.ipynb
Created January 24, 2020 15:17
Created on Cognitive Class Labs
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@EdwardLS
EdwardLS / PY0101EN-2-2-Lists.ipynb
Created January 24, 2020 15:17
Created on Cognitive Class Labs
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ostens
ostens / nginxProxy.md
Last active August 5, 2021 09:12
Deploying our application in containers with the help of nginx
@x-yuri
x-yuri / Running a site in production with Docker Compose.md
Last active August 5, 2021 08:40
#docker #docker-compose #alpine #debian #ruby #pg #puma #nginx #mina

Running a site in production with Docker Compose

TODO

  • pg: use superuser account (create extension)
  • docker-compose.yml: prefer dicts over arrays
  • docker-compose.yml: no explicit network is needed
  • add UID variable
  • .dockerignore
  • docker-compose.yml: environment after env_file
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.