recentpopularlog in
« earlier   later »
TermiT/Flycut: Clean and simple clipboard manager for developers
See also: https://apps.apple.com/us/app/flycut-clipboard-manager/id442160987
Forked from: https://github.com/snark/jumpcut/

It's just OK, but there's still no way to reliably ignore clipboard input from specific programs (like clipboard managers). Maccy pretty much gets the job done.
macos  clipboard  clipboardmanager  pasteboard  opensource  utility  app  alternativeto  unclutter 
september 2019
CutBox
This one is interesting because of the JavaScript transforms (which I didn't explore), and it does let you remove items from the history, but beyond that it's not great.

See also: https://github.com/cutbox/CutBox
macos  pasteboard  clipboard  clipboardmanager  utility  app  alternativeto  maccy  flycut 
september 2019
Jumpcut
See also: https://github.com/snark/jumpcut/

Flycut (available in the app store) is a fork of this.
macos  clipboard  clipboardmanager  pasteboard  utility  app  alternativeto  flycut 
september 2019
Maccy - clipboard manager for macOS
See also: https://github.com/p0deje/Maccy

I picked this one, because it respects when KeePassX clears the clipboard.

Initial setup:
<code class="language-bash">defaults write org.p0deje.Maccy hotKey control+command+c
# optionally
# defaults write org.p0deje.Maccy pasteByDefault true # default is false</code>

Giving this app permission to control accessibility features is only necessary if you want it to paste by default (default: false).
thisone  macos  pasteboard  clipboar  clipboardmanager  alternativeto  flycut  jumpcut 
september 2019
DeepL Übersetzer
There's also a PopClip extension for this.
translator  translation  linguee  ai  webapp  asaservice 
september 2019
How do I change the login screen background in macOS Mojave? - Ask Different
Long story short, name the image /Library/Desktop Pictures/Mojave.heic, preserving the original
macos  loginscreen  wallpaper  background  customization  mojave  10.14  solution 
september 2019
Run PyCharm for the first time - Help | PyCharm
You need to copy the folder from ~/Library/Preferences/Pycharm(whatever), *not* the "Application Support" folder.
pycharm  settings  import  firstlaunch  solution 
september 2019
Directory Listing: /pub/thunderbird/releases/60.8.0/
The last release of Thunderbird to support the old-school (non-WebExtension) extensions
thunderbird  dowload  archive 
september 2019
macos - How to run mvim (MacVim) from Terminal? - Stack Overflow
My solution: add /Applications/MacVim.app/Contents/bin to the PATH.
macvim  macos  console  terminal  cli  movein  solution 
september 2019
How to Show the Expanded Print Details Dialog in Mac OS by Default
<code class="language-bash">defaults write -g PMPrintingExpandedStateForPrint -bool TRUE</code>
macos  mojave  10.14  defaults  essential  movein  annoyance  printing 
september 2019
Disable Dock Bouncing in Mac OS X
<code class="language-bash">defaults write com.apple.dock no-bouncing -bool TRUE</code>
macos  defaults  solution  dock  animation  movein 
september 2019
Disable Notification Center & Remove the Menu Bar Icon in Mac OS X
<code class="language-bash">launchctl unload -w /System/Library/LaunchAgents/com.apple.notificationcenterui.plist

killall NotificationCenter</code>
mac  osx  defaults  notificationcenter  annoyance  maybesolution 
september 2019
MartinHarding/macOSuckless: Scripts, commands, hacks, and tweaks to make macOS suck less.
<code class="language-bash">
# always show the detailed Print dialog
# source: http://osxdaily.com/2018/03/19/show-expanded-print-details-dialog-mac-default/
defaults write -g PMPrintingExpandedStateForPrint -bool TRUE

# Unhide Library folder
# (might require a restart)
chflags nohidden ~/Library

# Expand Save Panel by default
defaults write -g NSNavPanelExpandedStateForSaveMode -bool true
defaults write -g NSNavPanelExpandedStateForSaveMode2 -bool true

# Set Dock size and make it unchangeable
defaults write com.apple.dock tilesize -int 48
defaults write com.apple.dock size-immutable -bool true
killall Dock

# Dim Dock icon when application is hidden
defaults write com.apple.dock showhidden -boolean true
killall Dock

# Add a blank space to the end of Dock
defaults write com.apple.dock persistent-apps -array-add '{tile-data={}; tile-type="spacer-tile";}'
killall Dock

# Disable shadows on window screenshots
defaults write com.apple.screencapture disable-shadow -bool true
killall SystemUIServer

# Disable animations when you open an application from the Dock.
defaults write com.apple.dock launchanim -bool false

# disable bounce animation when application wants attention
# source: http://osxdaily.com/2010/02/19/disable-dock-bouncing/
defaults write com.apple.dock no-bouncing -bool TRUE

# Make all animations faster that are used by Mission Control.
# (not sure if this does anything, actually)
defaults write com.apple.dock expose-animation-duration -float 0.1

# Fixes an issue with some applications that have poor smoothing in Mojave when not running on Retina monitors.
# (not sure how much good this actually does)
defaults write -g CGFontRenderingFontSmoothingDisabled -bool NO
</code>
macos  osx  dotfiles  defaults  annoyances  movein  essential 
september 2019
Disable the New Window Animation in Mac OS X
<code class="language-bash">defaults write NSGlobalDomain NSAutomaticWindowAnimationsEnabled -bool NO</code>
window  animation  dialogbox  defaults  movein  essential  macos  mojave  10.14  solution 
september 2019
How to Show to ~/Library Folder in MacOS Mojave, High Sierra, Sierra
Choose “Show Library Folder” in the settings options for the User home folder
finder  libraryfolder  mac  osx  mojave  10.14  tipsandtricks  essential  movein  solution 
september 2019
10 of the Best Defaults Write Commands to Improve Mac OS X
Not sure if this works in Mojave (10.14):
<code class="language-bash">defaults write com.apple.dock expose-animation-duration -float 0.12 && killall Dock</code>
mac  osx  macos  defaults  settings  desktoptweaks  reference 
september 2019
Lake Wobegon - Wikipedia
The Lake Wobegon effect, a natural human tendency to overestimate one's capabilities, was named by David Myers in honor of the town.[12] The characterization that "all the women are strong, all the men are good-looking, and all the children are above average" has been used to describe a real and pervasive human tendency to overestimate one's achievements and capabilities in relation to others.
psychology 
september 2019
How to Use Only a Dark Menu Bar and Dock in macOS Mojave
It's not perfect (Notification Center looks like ass, for example), but it's good enough for government work.

<code class="language-bash">defaults write -g NSRequiresAquaSystemAppearance -bool Yes</code>
macos  mojave  darkmode  dock  menubar  customization  solution  fuckina  10.14  movein 
august 2019
linux - Getting warning ignoring option '--databases' due to invalid value 'testdatabase' in mysql while importing data - Stack Overflow
tl;dr: the 'database=' option from the '[client]' section is getting mistaken for the '--databases' (boolean) option to 'mysqldump'. It's harmless.

See also: https://bugs.mysql.com/bug.php?id=41209
mysql  errormessage  dba  bug  solution 
august 2019
python - How does the dependency resolution works with pip when a package specify a range and another doesn't? - Stack Overflow
I think I just understood "global dependency" resolution. IPython and ptpython require prompt_toolkit >= 2.something, but 'mycli' depends on something like 0.16. So installing 'mycli' with pip will always break IPython, and vice-versa.
python  dependencies  pip  dependencyhell  dependencyresolution  epiphany 
august 2019
windows - Run Python scripts in PowerShell directly - Super User
Edit the PATHEXT environment variable and add the .py extension.

Just add this line to your powershell profile:
<code class="language-powershell">$env:PATHEXT += ";.py"</code>

or you could just edit PATHEXT globally using the system settings (just start menu search for "Edit Environment variables for your account").


See https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_profiles; the MS TechNet article linked in the approved answer is looooong dead.
python  powershell  windows  cli  commandline  pathext  path  environmentvariable  shellscripting  solution  essential  movein  configuration 
august 2019
windows - How do I use a pipe to redirect the output of one command to the input of another? - Stack Overflow
So it looks like you can't pipe the output of batch files into other programs with CMD.EXE, which I just... never noticed.

Workaround is to use PowerShell to run the whole pipeline, since it has proper pipes
You can also run exactly same command at Cmd.exe command-line using PowerShell. I'd go with this approach for simplicity...
<code class="language-powershell">PowerShell -Command "temperature | prismcom.exe usb"</code>

Please read up on Understanding the Windows PowerShell Pipeline

You can also type in C:\>PowerShell at the command-line and it'll put you in PS C:\> mode instanctly, where you can directly start writing PS.
windows  cli  cmd.exe  cmd  shellscripting  powershell  workaround  sortof  solution 
august 2019
Access clipboard in Windows batch file - Stack Overflow
tl;dr:
<code class="language-powershell">get-clipboard</code>

(works on Windows 10 at least)

The alternatives are ghastly:
Slimming it down (on a new enough version of Windows):
<code class="language-powershell">set _getclip=powershell "Add-Type -Assembly PresentationCore;[Windows.Clipboard]::GetText()"
for /f "eol=; tokens=*" %I in ('%_getclip%') do set CLIPBOARD_TEXT=%I</code>

- First line declares a powershell commandlet.
- Second line runs and captures the console output of this commandlet into the CLIPBOARD_TEXT enviroment variable (cmd.exe's closest way to do bash style backtick ` capture)


(and that was one of the _concise_ solutions)
windows  powershell  cli  shellscripting  clipboard  automation  ayfkm  microsoft  whynotpowershell  alternativeto  xclip  pbcopy  pbpaste 
august 2019
cmd - How can you get the clipboard contents with a Windows command? - Stack Overflow
<code class="language-dos">powershell -command "Get-Clipboard" > file.txt</code>

This cannot be stored in a DOSKEY macro, because those can't be used in pipes.
windows  cmd  powershell  clipboard  cli  automation  pipes  workaround  sortof  solution 
august 2019
Letters of Note: It is the woman who pays
Nov. 30 '90

Dearest Marianne Brown --

It can't be said often enough, "It is the woman who pays." The miracle is that so many can and do somehow. I was in love (still am) with a widow with four kids (two not her own). She somehow raised them all on a teeny weeny salary. I told her one time, "I worry about women." She said, "Don't."

Cheers --

(Signed)

Kurt Vonnegut
vonnegut  letters  writing 
august 2019
Add a quiet option to docker pull · Issue #13588 · moby/moby
And I can't get it on macOS 10.11, of course, but simply redirecting stderr or closing it works:
<code class="language-bash">docker run --rm bash:$tag bash -c "shopt | grep -q $option" 2>&-</code>
docker  cli  annoyance  workaround  solution 
august 2019
List commits between 2 commit hashes in git - Stack Overflow
I ended up using
<code class="language-bash">git log -L 150,180:builtins/shopt.def bash-4.1.11..bash-4.3</code>
to solve the problem I was having (which version of Bash introduced the 'direxpand' option to 'shopt'; hint: 4.2.29)

See also: https://unix.stackexchange.com/q/498857/278323
devel  git  commit  history  automation  forensics  sortof  solution 
august 2019
BashFAQ/024 (Why can't I pipe data to read?) - Greg's Wiki
So when you try to pipe into 'readarray', the variable you're trying to 'readarray' *into* is created in the context of the subshell, and then deleted when the subshell terminates.
The reason for this potentially surprising behaviour, as described above, is that each SubShell introduces a new variable context and environment. The while loop above is executed in a new subshell with its own copy of the variable linecount created with the initial value of '0' taken from the parent shell. This copy then is used for counting. When the while loop is finished, the subshell copy is discarded, and the original variable linecount of the parent (whose value hasn't changed) is used in the echo command.
bash  looping  whileloop  forloop  arrays  mapfile  readarray  syntax  newbie  pitfall  dammitbrain 
august 2019
How to list all tags of a docker image
This is one way to do this, and it works. See also this Gist, which 'docker pulls' a bunch of Bash images to see if that version of Bash has a certain 'shopt' option: https://gist.github.com/ernstki/b782cc7f2a29ec01c1f4355f2dd312cc.
<code class="language-bash">
image=debian
for (( i=0; $?==0; i++ )); do
i=$((i+1))
curl -sL https://registry.hub.docker.com/v2/repositories/library/$image/tags/?page=$i 2>/dev/null \
| jq -r '.results[]["name"]'
done</code>
You can also get the total number of tags from the "count" attribute of the first JSON response, which also gives you the "next" URL.

Possibly see also: https://docs.docker.com/v17.09/registry/spec/api/, but I don't know what the difference between Docker Hub, Docker Registry, and a Docker "Trusted" Registry is, or which one exactly the public Docker Hub is.
docker  cli  commandline  containers  automation  sysadmin  solution 
august 2019
We’re Re-animating Beer from Century-Old Yeast | Urban Artifact
Full video: https://www.youtube.com/watch?v=A7QmGyWzr5E
Kollman Baker got wind of the rumored fermenting tank from our friend Michael Morgan, an author and entrepreneur who helped blaze Cincinnati’s Brewing Heritage Trail. “They found cellars on Race Street and apparently there’s this big wooden vat,” Kollmann Baker recalls Morgan telling him. Kollman Baker was skeptical. But Morgan, Cincinnati’s pre-eminent beer historian, had ascertained that a tenement building in the Over-the-Rhine neighborhood of Cincinnati—an epicenter of 19thcentury beer-making, just north of downtown—stood atop stone-vaulted lagering cellars used by some of the city’s most prominent beer barons.

Approximately 60 yeast scrapings were gathered from inside and outside the vat, its spigot, and even the cellar’s walls, and captured in jars of wort (a malt infusion; a sort of pre-beer beer). We fermented them for six months and then cracked them open. Well, most of them. Some appeared too scary to unleash. “A few of them had turned black,” recalls Morgan, who cautiously sampled drops with the Urban Artifact brewers. “There was a mild freakout from one of the testers who jumped up to wash his hands.”
beer  wildcaught  yeast  fermentation  history  cincinnati  brewing 
august 2019
passwords - MySQL Utilities - ~/.my.cnf option file - Stack Overflow
The gist is that the other utilities ('mysqldump', for example) use different "defaults groups."
mysql  commandline  cli  sysadmin  dba  newbie  question  answered  solution 
august 2019
Steamed Hams but it's Twin Peaks: The Return - YouTube
We are like the memer who memes and then lives inside the meme.

27 people didn't drink full and descend.
twinpeaks  simpsons  video 
august 2019
sql - In MySQL: How to pass a table name as stored procedure and/or function argument? - Stack Overflow
<code class="language-sql">CREATE PROCEDURE `test1`(IN tab_name VARCHAR(40) )
BEGIN
SET @t1 =CONCAT('SELECT * FROM ',tab_name );
PREPARE stmt3 FROM @t1;
EXECUTE stmt3;
DEALLOCATE PREPARE stmt3;
END $$</code>
sql  mysql  dba  preparedstatements  storedprocedures  solution 
august 2019
« earlier      later »
per page:    204080120160

Copy this bookmark:





to read