Find & Replace within an Entire Directory or Git Repo with sed
If replacing within a directory:
grep -rl 'apples' /dir_to_search_under | xargs sed -i 's/apples/oranges/g'
Or, within an entire git
repository:
<body onload=z=c.getContext`2d`,setInterval(`c.width=W=150,Y<W&&P<Y&Y<P+E|9<p?z.fillText(S++${Y=`,9,9|z.fillRect(p`}*0,Y-=--M${Y+Y},P+E,9,W),P))):p=M=Y=S=6,p=p-6||(P=S%E,W)`,E=49) onclick=M=9><canvas id=c> |
If replacing within a directory:
grep -rl 'apples' /dir_to_search_under | xargs sed -i 's/apples/oranges/g'
Or, within an entire git
repository:
module DepthFirstSearch where | |
import Data.Foldable (asum) | |
import Data.List ((\\)) | |
dfs :: (Eq a) => (a -> [a]) -> a -> a -> Maybe [a] | |
dfs next start goal = dfs' [] start | |
where dfs' path current | |
| current == goal = Just . reverse $ goal : path | |
| null nexts = Nothing |
Basic unit type:
λ> replTy "()"
() :: ()
Basic functions:
Instructions are modified from emacs-w64 Wiki page by zklhp. Many thanks for sharing!
Download the latest MSYS2 from this download page.
Install MSYS2 to, for example, C:\msys2
(make sure no space in path to avoid unwanted problems).
Optionally prettify the MSYS2 console mintty
with ~/.minttyrc
to make it more pleasing to eyes. Thanks to this awesome theme!
via: http://www.webupd8.org/2014/05/install-popcorn-time-in-ubuntu-or.html
To add the WebUpd8 Popcorn Time PPA and install the app in Ubuntu / Linux Mint (and elementary OS along with Ubuntu derivatives: Xubuntu, Kubuntu, etc.), use the following commands:
$ [sudo] add-apt-repository ppa:webupd8team/popcorntime
$ [sudo] apt-get update
$ [sudo] apt-get install popcorn-time
# Compiled source # | |
################### | |
*.com | |
*.class | |
*.dll | |
*.exe | |
*.o | |
*.so | |
# Packages # |