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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright 2012 Matt Martz
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
@cristianmiranda
cristianmiranda / install_dotfiles.sh
Last active June 13, 2020 18:04
install_dotfiles.sh
# Just in case
sudo apt-get install -y git
WORKSPACE=$HOME/Documents/Work/Workspace
# Grabbing ssh keys
mkdir -p $HOME/.ssh
cd $HOME/.ssh
scp -P 62022 'cmiranda@crismiranda.net:/home/cmiranda/backups/box/linux/home/cmiranda/.ssh/id_*' .
@cristianmiranda
cristianmiranda / oracle-db.error.log
Created April 25, 2020 00:43
Oracle DB init error log
[oracle@a6573e40d8b8 dbfiles]$ cat /home/oracle/setup/log/configDB.log
Sat Apr 25 00:35:35 UTC 2020
Start Docker DB configuration
Call configDBora.sh to configure database
Sat Apr 25 00:35:35 UTC 2020
Configure DB as oracle user
Setup Database directories ...
SQL*Plus: Release 12.2.0.1.0 Production on Sat Apr 25 00:35:35 2020
#
# refind.conf
# Configuration file for the rEFInd boot menu
#
# Timeout in seconds for the main menu screen. Setting the timeout to 0
# disables automatic booting (i.e., no timeout). Setting it to -1 causes
# an immediate boot to the default OS *UNLESS* a keypress is in the buffer
# when rEFInd launches, in which case that keypress is interpreted as a
# shortcut key. If no matching shortcut is found, rEFInd displays its
# 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 ->
//#include <SoftwareSerial.h>
#include <Adafruit_NeoPixel.h>
#ifdef __AVR__
#include <avr/power.h>
#endif
//#define RxD 2
//#define TxD 1
#define LED 5
# USEFUL COMMANDS
alias l="ls -lst"
alias la="ls -lsta"
alias ..="cd .."
alias cd..="cd .."
alias g="git"
alias resetdock="osascript -e 'quit application \"Dock\"'"
alias resetaudio="sudo killall coreaudiod"
alias ringo="cd ~/Documents/Repos/ringo"
cd dist-$1 # Ingresar al repo
git add . && git stash # En caso de tener cambios
cd uat-$1 # Ingresar al repo
git add . && git stash # En caso de tener cambios
cd $1 # Ingresar al repo
git add . && git stash # En caso de tener cambios
'.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'
@cristianmiranda
cristianmiranda / rpn_and_or.c
Created October 8, 2017 00:08
RPN - && ||
if (a == 10 && b >= 30) {
y = y + 1;
} else {
y = y - 1;
}
1 - a
2 - 10
3 - CMP
4 - BNE