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
--- | |
- hosts: all | |
become: yes | |
tasks: | |
- name: Missing service file for krunner | |
ansible.builtin.blockinfile: | |
path: /usr/share/dbus-1/services/org.kde.krunner.service | |
create: true | |
block: | |
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 | |
# @param $1 | |
# The Drupal 7 version. | |
# @param $2 | |
# The old version constant. | |
# @param $3 | |
# Whether to remove the 'development version' lines. | |
function insert_changelog_entry() { | |
# This assumes the D7 changelog location, because D8 does not maintain a |
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 | |
# todo: https://stackoverflow.com/questions/24987542/is-there-a-link-to-github-for-downloading-a-file-in-the-latest-release-of-a-repo | |
lime_release="1.8" | |
lime_tarball="https://github.com/504ensicsLabs/LiME/archive/v${lime_release}.tar.gz" | |
volatility_zip="https://github.com/volatilityfoundation/volatility/archive/master.zip" | |
# Preflight check | |
if [ "$(dpkg -l | grep -w 'build-essential\|dwarfdump\| zip' | wc -l)" -lt 3 ] | |
then |
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 | |
version_available=$(curl -s -A 'linux' https://zoom.us/download | grep 'linux-ver-text.*Version [0-9.]*' | grep -o '[0-9.]*') | |
version_installed=$(cat /opt/zoom/version.txt) | |
# example version number | |
#version_available='2.0.89826.1000' | |
echo "version_available: ${version_available}" | |
echo "version_installed: ${version_installed}" |
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 | |
# space separate multiple e-mails | |
mail_recipients='drew.webber@acquia.com drew.webber+test@acquia.com' | |
mail_subject="Monthly report for $(hostname +s) on $(date +'%F')" | |
report_commands='df -h /mnt/gfs' |
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 | |
$files = array( | |
'opcache.php' => array( | |
'project' => 'https://github.com/rlerdorf/opcache-status', | |
'download' => 'wget --no-check-certificate https://raw.githubusercontent.com/rlerdorf/opcache-status/master/opcache.php', | |
), | |
'ocp.php' => array( | |
'project' => 'https://gist.github.com/ck-on/4959032', | |
'download' => 'wget https://gist.github.com/ck-on/4959032/raw/0b871b345fd6cfcd6d2be030c1f33d1ad6a475cb/ocp.php', |
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 | |
class DebugMemCacheDrupal extends MemCacheDrupal { | |
function set($cid, $data, $expire = CACHE_PERMANENT, array $headers = NULL) { | |
$created = time(); | |
// Create new cache object. | |
$cache = new stdClass; | |
$cache->cid = $cid; | |
$cache->data = is_object($data) ? clone $data : $data; |