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
@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
@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
@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")))
@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"
@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:
@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.