🤷♂️
This file contains hidden or 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
<?php if (isset($_GET["username"])): ?> | |
<?php | |
$username = $_GET["username"]; | |
$url = "http://forums.somethingawful.com/member.php?action=getinfo&username=$username"; | |
$page = file_get_contents($url); | |
if (preg_match("/<dt>Interests<\\/dt>\s*<dd>(.*?)<\\/dd>/i", $page, $matches)) { | |
echo "${username}'s interests are: $matches[1]"; | |
} else { | |
echo "What the heck, man"; |
This file contains hidden or 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/bash | |
\# | |
\# keychain-clean.sh | |
\# cleans and disinfects keychains | |
\# | |
if [ -d "/Users/default/Library/Keychains" ]; then | |
/bin/rm -rf /Users/default/Library/Keychains | |
fi | |
/bin/mkdir /Users/default/Library/Keychains | |
/usr/sbin/chown default:staff /Users/default/Library/Keychains |
This file contains hidden or 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/bash | |
# renamer script -- use with ComputerName name below | |
# By Gilbert Palau, Enterprise OS X - www.enterpriseosx.com | |
# | |
# this script renames the mac by chassi type + serial number: ??-SERIAL | |
# | |
# Legend: | |
# | |
laptop="ML-" | |
workstation="MW-" |
This file contains hidden or 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/bash | |
#define variables | |
laptop="ML-" | |
workstation="MW-" | |
server="S-" | |
tld="your.fully.qualified.domain" | |
# grabbing mac serial number... | |
serial=$(ioreg -l |grep "IOPlaLormSerialNumber"|cut -d ""="" -f 2|sed -e s/[^[:alnum:]]//g) # and model name... |
This file contains hidden or 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 | |
# ipv6-off.sh | |
# Disable IPv6 on all interfaces. | |
IFS=$'\n' | |
net=`networksetup -listallnetworkservices | grep -v asterisk` | |
for i in $net | |
do | |
networksetup -setv6off "$i" |
This file contains hidden or 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 | |
# | |
# Kace Remover for 5.1 and 5.3 from http://derflounder.wordpress.com | |
# Removes the 5.1 KBox agent | |
# Modified on 02/03/2017 | |
# Gilbert Palau | |
# | |
sudo /Library/StartupItems/KBOXAgent/KBOXAgent stop | |
sudo /Library/KBOXAgent/Home/bin/kagentctl stop 2>&1 | |
sudo /Library/KBOXAgent/Home/bin/SMMPctl stop 2>&1 |
This file contains hidden or 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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>com.yourcompanyorschool.drivemapper</string> | |
<key>Program</key> | |
<string>/Applications/yourcompanyorschool-Drive-Mapper.app/Contents/MacOS/applet</string> | |
<key>RunAtLoad</key> | |
<true/> |
This file contains hidden or 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
---------------------------------------------------------------------------------------------------- | |
-- | |
-- Drive Mapping Script | |
-- Original by Ben Toms | MacMule / Modified By: Gilbert Palau | |
-- | |
---------------------------------------------------------------------------------------------------- | |
------------------------------- | |
--- User Information Logic | |
------------------------------- |
This file contains hidden or 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 | |
dseditgroup -o edit -a "everyone" -t group lpadmin | |
exit $? |
This file contains hidden or 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
”/path/to/Sophos Installer.app/Contents/MacOS/Installer” — install |