Skip to content

Instantly share code, notes, and snippets.

@dstapp
dstapp / setup_osx.sh
Last active January 11, 2022 23:15
OS X setup script (currently 10.11)
#!/bin/bash
# Homebrew requires Xcode CLI tools to be installed. OS X provides stubs for CLI tools
# that trigger the CLI tools installer when called. So we call `git` to start the installation.
git
echo "Press any key when Xcode CLI tools installation is complete..."
read
# Install Homebrew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
@gunar
gunar / code.js
Last active April 6, 2024 17:06
Remove Duplicates From GDrive Root
/*
Gunar C. Gessner
@gunar 2016
INSTALL: https://script.google.com/macros/s/AKfycbym7IaTORzJ7LQPcxMx1LV1SQEC6RVGv5tzLOgYS8iQe8XAJxM/exec
After installation, the script will, every 10 minutes, search for all files that have duplicates (shift+z) and remove them from the root directory ("My Drive").
This Google Apps Script webapp aims to solve the problem that when transferring ownership of folders &
files to another account, duplicate files shown in "My Drive".
@gboudreau
gboudreau / AuthyToOtherAuthenticator.md
Last active June 7, 2024 18:27 — forked from Ingramz/AuthyToOtherAuthenticator.md
Export TOTP tokens from Authy
@SamusAranX
SamusAranX / download_emotes.py
Created October 23, 2017 21:28
Download Twitch channel emotes
#!/usr/bin/env python3.6
# -*- coding: utf-8 -*-
#
# put all channels you want to download the emotes of
# into a text file called "channel_list.txt", separated
# by line breaks
# also download subscriber.json from
# https://twitchemotes.com/apidocs
# and put it into a folder called "api" next to this script
@AveYo
AveYo / .. MediaCreationTool.bat ..md
Last active May 30, 2024 17:56
Universal MediaCreationTool wrapper for all MCT Windows 10 versions - MOVED TO github.com/AveYo/MediaCreationTool.bat
@mmtrt
mmtrt / acrordr
Last active January 29, 2024 12:57
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\\Software\\Adobe\\Acrobat Reader\\DC\\AVGeneral]
"bisFirstLaunch"=dword:00000000
"bRHPSticky"=dword:00000001
"bToggleCustomOpenExperience"=dword:00000001
"bToggleCustomSaveExperience"=dword:00000001
[HKEY_CURRENT_USER\\Software\\Adobe\\Acrobat Reader\\DC\\ExitSection]
"bLastExitNormal"=dword:00000000
@JustinGrote
JustinGrote / Update-ModuleFast.ps1
Last active January 9, 2024 05:44
A faster implementation of Powershell's Update Module New Module check
throw 'This has moved to https://github.com/JustinGrote/ModuleFast'
@spyoungtech
spyoungtech / download_emotes.py
Last active October 23, 2022 12:56
Download twitch emotes from twitchemotes.com channel
import os
from requests import Session
from bs4 import BeautifulSoup
requests = Session()
class EmoteNotFoundError(RuntimeError):
...
@wise-io
wise-io / RemoveWebroot.ps1
Created April 25, 2022 19:10
Webroot Removal Script
# Removes Webroot SecureAnywhere by force
# Run the script once, reboot, then run again
# Webroot SecureAnywhere registry keys
$RegKeys = @(
"HKLM:\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\WRUNINST",
"HKLM:\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\WRUNINST",
"HKLM:\SOFTWARE\WOW6432Node\WRData",
"HKLM:\SOFTWARE\WOW6432Node\WRCore",
"HKLM:\SOFTWARE\WOW6432Node\WRMIDData",
@wise-io
wise-io / ManageDefender.ps1
Last active April 6, 2024 16:26
Manage Windows Defender & Firewall Settings with PowerShell and Group Policy
# Manage Windows Defender & Windows Firewall via Local Group Policy
$ComputerPolicyFile = ($env:SystemRoot + '\System32\GroupPolicy\Machine\registry.pol')
$DefenderKey = 'Software\Policies\Microsoft\Windows Defender'
$FirewallKey = 'Software\Policies\Microsoft\WindowsFirewall'
$ExploitGuardKey = 'Software\Policies\Microsoft\Windows Defender\Windows Defender Exploit Guard'
Write-Output "`nChecking for necessary PowerShell modules..."
try {
# Set PowerShell to TLS 1.2 (https://devblogs.microsoft.com/powershell/powershell-gallery-tls-support/)
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12