3055
Great quick tips for Unix, Vim
Unix

cd -

Toggle between the previous and current directory. Remember that time you entered cd [insert long directory path here], and then shouted [insert expletive here] because you needed to immediately return to the previous directory.

history

See a list of all previous commands in your buffer.

ctrl+R

Search for a previously typed command in your buffer.

sudo !!

Re-run the previous command as root.

grep -r "some text" *

Search for "some text" in all files in the directory and subdirectories.
When you highlight just about any text in Unix, it is automatically stored in a buffer; you can "paste" this text anywhere by simply middle-clicking, which is often faster than copying and pasting when you're forced to use the mouse.

Vim

You should not have to tap the space bar multiple times just to do indentation. Expand your tabs to spaces by placing something like this in your ~/.vimrc

:set tabstop=2
:set shiftwidth=2
:set expandtab

Just avoid hard tabs! Gah!

Want to indent or de-indent a large block of code without doing it one line at a time? Open visual mode, highlight the block, and then do > or < to indent or de-indent the entire block.

0 and $
Jump to the beginning or end of a line.

/some text
Search for all instances of "some text". Tap n to cycle through matches.

:%s/some text/other text/gc
Find all instances of "some text" and replace with "other text" with y/n confirmation for each.

:tabe filename
:tabn
:tabp
Open a file in a new tab.
Go to next tab.
Go to previous tab.

Dating

lol jk.

Host current directory on an HTTP server

Want to quickly start an HTTP server hosting files in the current directory? Have no fear! Python is here:

python -m SimpleHTTPServer
programming  unix 
14 hours ago
Brexit spells upheaval for EU and UK drug regulation | Reuters
EMA may have to move. Might also reduce UK access to medicines.
brexit 
18 hours ago
IDS goes off-message on Brexit plan while Labour tears itself apart | Politics | The Guardian
“We never made any commitments. We just made a series of promises that were possibilities.
brexit 
yesterday
Alicia Keys is done playing nice. Your phone is getting locked up at her shows now. - The Washington Post
Phone case called yondr to allow people to keep their phones with them but unusable at an event.
jade  phone 
5 days ago
The Elements of Stickers – Andreessen Horowitz
Why stickers are important and why people don't understand them (seem frivolous, aren't)
stickers  social  line 
8 days ago
Meucci local phone calling
Cunning use of GSM to make calls for just local costs.
phone  international  group  business 
11 days ago
With LinkedIn, Microsoft will know us all too well - without bullshit
Facebook for affinity
Google for intention
Amazon for purchases
Microsoft for work
future  ai  business 
14 days ago
2016 CNBC's Disruptor 50
Companies that are disrupting.
business  tech 
15 days ago
“K I Get Uber” — 500ish Words
Chat bots parsing the words you type to trigger actions.
15 days ago
The GRIM test — a method for evaluating published research. — Medium
How to check some basic stats: look at the number of people in the study and check the mean given. e.g. sum of ages can only change by whole numbers so the mean can only change in increments of 1 / the number of people. Important
statistics  stats  publications 
22 days ago
TSZ SHAN MONASTERY - Online Booking
Book one month in advance at 0800 to be in with a chance.
Hong  Kong 
22 days ago
rafat.org • The End of Scale
By creating unique residents, not unique visitors. By creating something people want to come to, deliberately, again and again, and stay.

