echo `ifconfig $(netstat -nr | grep -e default -e "^0\.0\.0\.0" | head -1 | awk '{print $NF}') | grep -e "inet " | sed -e 's/.*inet //' -e 's/ .*//' -e 's/.*\://'`
This file contains 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
Can't Copy/Paste in Google Docs on Firefox: | |
Set dom.event.clipboardevents.enabled on about:config to true | |
Speed-up Firefox's awesome bar / location bar: | |
browser.urlbar.delay to 0 speeds up the search response | |
layout.frame_rate 60 | |
In "about:config" change "layout.frame_rate" from -1 to 60 (or whatever your monitor runs at). | |
For some stupid reason, Firefox renders as fast as your CPU can handle 100% of the time. | |
Even at 60 FPS, it uses ~1% CPU when idle so I'm guessing it was going like 6000FPS when unrestrained. |
This file contains 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
Add the following line at the top of your .ovpnfile to prevent it from routing all network traffic on your Mac through | |
the VPN: | |
route-nopull | |
Next add the following line to allow the VPN to reroute traffic ONLY for a given IP address / domain (if you need to enable it | |
for a domain you can use its IP address): | |
route 1.2.3.4 |
This file contains 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
Use native PlistBuddy command to do it: | |
/usr/libexec/PlistBuddy -c 'Add :LSUIElement bool true' /Applications/[AppName].app/Contents/Info.plist | |
Don't forget to change the [App Name]. | |
If you wish gonna back, run command: | |
/usr/libexec/PlistBuddy -c 'Delete :LSUIElement' /Applications/[AppName].app/Contents/Info.plist | |
via https://apple.stackexchange.com/a/349641 |
This file contains 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
Right click and copy a file or a folder, then right click to paste it in the target destination. | |
This should kick start the ability to drag and drop once again. | |
This file contains 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
Open Admin Command Prompt and type these commands one by one: | |
del %localappdata%\Spotify\Update | |
mkdir %localappdata%\Spotify\Update | |
icacls %localappdata%\Spotify\Update /deny "%username%":D | |
icacls %localappdata%\Spotify\Update /deny "%username%":R | |
Description of given commands: | |
Removes directory C:\Users\<your username>\AppData\Spotify\Update |
This file contains 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
Turn off windows 10 fast-startup and then turn off your computer then on again. steps: | |
WinKey -> type to search "Power & sleep settings" | |
"additional power settings" | |
"choose what the power buttons do" | |
"change settings that are currently unavailable" | |
untick "Turn on fast startup" | |
Save changes | |
turn off computer then turn it on |
This file contains 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
#!/usr/bin/env bash | |
# ~/.macos — https://mths.be/macos | |
# Close any open System Preferences panes, to prevent them from overriding | |
# settings we’re about to change | |
osascript -e 'tell application "System Preferences" to quit' | |
# Ask for the administrator password upfront | |
sudo -v |
This file contains 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
18fgsa/s3-resource-simple - root:::0::::: | |
a5huynh/oauth2_proxy - root:::0::::: | |
acaleph/consul-alerts - root:::0::::: | |
aequitas/ftp-resource - root:::0::::: | |
allinurl/goaccess - root:::0::::: | |
alpine/socat - root:::0::::: | |
anapsix/alpine-java - root:::0::::: | |
andyshinn/dnsmasq - root:::0::::: | |
appropriate/curl - root:::0::::: | |
avhost/docker-matrix-riot - root:::0::::: |
This file contains 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
CloudFlare:(SPEED): | |
1.1.1.1 | |
1.0.0.1 | |
IBM Quad9 (FILTERING): | |
9.9.9.9 | |
Google: | |
8.8.8.8 | |
8.8.4.4 |
NewerOlder