Skip to content

Instantly share code, notes, and snippets.

View mael's full-sized avatar

Mael mael

  • React Native Developer
  • Pamplona
View GitHub Profile
@mael
mael / WIFI
Last active August 29, 2015 14:02
Signal wifi terminal
watch -n 1 "awk 'NR==3 {print \"WiFi Signal Strength = \" \$3 \"00 %\"}''' /proc/net/wireless"
@mael
mael / NodeJS
Last active August 29, 2015 14:02
ServerNode
Ejecutar un servidor nodejs simple, para cargar webs con javascript
(Dentro de la carpeta del proyecto)
#http-server -p 5000 -c-1
Show Hidden Files
Open up your Terminal and enter:
# defaults write com.apple.finder AppleShowAllFiles TRUE
# killall Finder
Hide Hidden Files
#defaults write com.apple.finder AppleShowAllFiles FALSE
# killall Finder
@mael
mael / SublimeText 3 CL OSX
Last active August 29, 2015 14:13
Launch Sublime Text 3 from the OS X Terminal
#Create link
ln -s /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl /usr/local/bin/subl
#ONLY ff you don't have PATH to usr/local/bin
#Open bash_profile
open ~/.bash_profile
#Add to bash_profile
export PATH=/usr/local/bin/subl:$PATH
@mael
mael / TerminalOSX
Created January 14, 2015 07:33
Colors Terminal OSX
Add to the file: /etc/bashrc
export TERM=xterm-color
export CLICOLOR=1
export LSCOLORS=ExFxCxDxBxegedabagacad
And restart terminal app.
Enjoy ;)
@mael
mael / BootableLinux
Created January 14, 2015 19:08
Create Bootable USB Linux
From Terminal
=============
Find the USB using "NAME" column. Then note the corresponding /dev/diskN
# diskutil list
Unmount the USB stick
# diskutil unmountDisk /dev/diskN
Write the content of the ISO file to diskN
@mael
mael / Prepare server Nodejs Ubuntu
Created June 11, 2015 12:41
NodeJS, npm, mongodb, forever....
#Install nodejs
sudo apt-get install nodejs
sudo apt-get install npm
sudo ln -s /usr/bin/nodejs /usr/bin/node
#Install mongodb
http://docs.mongodb.org/manual/tutorial/install-mongodb-on-ubuntu/
->robomongo in port 27017
@mael
mael / Get info memory windows
Last active August 28, 2015 06:18
Command windows to find out the information about your memory
Open CMD:
> wmic MemoryChip get BankLabel, Capacity, MemoryType, TypeDetail, Speed
Here is a complete list of information: http://msdn.microsoft.com/en-us/library/windows/desktop/aa394347%28v=vs.85%29.aspx
@mael
mael / iwlist scan
Created March 13, 2016 11:38
WIFI scan command linux
#Option 1
sudo iwlist wlan0 scan | grep -oE '(ESSID:|Quality=).*'
#Option 2
Create a bash file to filter command iwlist
#!/bin/bash
## print header lines
echo ""
@mael
mael / gist:9d27b5b3aca2753e751da505c4ad28cf
Created February 7, 2017 20:27
Robomongo 0.9 to server mongoDB
#SERVER
-Install mongodb
-Comment out /etc/mongod.conf file's bind_ip
#CLIENT (v0.9)
-Set address ( IP of server ) : Port number (27017)
-SSH TAB -> ip server and .pem file