recentpopularlog in

handcoding : shell   94

« earlier  
Revealed: the 20 firms behind a third of all carbon emissions | Environment | The Guardian
“Chevron topped the list of the eight investor-owned corporations, followed closely by Exxon, BP and Shell. Together these four global businesses are behind more than 10% of the world’s carbon emissions since 1965.”
theguardian  2019  globalwarming  climatechange  boycotts  chevron  exxon  bp  shell  science 
13 days ago by handcoding
What is Fill up and Go and how can it benefit me? – Shell Support
So it looks like Shell kinda supports Apple Pay?

“1. Enter and confirm the pump number from the comfort of your vehicle
“2. Using Apple Pay, Android Pay or PayPal, select your payment of choice to pay for your fuel quickly without queuing up in store.
“3. Then just Fill Up & Go. It really is as simple as that.
“4. You can also link your Shell Drivers’ Club loyalty card to ensure you earn your points.”

shell  applepay  2019  gas 
8 weeks ago by handcoding
Zoom out - All this
“[…] And since there’s only one matching process, we could reduce the command even further:

“kill -9 $(lsof -ti :19421)
“The $(command) construct says ‘run this command and put its output here.’”
leancrew  2019  drdrang  zoom  shell  terminal 
july 2019 by handcoding
Switch Audio Outputs with a Keyboard Shortcut on OS X | Apetronix
“If you want to get fancy, map it to a keyboard shortcut or set of keys. We’ll be using a combination of shell scripting and AppleScript.”
audio  mac  osx  macos  software  2019  terminal  shell 
march 2019 by handcoding
Swordfish90/cool-retro-term: A good looking terminal emulator which mimics the old cathode display...
“cool-retro-term is a terminal emulator which mimics the look and feel of the old cathode tube screens.”
opensource  github  retro  terminal  shell  2019  software  mac  macos  osx  linux 
february 2019 by handcoding
Is macOS Mojave Making Some Fonts Blurry? Here's How to Fix the Issue | Other World Computing Blog
“Not all Macs experience the fuzzy text issue; it appears to be most prevalent with non-Retina displays. As such, the methods discussed in this article to smooth fonts aren’t recommended for Macs with Retina displays. We’ll cover three ways to make the necessary adjustments on your Mac.”

mac  macos  osx  fontsmoothing  antialiasing  2018  terminal  shell 
november 2018 by handcoding
Base64 Encode & Decode on OSX –
This page goes over some Terminal commands that one can use to encode or decode base64 text.
mac  base64  terminal  shell  software  2018 
august 2018 by handcoding
Speed Up an Old Mac By Disabling These Animations
“Disabling animations makes OS X feel a bit faster, though it also makes it a little less fun to use. Still, if you’re sick of everything being slow, you can dig into the command line to fix things up. These are verified to work in OS X El Capitan, though they should also work in Yosemite.”
lifehacker  2015  mac  macos  osx  terminal  shell  defaults  animation 
june 2018 by handcoding
6 Ways to Get More Out of Your Mac's Notification Center « Mac Tips :: Gadget Hacks
"All you need to do is hold down Option on your keyboard as you click the Notification Center icon in the menu bar. The icon will change to gray, indicating that Do Not Disturb is enabled. You can do this with or without the Notification Center actually being open.”

"By default, banner alerts on your Mac stick around for roughly five seconds, which may not be enough time for a casual glance. More often than not, I miss the alert and need to check the Notification Center to get a second look. Thankfully, there's an easy way to make them stick around for as long as you want. In the Terminal app again, use the following command.

defaults write bannerTime 30
mac  osx  macos  notifications  donotdisturb  2015  terminal  shell 
january 2018 by handcoding
Use SF Mono Outside of Terminal and Xcode – Collin Donnell
“I really like the SF Mono font Apple includes in Sierra and High Sierra (even more than Menlo), but for some reason it’s only available inside of Terminal and Xcode. So I’m out of luck when I’m writing in MarsEdit, BBEdit, or any other third party app. Fortunately, you can just copy the font from Terminal’s app bundle and install it so it’s available everywhere.

“Run this command from the Terminal and you’re all set:

cp -R /Applications/Utilities/ /Library/Fonts/

