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
# SETUP .bash_aliases FILE FIRST FOR UPDATE SHORTCUTS | |
cd ~ | |
sudo apt install -y ca-certificates curl gnupg build-essential | |
# Install VS Code | |
cd ~ | |
sudo apt install code | |
# Install .NET (Update version below) |
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
choco install googlechrome -y | |
choco install adobereader -y | |
choco install speedtest -y | |
choco install git -y | |
choco install vscode -y | |
choco install dotnet-sdk -y | |
choco install python -y | |
choco install nodejs -y | |
npm upgrade -g |
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
sudo rm -Rf /Library/NessusAgent | |
sudo rm -Rf /Library/LaunchDemons/com.tenablesecurity | |
sudo rm -Rf /Library/PreferencePanes/Nessus\ Agent\ Preferences.prefPane | |
sudo launchctl remove com.tenablesecurity.nessusagent |
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
sudo launchctl remove com.sentinelone.sentineld-helper | |
sudo launchctl remove com.sentinelone.sentineld-updater | |
sudo launchctl remove com.sentinelone.sentineld | |
sudo launchctl remove com.sentinelone.sentineld-guard | |
sudo killall SentinelAgent | |
sudo rm -rf /Library/Extensions/Sentinel.kext | |
sudo rm -rf /Library/Extensions/Sentinel.kext/Contents | |
sudo rm -rf /Library/Extensions/Sentinel.kext/Contents/Info.plist |
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
alias health='/bin/vcgencmd measure_temp; echo "----------"; free --mega; echo "----------"; df -Bm' | |
alias shutdown='sudo shutdown now' | |
alias update='sudo apt update && sudo apt full-upgrade -y && sudo apt autoremove -y && sudo apt autoclean' | |
alias update-npm='sudo npm install npm -g && sudo npm update -g && sudo npm update' | |
#alias microscope='ffplay -f v4l2 -video_size 1280x720 -i /dev/video0' |
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
window.setInterval(function(){ | |
var element = document.querySelector('[aria-label="Select message"]').click(); | |
window.setTimeout(function(){},1000); | |
document.querySelector('[data-test-id="toolbar-delete"]').click(); | |
window.setTimeout(function(){},1000); | |
}, 1000); |
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
if ((Get-DnsClientServerAddress -AddressFamily IPv4 -InterfaceAlias 'Ethernet').ServerAddresses -like '1.1.1.1') { | |
Set-DnsClientServerAddress -InterfaceAlias 'Ethernet' -ServerAddresses ('192.168.1.2'); | |
Disable-NetAdapterBinding -Name Ethernet -ComponentID ms_tcpip6 -PassThru | |
} | |
else | |
{ | |
Enable-NetAdapterBinding -Name Ethernet -ComponentID ms_tcpip6 -PassThru | |
Set-DnsClientServerAddress -InterfaceAlias 'Ethernet' -ServerAddresses ('1.1.1.1','1.0.0.1'); | |
Set-DNSClientServerAddress -InterfaceAlias 'Ethernet' –ServerAddresses ('2606:4700:4700::1111','2606:4700:4700::1001'); | |
} |
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
var mappingIndex = 0; | |
var mappingDictionary = []; | |
function MappingDictionary(stringToFind) { | |
output = 0; | |
var queryResult = mappingDictionary.filter(obj => Object.values(obj).some(val => val?val.toString().toLowerCase().includes(stringToFind):false))[0]; | |
if (queryResult) { | |
output = queryResult["Key"]; | |
} | |
else { |
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
#! /bin/sh -e | |
commitMessage="$1" | |
release="$2" | |
version=$(date +"v%Y.%m.%d.%H%M%S") | |
grunt | |
git add . -A | |
git commit -m "$version: $commitMessage" | |
git push -u origin development |
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
sudo apt-get update | |
sudo apt-get dist-upgrade | |
### if using some Dell Bluetooth modules... | |
# sudo touch /etc/udev/rules.d/97-hid2hci.rules | |
# sudo apt-get remove bluez | |
### if using Oracle VirtualBox... | |
# sudo apt-get install virtualbox-guest-x11 | |
# sudo VBoxClient --clipboard |
NewerOlder