Skip to content

Instantly share code, notes, and snippets.

View roeeyn's full-sized avatar
🦫
Enjoying Development

Rodrigo Medina roeeyn

🦫
Enjoying Development
View GitHub Profile
@aifrak
aifrak / connect_contained_livebook_to_contained_node.md
Last active September 30, 2025 20:39
Attach a contained Livebook to a contained Elixir node

Attach a contained Livebook to a contained Elixir node

1 - Run Livebook container

  1. "Check that the version of Elixir on the client matches the server" (Source)
  2. In livebook container, publish ports. For example:
    8080:8080
    8081:8081
  3. Add network of the elixir container to the livebook container. To list networks, run docker network ls.
  4. Bind your own folder to /data from the Livebook container.
@idarthjedi
idarthjedi / common_modulus.py
Last active December 16, 2022 04:33 — forked from apogiatzis/common_modulus.py
RSA Common modulus attack
import argparse
import math
from binascii import unhexlify
def egcd(a, b):
if a == 0:
return b, 0, 1
else:
@L04DB4L4NC3R
L04DB4L4NC3R / arch_std_install.md
Created May 16, 2020 13:10
ArchLinux Standard Installation

Installing Arch the Standard Way


Create a bootable pendrive

Run lsblk to see what is your pendrive

dd if= of=/dev/sd status="progress"
@lewalkingdad
lewalkingdad / magit-advices.el
Created September 19, 2019 00:29
Advised some magit functions to refresh git modeline
;;Trigger a refresh of vc-modeline on some magit functions
(require 'magit)
(defun refresh-vc-state (&rest r) (message "%S" (current-buffer))(vc-refresh-state))
(advice-add 'magit-checkout-revision :after 'refresh-vc-state '((name . "magit-refresh-on-checkout-revision")))
(advice-add 'magit-branch-create :after 'refresh-vc-state '((name . "magit-refresh-on-branch-create")))
(advice-add 'magit-branch-and-checkout :after 'refresh-vc-state '((name . "magit-refresh-on-checkout-and-branch")))
(advice-add 'magit-branch-or-checkout :after 'refresh-vc-state '((name . "magit-refresh-on-branch-or-checkout")))
@gmolveau
gmolveau / install_dirb.sh
Created September 2, 2019 12:01
mac osx dirb install
cd ~/Applications
wget https://downloads.sourceforge.net/project/dirb/dirb/2.22/dirb222.tar.gz
tar -xvf dirb222.tar.gz
rm dirb222.tar.gz
brew install autoconf
chmod -R 755 dirb222
cd dirb222
./configure
make
make install
@sysboss
sysboss / query_athena.py
Created May 21, 2018 15:41
SQL Query Amazon Athena using Python
#!/usr/bin/env python3
#
# Query AWS Athena using SQL
# Copyright (c) Alexey Baikov <sysboss[at]mail.ru>
#
# This snippet is a basic example to query Athen and load the results
# to a variable.
#
# Requirements:
# > pip3 install boto3 botocore retrying
@lucasscariot
lucasscariot / model-user.js
Last active October 27, 2024 00:48
Composite Primary Key in Sequelize
/*
* Migration
*/
'use strict';
module.exports = {
up: function(queryInterface, Sequelize) {
return queryInterface.createTable('Users', {
firstName: {
type: Sequelize.STRING
},
@mrlesmithjr
mrlesmithjr / ansible-macos-homebrew-packages.yml
Last active January 21, 2025 16:34
Install MacOS Homebrew Packages With Ansible
---
- name: Install MacOS Packages
hosts: localhost
become: false
vars:
brew_cask_packages:
- atom
- docker
- dropbox
- firefox
@kevin-smets
kevin-smets / 1_kubernetes_on_macOS.md
Last active June 23, 2025 01:06
Local Kubernetes setup on macOS with minikube on VirtualBox and local Docker registry

Requirements

Minikube requires that VT-x/AMD-v virtualization is enabled in BIOS. To check that this is enabled on OSX / macOS run:

sysctl -a | grep machdep.cpu.features | grep VMX

If there's output, you're good!

Prerequisites

@borgfriend
borgfriend / maya2017install.sh
Last active April 13, 2024 13:34
Maya 2017 Installation on Ubuntu 16.04
#!/bin/bash
#Make sure we’re running with root permissions.
if [ `whoami` != root ]; then
echo Please run this script using sudo
echo Just type “sudo !!
exit
fi
#Check for 64-bit arch
if [uname -m != x86_64]; then