“You could also ⌘-G in Finder and copy the files over that way if you prefer.”
sanfrancisco  monospaced  typefaces  terminal  shell  2017 
december 2017 by handcoding
All methods for restarting and shutting down your Mac | MacIssues
“While shutting down and restarting your computer might sound trivial, and are perhaps obvious tasks in most cases, there are a number of ways to go about doing these on your Mac, many of which you might not be aware of.”
restart  reboot  terminal  shell  canonical  2017 
november 2017 by handcoding
Advanced Settings using the Command Line (macOS) / Twitterrific / Knowledge Base - The Iconfactory, Inc Support
"Classic Notification Sound
If you want the notification sound from previous versions of Twitterrific for macOS, use this option:

defaults write VERSION generalClassicSounds -bool YES

"Again, use 'NO' if you change your mind."
twitterrific  terminal  shell  2017 
october 2017 by handcoding
macos - Using terminal to get current fan speed? - Ask Different
(This post offers some options for getting the system fan speed from the Terminal.)
"You can use smc to get fan speed information via"
mac  terminal  shell  2014  stackexchange  fans 
september 2017 by handcoding
ryanoasis/powerline-extra-symbols: Extra glyphs for your powerline separators
This looks to be a neat set of extra glyphs for ASCII art (like rounded ands and big slashes and things).
glyphs  ascii  shell  2017 
august 2017 by handcoding
How to Enable Dark Mode for the Dock Only in OS X Yosemite
"The above command enables dark mode and then restarts the Dock so you can see the change."
mac  dark  dock  terminal  shell  2014  macos  osx 
august 2017 by handcoding
Fix Dropbox permissions
This looks to be a Gist for fixing Dropbox's permissions.
dropbox  permissions  2017  software  mac  osx  terminal  shell 
august 2017 by handcoding
linux - Remove a symlink to a directory - Stack Overflow
Looks like the canonical way to remove a symlink is with:
$ unlink mySymLink

// Make sure not to have the / at the end!
symlinks  unix  2008  finder  terminal  shell  canonical  stackoverflow 
august 2017 by handcoding
alfred-cron/pause-backup-on-specific-wifi at master · shawnrice/alfred-cron
If you should need it, this post goes over some command line bits to check whether Backblaze is running.
backblaze  shell  terminal  2017  backup 
may 2017 by handcoding
Bash scripting quirks & safety tips - Julia Evans
"Yesterday I was talking to some friends about Bash and I realized that, even though I’ve been using Bash for more than 10 years now there are still a few basic quirks about it that are not totally obvious to me. So as usual I thought I’d write a blog post."
bash  shell  terminal  tutorials  beginners  2017 
april 2017 by handcoding
A Book Apart, Working the Command Line
(This is also a “Brief.”)
"Don’t fear the terminal. No, really. However you’ve wound up face-to-face with the cool glow of a terminal window, Remy Sharp is here to help. Gain command-line shortcuts and processing techniques, install new tools and diagnose problems, and fully customize your terminal for a better, more powerful workflow.”

A Book Apart’s description of “Briefs”:
"We’re thrilled to announce a new (even shorter!) series of books for people who work on the web. Introducing Briefs: ebook-only guides to essential fundamentals, of-the-moment techniques, or deep nerdery on a single aspect of a topic."
abookapart  ebooks  wishlist  commandline  shell  terminal  2016  briefs  books  bash 
december 2016 by handcoding
How to Install and Use the Linux Bash Shell on Windows 10
"Microsoft has worked with Canonical to offer a full Ubuntu-based Bash shell that runs atop this subsystem. Technically, this isn’t Linux at all. Linux is the underlying operating system kernel, and that isn’t available here. Instead, this allows you to run the Bash shell and the exact same binaries you’d normally run on Ubuntu Linux. Free-software purists often argue the average Linux operating system  should be called “GNU/Linux” because it’s really a lot of GNU software running on the Linux kernel. The Bash shell you’ll get is really just all those GNU utilities and other software."
windows  bash  shell  terminal  software  2016  ubuntu 
september 2016 by handcoding
Resolving Spotlight issues in OS X > Amsys
This post offers another Terminal-based technique for forcing Spotlight to reindex the drive. This one just kills off the Spotlight index with sudo.
terminal  shell  mac  osx  sudo  2016  spotlight 
august 2016 by handcoding
Fix Spotlight continually re-indexing your hard drive | MacIssues
This post goes over two techniques to force Spotlight to reindex your drive. The first option goes through System Preferences while the second uses some Terminal commands, namely:

