A Pen by nm_888848trj on CodePen.
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 | |
# set -x | |
# set -v | |
# | |
# | |
# This script deploys your code to the production/ LIVE site. | |
# | |
# To make use of this git hook, it can be copied to `.git/post-commit` | |
# in the folder root. It's then triggered after each git commit. | |
# Git offers hooks on many different git activities and, this custom |
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
<?php | |
function simple_shibb_init() { | |
$shib_session = _simple_shibb_get_session_username(); | |
$drupal_session = user_is_logged_in(); | |
if($drupal_session && !$shib_session) { | |
$force_logout = _simple_shibb_get_setting('logout_expired_sessions'); |
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
Write-Host "---" | |
Write-Host "--- Starting job $MyInvocation.ScriptName" | |
Write-Host "--- Copies URLs from SharePoint list to the URLs list of a search content source" | |
Write-Host "---" | |
Add-PSSnapin Microsoft.SharePoint.PowerShell | |
function Execute-Updates { |
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
Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Scope Process -Force | |
$verbosePreference = "Continue" | |
// Relies on Powershell.MWA for Internet Information Servives routines | |
// Download to .\Powershell.MWA-master | |
// @see https://github.com/jgigler/Powershell.MWA | |
Import-Module WebAdministration | |
Import-Module "$(Split-Path -Path $MyInvocation.MyCommand.Definition -Parent)\Powershell.MWA-master\Powershell.MWA.psm1" | |
Push-Location $env:temp |
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
-- From Mac ScriptEditor, export as "Application" and add to startup items | |
set os_mac to "Mac" | |
set os_windows to "Windows 7" | |
set os_choice to os_mac | |
set os_windows_image to POSIX file "/Users/Shared/Parallels/Windows 7.pvm" | |
set log_file to "/log.txt" | |
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
// Snippet for template.php file | |
// Two Drupal hooks to move primary tabs into a dropdown and, to use | |
// fontawesome icons for Drupal's edit menue. Requires Bootstrap components and Fontawesome CSS. | |
// Better than a module. | |
function THEME_menu_local_tasks(&$variables) | |
{ | |
$output = '<div class="btn-group pull-right sphsc-tab-tasks">' | |
. '<button class="btn btn-info btn-lg dropdown-toggle" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">' | |
. t('Actions') . '<span class="caret"></span></button>' |