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 views_fs_file_list_content() { | |
$page = array(); | |
$files = _views_fs_fetch_filelist(); | |
return $page; | |
} |
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
# If you already have a webserver running you most likely won't be able to get GitLab | |
# woring on ports 80 and 443. Port 22 should work because we change the default SSH | |
# port on the host during server provisioning. | |
HTTP_PORT=8080 | |
HTTPS_PORT=8443 | |
SSH_PORT=22 | |
# Install Docker (don't use Ubuntu's repositories, they're out of date). | |
wget -qO- https://get.docker.com/ | sudo sh |
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
function certchain() { | |
# Usage: certchain | |
# Display PKI chain-of-trust for a given domain | |
# GistID: https://gist.github.com/joshenders/cda916797665de69ebcd | |
if [[ "$#" -ne 1 ]]; then | |
echo "Usage: ${FUNCNAME} <ip|domain[:port]>" | |
return 1 | |
fi | |
local host_port="$1" |
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
git config --global alias.exec '!exec ' | |
git config --global alias.top '!f() { GIT_TOP="${GIT_DIR%%/.git/modules/*}"; [ ".$GIT_TOP" != ".$GIT_DIR" ] && cd "$GIT_TOP"; exec "$@"; }; f' | |
# THIS IS PUBLIC DOMAIN. | |
# | |
# `git exec` executes something in the current GIT module's base directory. `git exec pwd` gives this base. | |
# Stolen from http://stackoverflow.com/questions/957928/is-there-a-way-to-get-the-git-root-directory-in-one-command/957978#comment9747528_957978 | |
# | |
# `git top` is like `git exec`, but executes in the topmost GIT directory, even from within a GIT submodule. |
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
#!/usr/bin/env bash | |
echo "Nooma.tv Recording Script" | |
hash recordmydesktop 2>/dev/null || { echo >&2 "I require recordmydesktop but it's not installed. Aborting."; exit 1; } | |
recordmydesktop --x=100 --channels 2 --freq 44100 --width 1200 -height 720 --follow-mouse --no-frame -o /home/dgurba/720.ogv & | |
PID=$! | |
sleep 9000 | |
# Send recordmydesktop the Ctrl+C it wants to Stop recording. | |
kill -INT $PID |
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/zsh | |
for file in ./**/*.php | |
do | |
iconv -f windows-1251 -t UTF-8 "$file" > "${file%.php}-utf8.php" | |
rm $file | |
mv ${file%.php}-utf8.php $file | |
done |
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/bash | |
# Recursive file convertion windows-1251 --> utf-8 | |
# Place this file in the root of your site, add execute permission and run | |
# Converts *.php, *.html, *.css, *.js files. | |
# To add file type by extension, e.g. *.cgi, add '-o -name "*.cgi"' to the find command | |
find ./ -name "*.php" -o -name "*.html" -o -name "*.css" -o -name "*.js" -type f | | |
while read file | |
do |
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
{ | |
"cap_add" : [], | |
"cap_drop" : [], | |
"cmd" : "", | |
"cpu_priority" : 0, | |
"ddsm_bind_share" : "", | |
"devices" : [], | |
"enable_publish_all_ports" : false, | |
"enable_restart_policy" : false, | |
"enabled" : true, |
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
dgurba at aw-dgurba in .../presidency/drupal7-project on master△ | |
$ git diff --name-only master...add-sqlite-migrate-wizard | |
build/gemini/htdocs/sites/presidency-ets-gemini/modules/contrib/config_pages/CHANGES.TXT | |
build/gemini/htdocs/sites/presidency-ets-gemini/modules/contrib/config_pages/LICENSE.txt | |
build/gemini/htdocs/sites/presidency-ets-gemini/modules/contrib/config_pages/README.txt | |
build/gemini/htdocs/sites/presidency-ets-gemini/modules/contrib/config_pages/TODO.TXT | |
build/gemini/htdocs/sites/presidency-ets-gemini/modules/contrib/config_pages/config_pages.admin.inc | |
build/gemini/htdocs/sites/presidency-ets-gemini/modules/contrib/config_pages/config_pages.features.inc | |
build/gemini/htdocs/sites/presidency-ets-gemini/modules/contrib/config_pages/config_pages.field.inc | |
build/gemini/htdocs/sites/presidency-ets-gemini/modules/contrib/config_pages/config_pages.inc |
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 | |
// This example code is for D7. It uses a single hardcoded queue named essentially "workqueue_001". | |
// A relatively simple revision to this code may add a vbo_configurable form to the Action defintion | |
// to support any previously created EntityQueue as the list storage mechanism. Although in VBO-3.4 | |
// this vbo_configurable attempt is breaking for me with a search_api based View display. Meh. | |
function prez_bulkadmin_action_info() { | |
return array( | |
'prez_bulkadmin_add_staff_work_queue_01' => array( |