Skip to content

Instantly share code, notes, and snippets.

View glimpsed's full-sized avatar

Sergiu Gâtlan glimpsed

View GitHub Profile
@glimpsed
glimpsed / Hide macOS Dock icons
Created June 21, 2022 17:25
How to hide macOS Dock icons
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
@glimpsed
glimpsed / Fix drag and drop broken in macOS
Created June 19, 2022 10:48
Fix drag and drop broken in macOS AKA drag and dropped files/folders getting stuck to the mouse pointer in macOS
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.
@glimpsed
glimpsed / Block Spotify updates.txt
Created September 1, 2021 17:06
Block Spotify updates
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
@glimpsed
glimpsed / Fix Windows 10 Bluetooth toggle not appearing
Last active July 26, 2020 17:16
Fix Windows 10 Bluetooth toggle not appearing
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
@glimpsed
glimpsed / null root containers (removed duplicates)
Created May 20, 2019 22:22
Null root containers (removed duplicates)
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:::::
@glimpsed
glimpsed / etc-hosts-on-win.md
Created March 6, 2019 02:05 — forked from zenorocha/etc-hosts-on-win.md
/etc/hosts on Windows

1. Get your IP Address

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/.*\://'`

2. Modify your hosts file

notepad

@glimpsed
glimpsed / gist:1621df7db753de6198747d8c34e92a81
Created June 13, 2018 10:01
Fix broken Spotlight / Time Machine (white pointer on black screen on shutdown and/or restart)
The problem is not with Spotlight, but with Launch Services. There are two steps to solving the problem:
sudo mkdir /private/var/db/lsd
sudo /System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -seed -lint -r -f -v -dump -domain local -domain system -domain user -domain network
The first one creates the folder that the launch services daemon needs to store the database. That’s why LaunchServices is getting an -10822 error, because it can’t create the database, so it keeps resetting the connection. The second command tells launch services to kill the old database and create a new one from scratch. Voila
@glimpsed
glimpsed / proxy-toggle.sh
Last active September 12, 2017 14:19 — forked from dgoguerra/proxy-toggle.sh
Script to toggle macOS SOCKS proxy on Wi-Fi, and setup a SOCKS server with SSH
#!/bin/sh
PROXY_INTERFACE="Wi-Fi"
PROXY_HOST=127.0.0.1
PROXY_PORT=1080
SOCKS_PROC_LOG=/tmp/ssh-socks-proxy-log.txt
SOCKS_PROC_PIDFILE=/tmp/ssh-socks-proxy-pid.txt
SOCKS_PROC_CMD="ssh -i $SOCKS_PROC_IDENTITY -t -t -D $PROXY_HOST:$PROXY_PORT $SOCKS_PROC_USER@$SOCKS_PROC_HOST"
@glimpsed
glimpsed / OS X Install ISO Creator
Created April 19, 2017 07:09
Create install ISO image, supported OS X versions: 10.6, 10.7, 10.8, 10.9, 10.10, 10.11, 10.12.
#!/bin/bash
################################
# OS X Install ISO Creator #
# #
# Author: shela #
################################
#######################################
# Declarations
@glimpsed
glimpsed / BACKUP DNS
Last active February 6, 2019 16:27
Backup dns servers
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