mdutil -Ea
mdutil -ai off
mdutil -ai on
terminal  shell  2014  spotlight  mac  osx 
august 2016 by handcoding
terminal - How to cd to a directory with a name containing spaces in bash? - Ask Different
On referencing a folder with a space in it through the Terminal:
"If there is a space between words and you don't want to use the methods above, put a \ backslash before the space. eg cd ~/Library/Application\ Support
terminal  shell  mac  2011  spaces  folders  osx 
august 2016 by handcoding
TermHere · HASHBANG Productions
This is that app that adds a “New Terminal Here” item to the Finder’s context menu.
terminal  shell  mac  osx  software  2016 
june 2016 by handcoding
Hidden Settings · textmate/textmate Wiki
"TextMate has a few settings that aren’t exposed in the GUI. You can change these with the defaults shell command."
textmate  textmate2  defaults  shell  terminal  settings  prefs  2016 
may 2016 by handcoding
Use the Unofficial Bash Strict Mode (Unless You Looove Debugging)
via Mat: "I recently discovered the switch in Bash/Zsh to quit the script if there are undefined variables”

Mat went on to say:
"looks like for bash, you would do `set -u` at the start of the script"
bash  shell  scripting  terminal  mac  osx  2016  via:matak 
april 2016 by handcoding
Commands to Make Yosemite Suck Less - Avery Z Chipka
"Yosemite (Mac OS 10.10) may well be one of the best updates to the Mac Operating System in a long time and it has a huge number of backend changes that makes life a lot easier. While some of these changes are great for the average end user the may be super annoying for the IT people or those who spend there days doing coding work. This simple collection of command line command will help make your life with Yosemite better."
mac  osx  2014  defaults  terminal  shell  settings  prefs 
march 2016 by handcoding
osx - What functionality do 'marks' offer in the El Capitan Terminal? - Ask Different
"The new Terminal marks (available starting with OS X 10.11 - El Capitan) are similar to Bookmarks, which are also available in the Terminal, allowing you to mark window positions and then giving you the option of going back at a later point.

