Skip to content

Instantly share code, notes, and snippets.

@MilanGrubnic70
Created February 15, 2014 20:18
Show Gist options
  • Save MilanGrubnic70/9024712 to your computer and use it in GitHub Desktop.
Save MilanGrubnic70/9024712 to your computer and use it in GitHub Desktop.
Command Line Obstacle Course Challenge
Id CommandLine
-- -----------
202 cd .\DBC
203 ls
204 cd..
205 ls
206 git add "sample gist"
207 git add sample gist
208 git add "sample gist.sh"
209 git status
210 git add "sample gist"
211 ls
212 git add "Sample Gist"
213 git add "Sample Gist.rb"
214 git add "Sample Gist.sh"
215 git status
216 git status
217 git commit -m "my first attempt to commit a gist" "Sample Gist.sh"
218 gits status
219 git status
220 git log
221 cls
222 cd//
223 cd..
224 cd//
225 cd..
226 ls
227 rm .\CLI-Obstacle-Course -force
228 ls
229 csl
230 cls
231 git clone https://github.com/dbc-challenges/CLI-Obstacle-Course.git
232 cd .\CLI-Obstacle-Course
233 ls
234 ls -force
235 mv .\images .\app\assets
236 cd .\app\assets
237 ls -force
238 cd..
239 cd .\views
240 cd .\static_pages
241 ls -force
242 mv .\this_is_the_annoying_ping_pong_text!.txt ..
243 ls ..
244 ls ..\..
245 cd..
246 cd..
247 ls
248 cd .\views
249 ls
250 mv .\this_is_the_annoying_ping_text!.txt ..
251 mv .\this_is_the_annoying_ping_pong_text!.txt ..
252 ls ..
253 mv ../this_is_the_annoying_ping_pong_text!.txt .\static_pages\
254 cd .\static_pages
255 ls
256 mv .\this_is_the_annoying_ping_pong_text!.txt where_are_you?.txt
257 mv .\this_is_the_annoying_ping_pong_text!.txt where_are_you\?.txt
258 mv .\this_is_the_annoying_ping_pong_text\!.txt where_are_you\?.txt
259 mv .\this_is_the_annoying_ping_pong_text`!.txt where_are_you`?.txt
260 mv .\this_is_the_annoying_ping_pong_text`!.txt where_are_you?.txt
261 mv .\this_is_the_annoying_ping_pong_text!.txt where_are_you.txt
262 mv .\where_are_you.txt where_are_i?.txt
263 mv .\where_are_you.txt where_are_i.txt
264 pwd
265 history
266 get-history 264- 32
267 get-history 264 -count 32
268 get-history 233 -count 32
269 echo (pwd) where_are_i.txt
270 echo (pwd) > where_are_i.txt
271 cd ~
272 dir -r -filter "static_pages_controller.rb"
273 cd .\CLI-Obstacle-Course\app
274 mv .\helpers\static_pages_controller.rb .\controllers\
275 cd..
276 dir -r -filter "*controller*"
277 Select_String "def bootinator" *.rb
278 Select-String "def bootinator" *.rb
279 mv ./app/assets/stylesheets/application_helper.rb ./app/helpers
280 ls
281 rm .\delete_me -force
282 history
283 dir -r -filter "*winning.rb"
284 cp .\config\environments\you_are_winning.rb ..\..\..
285 cd..
286 ruby .\you_are_winning.rb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment