git help stash
git reset --hard HEAD~x // Elimina los ultimos x+1 commits
git push -f
| # 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 |
Displays contents of /proc/net files. It works with the Linux Network Subsystem, it will tell you what the status of ports are ie. open, closed, waiting, masquerade connections. It will also display various other things. It has many different options. Netstat (Network Statistic) command display connection info, routing table information etc. To displays routing table information use option as -r.
Sample output:
Proto Recv-Q Send-Q Local Address Foreign Address (state)
tcp4 0 0 127.0.0.1.62132 127.0.0.1.http ESTABLISHED
| node { | |
| echo 'Results included as an inline comment exactly how they are returned as of Jenkins 2.121, with $BUILD_NUMBER = 1' | |
| echo 'No quotes, pipeline command in single quotes' | |
| sh 'echo $BUILD_NUMBER' // 1 | |
| echo 'Double quotes are silently dropped' | |
| sh 'echo "$BUILD_NUMBER"' // 1 | |
| echo 'Even escaped with a single backslash they are dropped' | |
| sh 'echo \"$BUILD_NUMBER\"' // 1 | |
| echo 'Using two backslashes, the quotes are preserved' | |
| sh 'echo \\"$BUILD_NUMBER\\"' // "1" |
| [Desktop Entry] | |
| Version=1.0 | |
| Encoding=UTF-8 | |
| Name=Popcorn Time | |
| Name[en_US]=Popcorn Time | |
| GenericName=BitTorrent Stream Player | |
| GenericName[en_US]=BitTorrent Stream Player | |
| Comment=Run the Popcorn Time application | |
| Comment[en_US]=Run the Popcorn Time application | |
| Type=Application |
To remove a submodule you need to:
| # delete local tag '12345' | |
| git tag -d 12345 | |
| # delete remote tag '12345' (eg, GitHub version too) | |
| git push origin :refs/tags/12345 | |
| # alternative approach | |
| git push --delete origin tagName | |
| git tag -d tagName |
Press minus + shift + s and return to chop/fold long lines!
| eXtreme Go Horse (XGH) Process | |
| Quelle: http://gohorseprocess.wordpress.com | |
| Übersetzung ursprünglich von https://gist.github.com/Neffez/f8d907ba8289f14e23f3855011fa4e2f | |
| 1. Ich denke, also ist es nicht XGH. | |
| In XGH wird nicht gedacht, es wird das erste gemacht, was in den Sinn kommt. Es gibt auch keine zweite Option, die erste ist schneller. | |
| 2. Es gibt 3 Wege ein Problem zu lösen: den richtigen Weg, den falschen Weg und den XGH Weg, welcher exakt wie der falsche ist, aber schneller. |