"Marks (or Bookmarks) don't refer to your command history, but to the scroll buffer used in the Terminal window/tab."
mac  osx  marks  terminal  shell  2015 
october 2015 by handcoding
osx - Previous commands wrapped with square brackets in OS X Terminal - Super User
"Yesterday my terminal started surrounding commands that had been run with square brackets. I'm not sure how I've turned this on, but would like to turn it off."
terminal  shell  mac  osx  2015 
october 2015 by handcoding
InScopeApps {+}
"ShellTo opens Terminal, iTerm, iTerm2, or xterm to the current directory in Finder."
apps  menubar  terminal  2015  mac  osx  software  shell 
october 2015 by handcoding
Simple Tricks to Improve the Terminal Appearance in Mac OS X
This post goes over some general tips for setting up color schemes in OS X’s Terminal.
terminal  color  colorschemes  shell  bash  2013  mac  osx 
august 2015 by handcoding
Faster Mac OS X 10.10 Yosemite Upgrades for Developers – Jim Lindley
"Your Yosemite upgrade may take many hours if you’ve got anything non-Apple in your /usr folder (Homebrew, Texlive, or Mactex for example). If you got here by googling for “Yosemite install stuck” or “one minute remaining” it’s too late to speed it up… but don’t turn off your computer, let it finish."
yosemite  upgrade  slow  osx  mac  usr  local  shell  terminal  2015 
august 2015 by handcoding
LS Colors for Smyck Color scheme
It looks like this Gist has the LSCOLORS setting for the Smyck color scheme (which should set those colors for "ls" output and such). (Smyck is
smyck  color  colorschemes  lscolors  bash  shell  terminal  mac  osx  2015 
august 2015 by handcoding
How to Change Mac OS X Terminal Color? • Crunchify
This post goes over the bash commands to enable color within Bash.
bash  osx  shell  terminal  color  colorschemes  2014  mac 
august 2015 by handcoding
Smyck Color Scheme
(This is actually a pretty decent color scheme for Terminal on OS X. "This is a color scheme for terminals and text editors to create a homogenous work environment which is pleasant for the eyes. The colors are carefully chosen and should work well in many different situations.

"The terminal settings will update the ANSI color definitions to allow the vim theme to work in the terminal as well. This way your development environment will look the same no matter if you work on your local or a remote machine."
mac  osx  terminal  shell  color  colorschemes  2015 
august 2015 by handcoding
Command Line Power User
"A video series for web developers on learning a modern command line workflow with ZSH, Z and related tools." Perhaps this may be worth a look?
shell  terminal  zsh  tutorials  videos  2015 
july 2015 by handcoding
Learn The Command Line The Hard Way
via @jesslynnrose: "This free tutorial on using the command line/terminal is pretty great"
books  shell  terminal  bash  tutorials  2015 
july 2015 by handcoding
Become a Command Line Power User with Oh-My-ZSH and Z
Billy Gregory recommended this: "This article provides insight into some of the best tools to use in your day-to-day workflow in the command line and gets you started with a totally customized setup. Also, please make sure to check out my series on how to become a command-line power user, available for free, of course."
zsh  shell  terminal  2015  tutorials 
july 2015 by handcoding
Oh My Zsh
This is that zsh-customization site that Karl recommended (especially for Git integration with the shell and prompt).
git  shell  terminal  zsh  via:karlgroves  2015 
july 2015 by handcoding
How to Play a Power Charging Sound Effect in OS X When a MacBook is Plugged in (Like iOS) | OSXDaily
"When you connect a power source to an iPhone, iPad, iPod touch, or MacBook, a familiar charging chime sound will trigger from the device, indicating that a cable is attached and the device is getting power. If you like hearing that auditory confirmation that a device is getting power, you can add the exact same audio playback feature to any MacBook Pro or MacBook Air by turning to the command line of OS X. You’ll even get an onscreen visual cue on the Mac indicating where the battery charge is, which looks straight out of iOS as well."
ios  mac  osx  terminal  shell  2015  power  battery  prefs  setup 
april 2015 by handcoding
How to find out which fonts are referenced and which are embedded in a PDF document
This post goes over how you can extract the font names from a PDF:

strings yourPDFfilepath.pdf | grep FontName
fonts  typefaces  typography  pdf  2011  shell  terminal  osx 
october 2014 by handcoding
osx - TerminalColours not loading in OS X Terminal - Stack Overflow
"Terminal has had options to customize ANSI colors since 10.7, so TerminalColours is no longer needed."
TerminalColours  terminal  mac  osx  shell  10.6  10.7  color  2013 
august 2014 by handcoding
jq—like sed for JSON data
"jq is like sed for JSON data – you can use it to slice and filter and map and transform structured data with the same ease that sed, awk, grep and friends let you play with text."
shell  javascript  2013  sed  json 
november 2013 by handcoding
HOWTO turn your shell-prompt into a hamburger - Boing Boing
"Andre Torrez has a cute and simple recipe for making your shell prompt into a hamburger (or other whimsical emoji character)"
prompt  shell  unix  bash  unicode  emoji  2013 
april 2013 by handcoding
Ctrl+R to search and other terminal history tricks
"Well, you can also search your command history as you type using the very useful Ctrl+R key combination."
bash  shell  terminal  2007  lifehacker  search 
august 2012 by handcoding
fish's fish shell
From @danielpunkass and retweeted by @sircusa: "The developer of the Mac's best hex editor, Hex Fiend, tackles the shell" (There's also a corresponding Hacker News thread:
shell  osx  mac  2012  terminal  software  bash 
june 2012 by handcoding
holman/spark - GitHub
Looks like this jobbie can be used to create sparklines in one's shell.
sparklines  github  shell  terminal  2011 
november 2011 by handcoding
Tutorial for chmod
"This is a tutorial that teaches the UNIX/Linux chmod command."
chmod  tutorials  canonical  2011  shell 
may 2011 by handcoding
10.4: Use Preview to view formatted man pages - Mac OS X Hints
"If you don't like having to scroll through man pages with the arrow keys on iTerm, or if you just want them to look better, you can get your Mac to open them in Preview using an undocumented feature of the open command that's been mentioned on this site before."
preview  manpages  unix  shell  2005  documentation  osx  mac 
may 2011 by handcoding
Secret Geometry: Cathode
"Bask in the glow of over-bright phosphors that flash on and slowly fade away."
terminal  shell  osx  mac  software  shareware  2011 
january 2011 by handcoding
Wikipedia CLI | One Thing Well
"You can query Wikipedia from the command line using dig."
wikipedia  terminal  bash  shell  2011 
january 2011 by handcoding
rupa/z at master - GitHub
"z keeps track of the directories you cd to, and lets you ‘jump’ to the ones you cd to the most."
shell  bash  cd  2010  terminal  via:hotdogsladies 
december 2010 by handcoding
Gregable.: Why you should know just a little Awk
" Knowing 10% of awk's already small syntax, which you can pick up in just a few minutes, will dramatically increase your ability to quickly manipulate data in text files. Below I'll teach you the most useful stuff - not the "basics", I won't try to teach you any "fundamentals", but the 5 minutes worth of practical stuff that will get you most of what I think is interesting in this little language."
awk  tutorials  canonical  sed  2010  shell  bash  terminal 
september 2010 by handcoding
Change the iTunes 10 close/minimize/maximize buttons back to horizontal - OS X Daily
"If you want to get the classic horizontal close/minimize/maximize buttons back in iTunes 10, type the following into the Terminal and relaunch the iTunes app [...] "
itunes  itunes10  terminal  shell  2010 
september 2010 by handcoding
Linux Online - Bash Prompt Escape Sequences
This page goes over many (if not most?) of the bash escape sequences that one can use in one's prompt (such as hostname, time, bash version, and so on). (Note to self: current time in am/pm format is "\@".)
bash  terminal  shell  prompt  time  2010 
august 2010 by handcoding
Calling TextMate from Other Applications | TextMate Manual
This page goes over how one can set up environment variables to set TextMate as one's default editor in the shell/terminal.
textmate  osx  mac  shell  terminal  2009  git  editor  default 
august 2009 by handcoding
Meet the Command Line | PeepCode Screencasts for Web Developers and Alpha Geeks
"In this 70 minute screencast you’ll learn about the basic assumptions of Unix, how to look for help, and how to confidently work with files, directories, and programs."
2009  tutorials  screencasts  via:therealadam  terminal  shell  unix 
may 2009 by handcoding
How to run Safari 4 beta and Safari 3 on the same mac: BeatnikPad Journal
"Here’s a quick how-to get both Safari 3 and 4 beta running on the same system. You will need to use the terminal for part of this, and we will download an older copy of Webkit, which is Apple’s development builds of Safari."
2009  css  mac  osx  browsers  safari  terminal  shell  webkit  safari4  via:neilio 
february 2009 by handcoding
A better history command - Curtis Bartley's Blog
"I found myself doing this so much that I eventually bit the bullet and wrote a better history command provides built in grep-like filtering."
2009  mac  osx  shell  bash  history 
january 2009 by handcoding - Discover which programs prevent disk image ejection
This post goes over a Terminal command that can tell you which apps are preventing a given disk from ejecting. ("Now when the Finder tells me I can't eject the volume 'DODO,' I just run this in the Terminal: 'lsof | grep DODO' ") [This is the same as the "### is in use and could not be ejected" problem.]
2008  mac  osx  finder  terminal  shell  eject  volume  lsof  use  inuse 
january 2009 by handcoding
Terminal Tips: Enable "path view" in Finder - The Unofficial Apple Weblog (TUAW)
"The Terminal command below will enable path view in the Finder -- this means that you will see the directory path to the current folder you are browsing in the title bar, instead of only seeing the name of the current directory."
finder  osx  mac  terminal  shell  defaults  2008 
december 2008 by handcoding
lns -- a friendly program for making symbolic links
"It's easy to make mistakes when you're using ln -s to make symlinks. So use this program, lns, instead -- it's basically ln -s plus lots of sanity-checking and DWIM ("do what I mean"). Notably, it doesn't care whether you say lns target symlink or lns symlink target."
via:gruber  shell  bash  terminal  osx  mac  2008 
october 2008 by handcoding
5 Ways To Search For Files Using The Terminal |
"Today we will look at some of the common ways to search for files in Linux using the Terminal."
linux  unix  shell  terminal  bash  find  search  files  locate  2008 
september 2008 by handcoding
Ask Lifehacker: How do I customize my command line prompt?
This post (and its comments) offer some ideas on configuring one's prompt in OS X and Linux.
osx  mac  linux  2006  lifehacker  shell  unix  prompt 
july 2008 by handcoding
Cut down on Linux command-line typing with these 10 handy bash aliases | 10 Things |
"But even though I’m used to typing, spending hours upon hours with my fingers at the keyboard, I still grow tired of typing the same commands over and over. To reduce that tedium, I always add aliases to my .bashrc file."
shell  aliases  unix  2008  linux  bash 
july 2008 by handcoding
zsh: Prompt Expansion
This page goes over the various substitution-variables that can be used to form a prompt in zshell.
zsh  zshell  shell  prompt  osx 
june 2008 by handcoding
Recursively Deleting Files/Directories in Terminal | Ask MetaFilter
"Is there a way to recursively delete (full) directories, say ones that end in .blob using wildcards?" (Quite a few helpful responses ensue.)
bash  rm  find  osx  mac  shell 
january 2008 by handcoding
Introduction to lsof (LiSt Open Files)
"LiSt Open Files is a useful and powerful tool that will show you opened files. In Unix everything is a file: pipes are files, IP sockets are files, unix sockets are files, directories are files, devices are files, inodes are files..."
unix  lsof  bash  shell  files 
october 2007 by handcoding
Mapping to a network drive / storage - The Apple Blog Community
This post goes over a set of Automator / shell scripting steps to enable auto-reconnecting to an SMB share after waking from sleep. It's not exactly straightforward, but I haven't yet come across a better way to do it.
automator  shell  sleep  smb  osx  mac  macbookpro 
may 2007 by handcoding
Alias (Unix shell) - Wikipedia, the free encyclopedia
Conveniently, this page covers the common Bash aliases for getting cp and mv to prompt the user before overwriting files.
bash  alias  cp  mv  overwrite  shell  files 
april 2007 by handcoding
ManOpen - MacOS X GUI application for viewing Unix manual pages
"ManOpen is a MacOS X GUI application for viewing Unix manual pages, which are the standard documentation for Unix command line programs, programmer libraries, and other system information."
mac  osx  shell  documentation  man  software  unix 
march 2007 by handcoding
ExifTool by Phil Harvey - Read, Write and Edit Meta Information
"ExifTool is a platform-independent Perl library plus a command-line application for reading, writing and editing meta information in image, audio and video files. ExifTool supports many different types of metadata including EXIF, GPS, IPTC, XMP, JFIF, Ge
jpeg  exif  perl  freeware  windows  mac  osx  photography  id3  shell 
february 2007 by handcoding
Phil Windley's Technometria | Opening Finder Folder in iTerm
This goes over the steps to get an "Open in iTerm" context menu in the Finder. If you'd like to try this, you may find it helpful to also follow the instructions at the "little script" link at
osx  mac  finder  iterm  shell  automator  applescript 
january 2007 by handcoding
TextMate Blog » TextMate shell utility (tm/mate)
"mate" can be used to invoke TextMate from the shell; naturally, it also accepts a command-line argument for a file you'd like to open.
textmate  osx  mac  shell  mate 
january 2007 by handcoding
Eliminate Subversion Passphrase Prompts with SSHKeychain :: Bill Burcham’s memeRocket
"Unfortunately, on OS X, the ssh command line tools are not integrated with Keychain Access."
osx  mac  ssh  shell  keychain 
january 2007 by handcoding
Color Your OS X Command Prompt
This goes over the steps for enabling color-highlighting for ls (and possibly other commands) in bash.
bash  osx  mac  shell  colors 
january 2007 by handcoding
Hivelogic: Articles: Using /usr/local
This goes over what /usr/local/ is for and some of its potential benefits. (In short, users can install stuff there and system updates won't try to change them.)
bash  osx  mac  software  usrlocal  shell 
january 2007 by handcoding
Exit Codes - UNIX / Linux Bourne / Bash Shell Scripting Tutorial
"We shall look at three different methods for checking error status, and discuss the pros and cons of each approach."
osx  bash  mac  shell  exitcodes 
january 2007 by handcoding
« earlier      
per page:    204080120160

Copy this bookmark:

to read