Good summary
media  business 
22 days ago
Uncovering Big Bias with Big Data
Useful run through some open data and how to analyse it. Lots of issues to begin with that got picked up thank to open sourcing the method.
analytics  data  law 
22 days ago
Why SEO should be an afterthought - without bullshit
Don't worry about SEO. Optimize for readers not traffic.
seo  business  writing 
23 days ago
Redefining capitalism | McKinsey & Company
Businesses create solutions to problems with capitalism as the driver. Democracy to assign resources.
capitalism  economics  government 
27 days ago
Precise control over responsive typography · MadebyMike
Using vw / vh to get scaling font sizes. Neat.
css  font  size 
27 days ago
The New 10-Year Vesting Schedule
How to not piss off your employees with vesting schedules
6 weeks ago
Stumbling and Mumbling: Economics vs bankers
How to use economics to fight banker rent seeking
6 weeks ago
Top Airlines to Fly International Economy Class
Good selection of airlines to fly economy on.
7 weeks ago
« earlier      
(source: 100 15 365 3d 7 <http://idlewords.com/talks/web_design_first_100_years.htm> <http://tapbots.com> <http://www.wired.co.uk/magazine/archive/2014/10/how-to/how-to-learn-a-language-in-three-months?utm_content=buffer398c3&utm_medium=social&utm_source=twitter.com&utm_campaign=buffer> <https://twitter.com/download?ref_src=mailtweet-ios> a abortion accommodation accounting ad adblock adblocker admin adobe ads advertising agents ai aid alcohol alerts algorithms allegri alloy alphago amazon analysis analytics and android angel animation antifragile apache api apk apns app apple applications apps arabic architecture are arguments art ask astronaut atom autcomplete autohotkey automation autonomous averages backbone backup balsamiq banking bash be beach beijing best-practices bieber big billion birds bitcoin blackberry blogs boat book books boot bootstrap bots brew brexit bridge budget bug build business but calendar calls calorie canada cancer cantonese canvas capitalism capture card case cashless cat cats cctv cecilians centos central ces charity charts chat cheat cheating cheese chennai chief china chinese chrome clear cli climate cloud cm12 code codeigniter coffee color colour colours comedy comic command commerce commonjs comms community_ competition competitor composition compute computers conference consistency content contextual control conversation conversion cooking cortana costs coupons cpanel crash crashplan creation credit creditcard crontab cross-platform crowdfunding crypto css curl currencies currency customer cv daesh data database databases debug debugging decompile dedupe deepmind defense definitions demand democracy design desktop destinations developer developers development device devops diet digital dilemma dining discussion dns do does doomed download dragon drawer drive driver driving drm drones dropbox droplet drugs drupal dual ebook eco ecommerce economics economist economy editor education effective_ election email emoji emulator encryption engineering epub error errors events eventual everything example examples excel executive exercise expat extraction extreme facebook fake family feeds ffmpeg file files finder firmware fishing fitness fix font fonts food forecast formatting forms framework frameworks free freedom fridge friends frontaccounting ftp functional future gadgets game gantt gap garmin gathering gen-x gender generation generations geolocation germs ghana gifts git gmail go goal going google governance government grab graph gravity group growth guide guns hack hacking hands haptic hardware hctv he health healthclubtv heartbleed helium help helpdesk here hiking hiring hk hockeykit holidays homebrew hong hopeful hosted hosting house. housing hr html html5 htpc http://blog.launchdarkly.com/feature-flag-driven-development/ http://feedproxy.google.com/~r/pennolson/~3/c5xtj_gwoyk/ http://feedproxy.google.com/~r/springwise/~3/kyobitxixys/story01.htm http://feedproxy.google.com/~r/springwise/~3/trx0kss3tza/story01.htm http://fibbing.net/ http://fivethirtyeight.com/features/how-to-tell-good-studies-from-bad-bet-on-them/ http://framerjs.com/examples/ http://jex.im/regulex/#!embed=false&flags=&re=%5e(a%7cb)*%3f%24 http://radar.oreilly.com/2015/01/what-containers-can-do-for-you.html http://rubaxa.github.io/sortable/ http://stumblingandmumbling.typepad.com/stumbling_and_mumbling/2015/12/capitalism-socialism-innovation.html http://vimeo.com/113933784 http://vis.stanford.edu/files/2012-interpretationtrust-chi.pdf http://www.bhorowitz.com/high-output-management http://www.chinafile.com/conversation/what-does-hong-kongs-post-protest-report-signal-relations-beijing?utm_source=the+sinocism+china+newsletter&utm_campaign=db78952701-sinocism01_14_15&utm_medium=email&utm_term=0_171f237867-db78952701-24573061&mc_cid=db7 http://www.cs.umd.edu/hcil/keshif/ http://www.emergent.info/ http://www.fsarchiver.org/main_page http://www.jwplayer.com/pricing/ http://www.newsweek.com/2015/01/23/jihadis-299505.html http://www.nytimes.com/2015/01/18/opinion/sunday/is-a-climate-disaster-inevitable.html http://www.oldhkphoto.com/coast/ http://www.scmp.com/node/1843342 http://www.timeout.com.hk/restaurants-bars/features/70573/time-out-hong-kongs-top-30-dishes-of-2014.html http://www.zeit.de/feature/freedom-of-press-china-zhang-miao-imprisonment?utm_source=the+sinocism+china+newsletter&utm_campaign=db78952701-sinocism01_14_15&utm_medium=email&utm_term=0_171f237867-db78952701-24573061&mc_cid=db78952701&mc_eid=743b9e45b4 https://auduno.github.io/clmtrackr/examples/facesubstitution.html https://developer.apple.com/library/ios/documentation/ides/conceptual/appdistributionguide/distributingenterpriseprogramapps/distributingenterpriseprogramapps.html https://medium.com/backchannel/a-teenagers-view-on-social-media-1df945c09ac6 https://medium.com/backchannel/google-search-will-be-your-next-brain-5207c26e4523 https://stratechery.com/2015/selling-feelings/ https://theintercept.com/2015/11/05/george-h-w-bush-was-so-bored-by-peace-he-wanted-to-quit/ https://theintercept.com/2015/11/17/islamic-states-goal-eliminating-the-grayzone-of-coexistence-between-muslims-and-the-west/ https://theintercept.com/2015/11/17/u-s-mass-surveillance-has-no-record-of-thwarting-large-terror-attacks-regardless-of-snowden-leaks/ https://theintercept.com/2015/11/18/nyt-editorial-slams-disgraceful-cia-exploitation-of-paris-attacks-but-submissive-media-role-is-key/ https://theintercept.com/2015/11/18/signs-point-to-unencrypted-communications-between-terror-suspects/ https://theintercept.com/2015/11/18/terrorists-were-already-known-to-authorities/ https://twitter.com/4b5/status/543532284238774274 https://twitter.com/alex_ogle/status/547579586532233217 https://twitter.com/bengoldacre/status/530424422801629185) https://twitter.com/bengoldacre/status/540982615172710401 https://twitter.com/caitlinmoran/status/537339470480433152 https://twitter.com/casey_lau/status/533812483530571776 https://twitter.com/charlesarthur/status/535926991086977025 https://twitter.com/dawnhfoster/status/530305630339604480) https://twitter.com/hkstream/status/547246719054786560 https://twitter.com/katemond/status/541003882705727488 https://twitter.com/martyn_williams/status/530500695053848577) https://twitter.com/monkbent/status/542895133587288064 https://twitter.com/niubi/status/533428079918465024) https://twitter.com/npearsonwright/status/541795266387402752 https://twitter.com/producthunt/status/531229922589937664) https://twitter.com/producthunt/status/534657421478998017) https://twitter.com/producthunt/status/535533170268340224) https://twitter.com/producthunt/status/535591076573499392) https://twitter.com/producthunt/status/536318337673080832 https://twitter.com/producthunt/status/538417276907978752) https://twitter.com/producthunt/status/552985722891014144 https://twitter.com/producthunt/status/553728054154235904 https://twitter.com/robinince/status/547888599925280768 https://twitter.com/startupshk/status/553395092330151936 https://twitter.com/timeouthk/status/536777769972027393 https://twitter.com/tomgrundy/status/541770178099302402 https://twitter.com/tomgrundy/status/542276255408607232 https://www.eater.com/a/panda-express-one-day https://www.howtoforge.com/community/threads/postfix-migration-from-old-box-to-new-box.44857/ https://www.mjt.me.uk/posts/falsehoods-programmers-believe-about-addresses/ https://www.techinasia.com/video-resumes-leading-mark/ icon icons id identity illustrator images incubators indesign india industry infovis infrastructure ini innovation install interface international internet interview investing investment invoicing ios ipad ipadsee ipa’s iptables is islam it itunesconnect jade jake java javascript journalism json junk karlan key kong korea language launcher law layout learning lessons letsencrypt line links linter linux load lobahn lobbying localisation logging lollipop london loop mac machine machinelearning magazine magento mail management manager manufacturing maps markdown marketing mars maths mean meat mechanical media membership message mget microbes microcorruption.com/login microsoft migration millenials minute mirror miserere mobile modules monitoring more movies msg mturk multiple multisite music must myanmar mysql myth nagios name navigation networking new news newsblur newsstand nexus nginx nocv nosql not note nsa nz ocean odbc odin office offline older on one one: online opo options orientation osx our outlook p2p packages paddling page paint panorama papers paris parse passport password payment payments pc pdf pet pets pharmaceutical philosophy phishing phone photo photos photoshop php picasa pinker pit pitching platform plugin plus poetry pollution population porn pose prediction present president press pricing principles printing privacy problems producer products programmers programming prohibition property psychology public publications publisher publishers publishing push qnap quality rabbit react read reader reading really recipe recognizing refine regex reheat remove rental replace rescue resources responsive restaurants resume retail retention retina retro revenue revert review rgb risk room root roundcube rss s3 said said. sales samsung sass sat scaling scans science scrape screen screencapture screencast scrum seagods search season security seed selling sendmail seo seoul serialized server serverpilot service setup sgs5 sharing sheet sheets shell shellshock sholto shop sim simple simulator singapore singing singularity siri size sketch ski skyscraper slack sleep sleeping smartphone snakes snippets snowden social sociology software source: space speed speeded spider sport spotify sprites sql ssh ssl stack star startup startups statistics stats status stickers storage strategy streaming study stuxnet style sublime supplements support surfing surveillance sustainability sync syria tablet taleb team tech technology television template temple terrorism testflight testing text that the theme there things thinking ticketing time timelapse timestamp tips titanium to tomato tool tools tor torrent tourism transfer transformation translation transportation travel travelling trello trends troubleshooting trump try tsunami tumblr tv twitter uber ubuntu ucview ui ui/ux uk ultimately umbraco unicorns unix untracked up update us usa usability usermin ux vacation valuation vc vertical vi video viewer vimeo virtualbox virtualmin virtuemart virus viv voice vpn vrm vulnerability watch water weather web webmin website wechat weuse.it weuseit wget wgw whistleblower whm wifi windows wine wireframe women woocommerce wordpress words work work.” work_” workflow workout writing www.kalzumeus.com/2015/03/09/announcing-starfighter www.visualcv.com/resume-samples?locale=en xiaomi xkcd xml yanomamo your youth ytsl's yum zealand zone “the “we

Copy this bookmark:



description:


tags: