Skip to content

Instantly share code, notes, and snippets.

View paridin's full-sized avatar
🎯
Focusing

Roberto Estrada paridin

🎯
Focusing
View GitHub Profile
@paridin
paridin / remove_large_list_of_files.sh
Created April 22, 2016 22:14
solve error ksh args list too long
# fix to error ksh: /usr/bin/ls: arg list too long
phrase='TD*.log' # or get by console $1
for i in `find . -name `$phrase``;
do
echo "Removing: $i";
rm -rf $i;
done
@paridin
paridin / adapters.application.js
Last active April 29, 2016 03:40
New Twiddle
import JSONAPIAdapter from 'ember-data/adapters/json-api';
export default JSONAPIAdapter.extend({});
import JSONAPIAdapter from 'ember-data/adapters/json-api';
export default JSONAPIAdapter.extend({});
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember HABTM'
});
@paridin
paridin / reverse_phrase.py
Created July 2, 2016 22:05
Algorithms practice
#!/usr/bin/python
"""
Problem, Given a phrase, reverse every word preserving the order in the sentences
You could not use functions from the language.
Example
Input: Hello World From Mexico City
Output: olleH dlroW morF ocixeM ytiC
@paridin
paridin / tmux-snippet.md
Last active September 21, 2016 15:33
If you want your tmux was keep on auto start, this snippet is your solution.

How it works

Validate if tmux exists and send the buffer to an empty stream /dev/null -> which tmux 2>&1 >/dev/null If session hack exists it recover it -> tmux attach -t hack Otherwise, It create a new session call hack -> tmux new -s hack

if which tmux 2>&1 >/dev/null; then
  if [ $TERM != "screen-256color" ] && [  $TERM != "screen" ]; then
    tmux attach -t hack || tmux new -s hack; exit
  fi
fi
@paridin
paridin / vimrc.light.md
Last active February 16, 2017 16:41
An light configuration of vim. Great for work in a remote servers.

This version of .vimrc is lightweight and powerful to work in a remote environment as private servers without access to the internet.

Requirements

  • Vundle (git is required)
  • vim-airline (With themes)
  • ctrlp

You must download the projects from their github accounts.

vim-plug

@paridin
paridin / rename-component.md
Last active August 14, 2017 15:28
Ember rename component, shell helper

Rename a component file.

I made a mistake to naming some components, I don't want to erase it and create again, the problem is, I need to rename the files by hand, it's a boring task, and maybe in the future I will get the same issue, to make me the life easier I developed the following snippet, you should use it if you have the same problem.

The snippet

#!/usr/bin/env bash
# purpose: rename files, in same path
@paridin
paridin / restrada.md
Last active June 30, 2025 21:06
Resume |> CV

Roberto Estrada Alcázar dev@paridin.com, CV, GitHub, Stack Overflow, LinkedIn

EDUCATION Universidad Politecnica del Estado de Morelos, Jiutepec, Morelos, MX

BRIEF SUMMARY

I have experience in different programming languages such as Elixir, JavaScript, and Python. I can work at the infrastructure level and have experience with Unix/Linux/OSX operating systems in production environments.

Software Developer MX DF. Jan 2021 - Current

@paridin
paridin / nginx.daemon
Last active April 18, 2019 02:40
nginx daemon
#!/bin/sh
#
# nginx - this script starts and stops the nginx daemon
#
# chkconfig: - 85 15
# description: Nginx is an HTTP(S) server, HTTP(S) reverse \
# proxy and IMAP/POP3 proxy server
# processname: nginx
# config: /etc/nginx/nginx.conf
# config: /etc/sysconfig/nginx