Skip to content

Instantly share code, notes, and snippets.

Yoel Ramos yoelrc88

  • Miami. FL
Block or report user

Report or block yoelrc88

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:d091515703672ec0bf1a6271336806f0
#Generate root password
import random, string
password = ''.join(random.choice(string.ascii_letters + string.digits) for i in range(20))
#Download ngrok
! wget -q -c -nc https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip
! unzip -qq -n ngrok-stable-linux-amd64.zip
#Setup sshd
! apt-get install -qq -o=Dpkg::Use-Pty=0 openssh-server pwgen > /dev/null
#Set root password
@muendelezaji
muendelezaji / bash-to-zsh-hist.py
Created Oct 5, 2016 — forked from op/bash-history-to-zsh-history.py
Convert Bash history to Zsh history
View bash-to-zsh-hist.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# This is how I used it:
# $ cat ~/.bash_history | python bash-to-zsh-hist.py >> ~/.zsh_history
import sys
import time
@spuder
spuder / plot_board.py
Last active Mar 6, 2019
python script to generate .pdf and .gerber files from a kicad project
View plot_board.py
'''
Heavily borrowed from this location: https://github.com/blairbonnett-mirrors/kicad/blob/master/demos/python_scripts_examples/plot_board.py
Parameters
Takes 2 parameters
1. Path to kicad file
2. Location of where to save pdfs
A python script example to create various plot files from a board:
@patik
patik / how-to-squash-commits-in-git.md
Last active Sep 11, 2019
How to squash commits in git
View how-to-squash-commits-in-git.md

Squashing Git Commits

The easy and flexible way

This method avoids merge conflicts if you have periodically pulled master into your branch. It also gives you the opportunity to squash into more than 1 commit, or to re-arrange your code into completely different commits (e.g. if you ended up working on three different features but the commits were not consecutive).

Note: You cannot use this method if you intend to open a pull request to merge your feature branch. This method requires committing directly to master.

Switch to the master branch and make sure you are up to date:

@pachacamac
pachacamac / clap.html
Last active Sep 3, 2019
Clap Detection in JS
View clap.html
<html>
<head>
<title>AudioPlayground</title>
<style>* {box-sizing: border-box;}</style>
</head>
<body>
<h3>AudioPlayground</h3>
<p>If you're happy and you know it, clap your hands!</p>
<script>
var Recording = function(cb){
You can’t perform that action at this time.