Skip to content

Instantly share code, notes, and snippets.

View MacsInSpace's full-sized avatar

Craig Hair MacsInSpace

  • Department of Education
  • Melbourne
  • 11:51 (UTC +10:00)
View GitHub Profile
@mdusher
mdusher / safetydance.rb
Last active July 19, 2018 01:29
safetydance.rb
#!/usr/bin/env ruby
require 'twitter'
client = Twitter::REST::Client.new do |config|
config.consumer_key = "YOUR_CONSUMER_KEY"
config.consumer_secret = "YOUR_CONSUMER_SECRET"
config.access_token = "YOUR_ACCESS_TOKEN"
config.access_token_secret = "YOUR_ACCESS_SECRET"
end
@niw
niw / download_macos_and_create_install_disk.sh
Last active October 23, 2024 03:20
A script to download macOS install image and create an install disk image
#!/usr/bin/env bash
set -e
VOLUME_PATH=/Volumes/installer
while getopts ":d:h" opts; do
case $opts in
d)
VOLUME_PATH=$OPTARG
;;
@opus-x
opus-x / Spotify_Eliminate_Advertisements
Last active July 1, 2025 15:38
Eliminate Spotify Advertisements + Complete Server List
##################################################################################
# ELIMINATE SPOTIFY ADS (VERSION 1.2 - 8.5) - ABANDONED FOR NOW #
##################################################################################
#
# NOTE: SOMETIMES ONLY ANNOUNCEMENT OF AN AD WHILE USING APP VERSION 7.5-7.9?-8.x.
# USING AN OFFICIAL OLDER VERSION SOLVES THIS. TEST IT (APKMIRROR). THIS WILL NOT
# OCCUR USING CHROMECAST / GOOGLE HOME.
#
# COULD NOT SOLVE THE AUDIO AD INRO/OUTRO IN THE APP.
# SUGGESTIONS? WRITE A COMMENT BELOW.
@norman-bauer
norman-bauer / Configure-DHCPOption119OnScope.ps1
Last active December 31, 2022 08:24
Asks for a list of semicolon separated domain suffixes and a Windows Server DHCP Scope Id on which Option 119 will be configured accordingly
$domainSearchList = Read-Host "Please enter a list of domain suffixes separated by semicolons (e.g. domain.local;domain.tld;int.domain.tld)"
$scopeToConfigure = Read-Host "Please enter the scope id of the scope to be configured (e.g. 192.168.1.0)"
$splittedDomainSearchList = $domainSearchList -split "\;"
$domainSearchListHexArray = @();
Foreach ($domain in $splittedDomainSearchList)
{
$splittedDomainParts = $domain -split "\."
Foreach ($domainPart in $splittedDomainParts)
import tweepy
from time import sleep
# creds.py is a custom file that holds all of your consumer keys and API keys. you will need to make it.
from creds import *
import os
from datetime import datetime as dt
import random
auth = tweepy.OAuthHandler(consumer_key=consumer_key, consumer_secret=consumer_secret)
auth.set_access_token(access_key, access_secret)
import re
import sys
from datetime import datetime
from b2.api import B2Api
def parse(inp, mformat=None, thing=None):
if thing is None:
thing = 'th'
if mformat is None:
@zthxxx
zthxxx / Activate Office 2019 for macOS VoL.md
Last active July 3, 2025 17:11
crack activate Office on mac with license file
@jerodg
jerodg / windows_and_office_kms_setup.adoc
Last active June 25, 2025 16:04
Activate Windows and Office Using KMS Server

Microsoft Windows and Office KMS Setup

@kylemoseby
kylemoseby / twitter_api_example.py
Last active June 21, 2022 23:04
Clean up for Twitter account automatcally
import csv
from threading import Timer
import tweepy
class mkm():
apiCalls = 0
def __init__(self, api):
print "Initialising Twitter Account Tools"
#!/bin/sh
# default commands for osx to make it nicer to work with
##########################
# General UI?UX settings #
##########################
# Set hostname (hex of MVB9APPS)
sudo scutil --set ComputerName "0x4d56423941505053"
sudo scutil --set HostName "0x4d56423941505053"