Skip to content

Instantly share code, notes, and snippets.

View tedserbinski's full-sized avatar
🚀

Ted Serbinski tedserbinski

🚀
View GitHub Profile
#!/bin/sh
# template script for running a command as user
# The presumption is that this script will be executed as root from a launch daemon
# or from some management agent. To execute a single command as the current user
# you can use the `runAsUser` function below.
# by Armin Briegel - Scripting OS X
#
@tedserbinski
tedserbinski / settings-reveal-desktop.sh
Last active June 7, 2024 20:59
Script to turn off “Click wallpaper to reveal desktop” setting in macOS Sonoma that can be run from Mosyle
# Credit goes to the blog post for the command:
# https://derflounder.wordpress.com/2023/09/26/managing-the-click-wallpaper-to-reveal-desktop-setting-in-macos-sonoma/
#!/bin/bash
# Get the logged-in user's username
loggedInUser=$(stat -f%Su /dev/console)
# Write the default value for the logged-in user
sudo -u "$loggedInUser" /usr/bin/defaults write com.apple.WindowManager EnableStandardClickToShowDesktop -bool false
@tedserbinski
tedserbinski / dock.sh
Created May 29, 2024 22:04
Set which applications go in the dock on MacOS
# source: https://community.jumpcloud.com/t5/community-scripts/using-dockutil-to-set-a-user-s-dock/m-p/1897
#!/bin/bash
# check if dockutil is installed, install if it's not.
dockutil="/usr/local/bin/dockutil"
if [[ -x $dockutil ]]; then
echo "dockutil found, no need to install"
else
echo "dockutil could not be found, installing..."
curl -L --silent --output /tmp/dockutil.pkg "https://github.com/kcrawford/dockutil/releases/download/3.1.3/dockutil-3.1.3.pkg" >/dev/null
@tedserbinski
tedserbinski / Rakefile
Last active December 14, 2015 14:59 — forked from stammy/Rakefile
# ignore the "bit" stuff.. only relevant to my custom jekyll fork
desc 'create new post or bit. args: type (post, bit), title, future (# of days)'
# rake new type=(bit|post) future=0 title="New post title goes here" slug="slug-override-title"
task :new do
require 'rubygems'
require 'chronic'
type = ENV["type"] || "post"
title = ENV["title"] || "New Title"
<<<<<<< HEAD:html/sites/mothersclick.com/themes/mothersclick/preprocess/preprocess-node.inc
$vars['share_post'] = _share_posts($vars['node']);
}
=======
global $share_horizontal;
$share_horizontal = array('video', 'smackdown', 'photo');
if (in_array($vars['node']->type, $share_horizontal)) {
$vars['share_post_horizontal'] = _share_posts($vars['node']);
}
else {
<<<<<<< HEAD:html/sites/mothersclick.com/themes/mothersclick/preprocess/preprocess-node.inc
if ($vars['field_ref1'][0]['view']) {
$vars['entry_first'] = $vars['field_ref1'][0]['view'];
}
if ($vars['field_ref2'][0]['view']) {
$vars['entry_second'] = $vars['field_ref2'][0]['view'];
}
=======
<<<<<<< HEAD:html/sites/mothersclick.com/themes/mothersclick/styles/view-styles.css
.photo-challenge-front .more-link {
margin-top: 5px;
=======
.photo-challenge-front .photo-challenge-option img {
border: none;
display: block;
background: #000000;
margin: 10px auto 30px;
height: 112px;
diff --git a/html/sites/all/themes/rubik/cube/cube.info b/html/sites/all/themes/rubik/cube/cube.info
index 60985ca..92c5b40 100644
--- a/html/sites/all/themes/rubik/cube/cube.info
+++ b/html/sites/all/themes/rubik/cube/cube.info
@@ -11,7 +11,6 @@ stylesheets[screen][] = "style.css"
regions[header] = "Header"
regions[content] = "Content"
regions[left] = "Left"
-regions[right] = "Right"