- Go to /Library/Application Support/McAfee/MSS/Applications/
- Rename Menulet.app to something else
- Can't just delete as is always running, and un-quittable
- Optional: copy Menulet*.app to somewhere else, for safety's sake
- Delete Menulet*.app
- Can do this now as new filename is not blocked from deletion
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Import your raster, e.g.: | |
GCFR_QDS_richness <- raster("GCFR_QDS_richness.tif") | |
# Let `ggplot2` figure out what to do with it... | |
gplot(GCFR_QDS_richness) + # NB: Not a typo! Use `gplot` not `ggplot` for this! | |
# Then tell it to use the raster cell values to colour the tiles | |
geom_tile(aes(fill = value)) + | |
# Then the rest of your regular `ggplot2` code can go here, e.g.: | |
labs(title = "QDS-richness (GCFR)", x = "Longitude(º)", y = "Latitude (º)") + | |
scale_x_continuous(breaks = c(18, 22, 26)) + |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd /Library/LaunchAgents | |
sudo mv com.cisco.anyconnect.gui.plist com.cisco.anyconnect.gui.plist.bak | |
sudo mv com.cisco.anyconnect.notification.plist com.cisco.anyconnect.notification.gui.plist.bak |
Open ~/Library/QuickLook/QLStephen.qlgenerator/Contents/Info.plist
and add the following within the <key>CFBundleTypeName</key>
section:
<string>net.daringfireball.markdown</string>
Then, reset and restart QuickLook:
$ qlmanage -r
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# List processes using external hard drive /RUAN/ | |
sudo lsof | grep /Volumes/RUAN | |
# (Usually mds and/or mds_store processes are to blame...) | |
# (Kill like this:) | |
sudo killall mds |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defaults write com.apple.dock tilesize -integer 40 | |
defaults write com.apple.dock largesize -integer 40 | |
killall Dock |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This function plots two phylogenetic trees with the same tip-names, | |
# but differing topologies, by rotating branches so as to minimise the amount of times | |
# the lines connecting the same species on each tree cross (using phytools::cophylo()). | |
# Note, this does **NOT** mean that crossed lines show incongruence, | |
# or that parallel lines show congruence, but it does help you check it manually | |
# much faster than just looking at each tree individually. | |
library(phytools) # Needed for cophylo() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(xfun) # ::file_ext() | |
library(stringr) | |
library(magrittr) # %<>% | |
add_missing_ext <- function(x, ext) { | |
missing_ext <- file_ext(x) == "" | |
x[missing_ext] <- paste0(x[missing_ext], ext) | |
x | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
snippet lib | |
library(${1:package}) | |
snippet req | |
require(${1:package}) | |
snippet src | |
source("${1:file.R}") | |
snippet ret |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pretty_table <- function(x) { | |
# Remove column contents after first mention in table | |
for (column in columns) { | |
for (group in unique(x[[column]])) { | |
to_remove <- which(x[[column]] == group)[-1] | |
x[to_remove, column] <- " " | |
} | |
} | |
x | |
} |
NewerOlder