Skip to content

Instantly share code, notes, and snippets.

View repositorioinformatico's full-sized avatar

repositorioinformatico

View GitHub Profile
\documentclass{article}
% General document formatting
\usepackage[margin=0.7in]{geometry}
\usepackage[parfill]{parskip}
\usepackage[utf8]{inputenc}
% Related to math
\usepackage{amsmath,amssymb,amsfonts,amsthm}
\begin{document}
@repositorioinformatico
repositorioinformatico / httpserve.py
Created February 17, 2023 08:28 — forked from LazyMaple/httpserve.py
python2 and python3 compliant simple http server
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""launch small http server
"""
import sys
try:
from SimpleHTTPServer import SimpleHTTPRequestHandler
except ImportError:
@repositorioinformatico
repositorioinformatico / 01_self-signed-ssl-howto.md
Created February 17, 2023 08:27 — forked from ekapujiw2002/01_self-signed-ssl-howto.md
How to create self-signed SSL certificates for localhost that actually works

How to create self-signed SSL certificates for localhost

Option 1

Create a directory in your user root directory where we will store the necessary generated files.

$ cd ~/
$ mkdir .localhost
$ cd .localhost

Now run this single command and you will have both a certificate and private key which was used to sign the certificate.

@repositorioinformatico
repositorioinformatico / docker-compose.yml
Created January 12, 2023 08:49 — forked from kentwait/docker-compose.yml
Docker Compose for jupyter/datascience-notebook:latest
version: '3.3'
services:
lab:
ports:
- '10000:8888'
container_name: datascience-notebook
volumes:
- '${PWD}:/home/jovyan/work'
image: jupyter/datascience-notebook
@repositorioinformatico
repositorioinformatico / delete-likes-from-twitter.md
Created November 23, 2022 07:34 — forked from quinzdom/delete-likes-from-twitter.md
[Recipe] Delete all your likes/favorites from Twitter

Ever wanted to delete all your likes/favorites from Twitter but only found broken/expensive tools? You are in the right place.

  1. Go to: https://twitter.com/{username}/likes
  2. Open the console and run the following JavaScript code:
setInterval(() => {
  for (const d of document.querySelectorAll('div[data-testid="unlike"]')) {
    d.click()
 }
@repositorioinformatico
repositorioinformatico / git-safemerge
Created October 22, 2022 07:23 — forked from wolever/git-safemerge
git-safemerge performs a "safer" merge, confirming the commits to be merged and the changes to be made before starting the commit process.
#!/bin/bash
# Performs a "safe" merge, confirming the commits to be merged, the merge
# strategy, any conflicts, etc.
# Useage:
# $ git safemerge master
# Commits:
# * bc911ef Fix bug in widget
# * e80f8d1 Clean things up
#
# Changes:
@repositorioinformatico
repositorioinformatico / caesar-cipher.sh
Created October 14, 2022 08:46 — forked from IQAndreas/caesar-cipher.sh
A really simple Caesar Cipher in Bash (or Shell) using `tr`, can also easily be adjusted to encrypt/decrypt ROT13 instead.
# Caesar cipher encoding
echo "THE QUICK BROWN FOX JUMPS OVER THE LAZY DOG" | tr '[A-Z]' '[X-ZA-W]'
# output: QEB NRFZH YOLTK CLU GRJMP LSBO QEB IXWV ALD
# Caesar cipher decoding
echo "QEB NRFZH YOLTK CLU GRJMP LSBO QEB IXWV ALD" | tr '[X-ZA-W]' '[A-Z]'
# output: THE QUICK BROWN FOX JUMPS OVER THE LAZY DOG
# Can also be adjusted to ROT13 instead
@repositorioinformatico
repositorioinformatico / git_create_orphan.sh
Created February 25, 2022 17:24 — forked from seanbuscay/git_create_orphan.sh
Create an orphan branch in a repo.
cd repository
git checkout --orphan orphan_name
git rm -rf .
rm '.gitignore'
echo "#Title of Readme" > README.md
git add README.md
git commit -a -m "Initial Commit"
git push origin orphan_name