Skip to content

Instantly share code, notes, and snippets.

View cristianmiranda's full-sized avatar
🏡
Working from home

Cristian Miranda cristianmiranda

🏡
Working from home
View GitHub Profile
@cristianmiranda
cristianmiranda / bootstrap.sh
Last active August 22, 2020 15:37
cmiranda's dotfiles bootstrap script
# Just in case
sudo apt-get install -y git
# Grabs ssh & gpg keys
cd $HOME
BACKUP_DIR=/data/ssd/backups/manual/secrets
scp -r -P 62022 cmiranda@crismiranda.net:"${BACKUP_DIR}/.gnupg ${BACKUP_DIR}/.ssh ${BACKUP_DIR}/.cert" .
# Clones repo
WORKSPACE=$HOME/Documents/Work/Workspace
'.platform-darwin':
'cmd-shift-R': 'fuzzy-finder:toggle-file-finder'
'ctrl-h': 'project-find:show'
'atom-workspace atom-text-editor:not([mini])':
'alt-up': 'editor:move-line-up'
'alt-down': 'editor:move-line-down'
'cmd-alt-down': 'editor:duplicate-lines'
'cmd-l': 'go-to-line:toggle'
'cmd-d': 'editor:delete-line'
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
import os
import sys
import PyPDF2 as pyPdf
def arabic_to_roman(arabic):
roman = ''
while arabic >= 1000:
roman += 'm'
@cristianmiranda
cristianmiranda / lifx_speech.py
Last active July 22, 2016 13:27
lifx_speech.py
# NOTE: this example requires PyAudio because it uses the Microphone class
import time
import requests
import speech_recognition as sr
'''
LIFX API methods
'''
#!/usr/bin/python
# open a microphone in pyAudio and listen for taps
# brew install portaudio
# pip install --allow-external pyaudio --allow-unverified pyaudio pyaudio
import pyaudio
import struct
import math
@pisculichi
pisculichi / radios_nacionales.txt
Last active April 19, 2024 23:52
URLs de radios nacionales de Argentina, para poder escuchar en la terminal con mplayer o vlc
# alias radio='function __radio(){ r=`grep -v "#" radios_nacionales.txt | grep -m 1 -i $1 | cut -d" " -f1`; cvlc $r 2> /dev/null; }; __radio'
# podria utilizarse mplayer en vez de vlc
AMs Nacionales
http://cdn.instream.audio:9288/stream Radio Madre 530
https://streaming1.hostingmontevideo.com:7019/; Radio Colonia 550
http://server.laradio.online:25224/live.mp3 Radio Argentina 570
http://playerservices.streamtheworld.com/api/livestream-redirect/CONTINENTAL_SC Continental 590
https://streammax.alsolnet.com/radiorivadavia Rivadavia 630
@asfktz
asfktz / how to make desktop version of google docs.md
Last active January 20, 2023 00:18
google docs - desktop version

steps:

  • you need to have node.js installed

  • copy main.js & package.json to a new folder

  • in the terminal:

    • to build it, run: npm install and then npm start

    • to pack it like a regular app, use 'electron-packager'. install it globally by running: npm install electron-packager -g