This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://scapy.readthedocs.io/en/latest/ | |
http://bt3gl.github.io/black-hat-python-infinite-possibilities-with-the-scapy-module.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
chmod -R a+rw jccdir/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
print(df.head()) | |
#print(df.drop(df[df['Quantity'] == 0].index)) | |
print((df.drop(df[df['Quantity']== 0].index) | |
.rename(columns={'Weight':'Weight(oz.)'}) | |
)) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* * * * * command to be executed | |
┬ ┬ ┬ ┬ ┬ | |
│ │ │ │ │ | |
│ │ │ │ │ | |
│ │ │ │ └───── day of week (0 - 7) (0 or 7 are Sunday, or use names) | |
│ │ │ └────────── month (1 - 12) | |
│ │ └─────────────── day of month (1 - 31) | |
│ └──────────────────── hour (0 - 23) | |
└───────────────────────── min (0 - 59) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cat teste.csv | sed -e '2,${ /^| x.ddd /d }' > testeclean.csv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for i in 03 04 05 06 07 08 09 10 11 12 13; do cp 11_spark_conf.properties "${i}_spark_conf.properties"; done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I'd use :%s/^/ / | |
You could also specify a range of lines :10,15s/^/ / | |
Or a relative range :.,+5s/^/ / | |
#credits to "luser droogs" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set -a | |
. tmp.txt | |
set +a | |
# credits to Stéphane Chazelas |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
df.coalesce(1).write.format("com.databricks.spark.cvs").save("...path...") | |
#copy this file to local machine | |
dbutils.fs.cp("...path...", "..path.. ..csv") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo 'task goes here' | cat - todo.txt > temp && mv temp todo.txt | |
or | |
sed -i '1s/^/task goes here\n/' todo.txt | |
or | |
sed -i '1itask goes here' todo.txt |
NewerOlder