start new:
tmux
start new with session name:
tmux new -s myname
| #!/bin/bash | |
| ## Fix OneDrive for Mac CPU usage | |
| ## | |
| ## Seems this is still a problem 5 years later after I created this little gist. | |
| ## I have long since stopped using OneDrive (luckily), but according to | |
| ## comments below, I have added the new path for OfficeFileCache for macOS | |
| ## Mojave (10.14) and Catalina (10.15). | |
| ## Run this on macOS Mojave (10.14) and Catalina (10.15) | |
| find ~/Library/Containers/ -type d -name OfficeFileCache -exec rm -r {} + |
| #!/usr/bin/env python | |
| import os | |
| import urllib2 | |
| countries={'DK':'denmark'} | |
| os.system("/opt/vyatta/sbin/vyatta-cfg-cmd-wrapper begin") | |
| for country in countries.keys(): |
| # | |
| # link: https://gist.githubusercontent.com/celly/1591cf9305734812baad/raw/ | |
| # | |
| # Add to you /usr/local/bin/gravity.sh file under sources= | |
| # | |
| # samsung 'smart tv' | |
| 127.0.0.1 log-1.samsungacr.com | |
| 127.0.0.1 log-2.samsungacr.com | |
| 127.0.0.1 notice.samsungcloudsolution.com |
| ### | |
| ### | |
| ### UPDATE: For Win 11, I recommend using this tool in place of this script: | |
| ### https://christitus.com/windows-tool/ | |
| ### https://github.com/ChrisTitusTech/winutil | |
| ### https://www.youtube.com/watch?v=6UQZ5oQg8XA | |
| ### iwr -useb https://christitus.com/win | iex | |
| ### | |
| ### OR take a look at | |
| ### https://github.com/HotCakeX/Harden-Windows-Security |
| // ==UserScript== | |
| // @name unobfuscate spiegel plus | |
| // @namespace obfuscate | |
| // @include http://www.spiegel.de/* | |
| // @version 1 | |
| // @grant none | |
| // ==/UserScript== | |
| if(document.getElementsByClassName('obfuscated-content')[0] != undefined) { | |
| document.getElementsByClassName('obfuscated-content')[0].setAttribute("class", ""); | |
| var elems = document.getElementsByClassName('obfuscated'), t, or, c, i, cc; |
| # SetPFDiscoveryMailbox.ps1 | |
| # | |
| # Syntax: | |
| # | |
| # $mailboxes = Get-Mailbox | .\SetPFDiscoveryMailbox.ps1 | |
| # | |
| # You can use the usual parameters to filter the mailbox result, such | |
| # as only returning mailboxes for a certain server: | |
| # | |
| # $mailboxes = GetMailbox -Server EXCH1 | .\SetPFDiscoveryMailbox.ps1 |
| @echo off | |
| if not "%1"=="am_admin" (powershell start -verb runas '%0' am_admin & exit /b) | |
| @rem *** Disable Some Service *** | |
| sc stop DiagTrack | |
| sc stop diagnosticshub.standardcollector.service | |
| sc stop dmwappushservice | |
| sc stop WMPNetworkSvc | |
| sc stop WSearch |
We did it! We broke gist.github.com ;) So head over to the new home! Thank you all!
2021.10.20: https://github.com/AveYo/MediaCreationTool.bat now open for interaction
Not just an Universal MediaCreationTool wrapper script with ingenious support for business editions,
A powerful yet simple windows 10 / 11 deployment automation tool as well!
| """ | |
| Tracks devices by sending a ICMP echo request (ping) and query arp table. | |
| For more details about this platform, please refer to the documentation at | |
| https://home-assistant.io/components/device_tracker.ping/ | |
| """ | |
| import logging | |
| import subprocess | |
| import sys | |
| import re |