git help stash
git reset --hard HEAD~x // Elimina los ultimos x+1 commits
git push -f
| https://askubuntu.com/questions/22381/how-to-format-a-usb-flash-drive | |
| The Command-Line Way | |
| In case you can't get your device formatted from the GUI, try this way. | |
| Open the Terminal (Ctrl + Alt + T) | |
| List your block storage devices by issuing the command lsblk | |
| Then identify your pen drive by it's SIZE. In my case its /dev/sdb |
| # Convertir columna a string | |
| total_rows['ColumnID'] = total_rows['ColumnID'].astype(str) | |
| # Eliminar filas cuyo valor para la columna A son nan | |
| df.dropna(subset=['A']) | |
| # Distribucion de valores para una cierta columna | |
| events['city'].value_counts() | |
| # Chequear si una columna tiene algun valor null |
| crontab -e Editar archivo de crontab, crea uno nuevo si no existe | |
| crontab -l Listar tareas crontab | |
| crontab -r Eliminar archivo con las tareas crontab | |
| crontab -v Muestra la ultima vez que se edito el archvio de crontab | |
| * * * * * command to be executed | |
| - - - - - | |
| | | | | | | |
| | | | | +----- day of week (0 - 6) (Sunday=0) | |
| | | | +------- month (1 - 12) |
| [ | |
| { "keys": ["ctrl+shift+f"], "command": "reindent" , "args": { "single_line": false } }, | |
| { "keys": ["ctrl+shift+c"], "command": "toggle_comment", "args": { "block": false } }, | |
| { "keys": ["ctrl+h"], "command": "find_all", | |
| "context": [{"key": "panel", "operand": "find_in_files"}, {"key": "panel_has_focus"}] | |
| }, | |
| { "keys": ["ctrl+h"], "command": "show_panel", "args": {"panel": "find_in_files"} }, | |
| { "keys": ["ctrl+shift+r"], "command": "show_overlay", "args": {"overlay": "goto", "show_files": true} }, | |
| ] |
| yum install vsftpd ftp -y | |
| vi /etc/vsftpd/vsftpd.conf | |
| [...] | |
| ## Disable anonymous login ## | |
| anonymous_enable=NO | |
| ## Uncomment ## | |
| ascii_upload_enable=YES |
| # First we need to get the modeline string for xrandr | |
| # Luckily, the tool "gtf" will help you calculate it. | |
| # All you have to do is to pass the resolution & the- | |
| # refresh-rate as the command parameters: | |
| gtf 1920 1080 60 | |
| # In this case, the horizontal resolution is 1920px the | |
| # vertical resolution is 1080px & refresh-rate is 60Hz. | |
| # IMPORTANT: BE SURE THE MONITOR SUPPORTS THE RESOLUTION |
systemctl
systemctl list-units --type=service
OR
systemctl --type=service
| package com.tbotalla.dniparser; | |
| import com.google.zxing.BinaryBitmap; | |
| import com.google.zxing.LuminanceSource; | |
| import com.google.zxing.client.j2se.BufferedImageLuminanceSource; | |
| import com.google.zxing.common.HybridBinarizer; | |
| import com.google.zxing.pdf417.PDF417Reader; | |
| import org.apache.commons.lang3.StringUtils; | |
| import javax.imageio.ImageIO; |