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 | |
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin | |
export DISPLAY=:0.0 | |
export DISPLAY=:0 | |
RESULT=`ps -A | sed -n /whatpulse/p` | |
if [ "${RESULT:-null}" = null ]; then | |
echo "whatpulse not running " | |
#xmessage "whatpulse not running" |
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 | |
### BEGIN INIT INFO | |
# Provides: etherpad-lite | |
# Required-Start: $local_fs $remote_fs $network $syslog | |
# Required-Stop: $local_fs $remote_fs $network $syslog | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: starts etherpad lite | |
# Description: starts etherpad lite using start-stop-daemon |
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
Section "Monitor" | |
Identifier "Monitor0" | |
Modeline "1920x1200_60.00" 193.25 1920 2056 2256 2592 1200 1203 1209 1245 -hsync +vsync | |
EndSection | |
Section "Screen" | |
Identifier "Screen0" | |
Device "eDP1" | |
Monitor "Monitor0" | |
DefaultDepth 24 | |
SubSection "Display" |
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 | |
###################### | |
##Simple script that uses ufraw-batch to convert CR2 (raw) images into JPG. | |
##Place the script inside /usr/bin/cr2tojpg | |
##Usage: cr2tojpg /your/image/location | |
##Ben Copeland 2014 https://github.com/bhcopeland 26/01/14 | |
####################### | |
cd $1 | |
if [[ -z "$1" ]]; then |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<zabbix_export> | |
<version>2.0</version> | |
<date>2014-07-13T23:42:46Z</date> | |
<groups> | |
<group> | |
<name>Templates</name> | |
</group> | |
</groups> |
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 | |
# This script DELETES for given user or domain from *PRIVATE* lists. | |
# https://github.com/bhcopeland | |
# Syntax ./script_name.sh [email protected] | |
# ./script_name.sh firstname.lastname | |
# ./script_name.sh @domain.com | |
if [[ $@ ]]; then | |
for mailinglist in $(comm -23 <(list_lists -b) <(list_lists -b -a)) | |
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
#! /usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import os | |
import re | |
import subprocess | |
import sys | |
from ansible.callbacks import display, banner |
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
### Conky configuration file | |
## No output to X <yes/no> | |
out_to_x no | |
## Create own window to draw <yes/no> | |
own_window no | |
## Print everything to console? |
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
- name: Ensure fstab uses nobootwait and noatime | |
mount: | |
name: "{{ item.mount }}" | |
src: "{{ item.device }}" | |
fstype: "{{ item.fstype }}" | |
opts: "{{ item.options.split(',') | union(['nobootwait','noatime']) | join(',') }}" | |
state: present | |
with_items: ansible_mounts | |
when: item.options.find("nobootwait") == -1 or item.options.find("noatime") == -1 | |
tags: |
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
echo "write" | |
dd if=/dev/zero of=tempfile bs=1M count=1024 conv=fdatasync,notrunc | |
echo "read" | |
sudo sh -c "echo 3 > /proc/sys/vm/drop_caches" | |
dd if=tempfile of=/dev/null bs=1M count=1024 | |
echo "Re-Read" | |
dd if=tempfile of=/dev/null bs=1M count=1024 |
OlderNewer