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
#!/bin/bash | |
#Find matching text in all files | |
find . -type f -name "*.rb" | while read file; do found=$(sed -n 's/config//p' "$file"); if [ ! -z "$found" ]; then echo "$file"; fi; 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
#!/bin/bash | |
#Find and replace all files with ^M (dos format) to Unix format. | |
find $(pwd) -type f -name "*.php" | while read file; do sed -e 's/^M//g' -i "$file"; 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
from IPython.display import display, HTML | |
display(HTML(data=""" | |
<style> | |
div#notebook-container { width: 95%; } | |
div#menubar-container { width: 65%; } | |
div#maintoolbar-container { width: 99%; } | |
</style> | |
""")) |
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
cwd=`pwd`;cd /usr/local; curl -s https://nodejs.org/dist/v16.13.2/node-v16.13.2-linux-x64.tar.gz | sudo tar --strip-components 1 -xz && cd "$cwd" |