code
stringlengths
1
1.96M
language
stringclasses
1 value
#!/bin/sh . /etc/acpi/eeepc/acpi-eeepc-generic-functions.sh get_model . /etc/acpi/eeepc/models/acpi-eeepc-$EEEPC_MODEL-events.conf # Disable access control. Needed for GUI notification. execute_commands "@xhost +" SELECTION=$3 if [ "$KEY_SHOW" = "1" ]; then eeepc_notify "The event of the pressed key is: \"$SELECTIO...
Shell
# Maintainer: Nicolas Bigaouette <nbigaouette@gmail.com> # Greatly inspired by: # EeePC ACPI Utilities : http://eeepc-acpi-util.sourceforge.net # Other Eee acpi packages from AUR: http://aur.archlinux.org/packages.php?K=eee # TODO # XRandR toggle between (see acpi-eeepc900, display.sh): # -LVDS only # ...
Shell
#!/bin/bash # # http://code.google.com/p/acpi-eeepc-generic/ # . /etc/acpi/eeepc/acpi-eeepc-generic-functions.sh BT_SAVED_STATE_FILE=$EEEPC_VAR/states/bluetooth if [ -e $BT_SAVED_STATE_FILE ]; then BT_SAVED_STATE=$(cat $BT_SAVED_STATE_FILE) else BT_SAVED_STATE=0 fi # Find the right rfkill switch, but default to...
Shell
#!/bin/bash now=`date +"%Y%m%d_%Hh%m"` case "$1" in stop) mkdir -p /logs_backup/$now cp -Rp /var/log/* /logs_backup/$now/ ;; start) ;; *) echo 'Usage: /etc/init.d/console-setup {start||stop}' exit 1 ;; esac
Shell
#!/bin/bash # # EeePC LVDS resolution toggle # Andrew Wyatt # Tool to toggle LVDS output resolutions # Edited by Nicolas Bigaouette # Generic WIFI toggle utility which should work across EeePC models. # # http://code.google.com/p/acpi-eeepc-generic/ # . /etc/acpi/eeepc/acpi-eeepc-generic-functions.sh tmp_xrandr=...
Shell
#!/bin/sh # EeePC Configuration restore # Edited by Nicolas Bigaouette # Generic WIFI toggle utility which should work across EeePC models. # # http://code.google.com/p/acpi-eeepc-generic/ # # . /etc/rc.conf . /etc/rc.d/functions . /etc/acpi/eeepc/acpi-eeepc-generic-functions.sh case "$1" in restart|restore|...
Shell
#!/bin/bash # # LVDS Rotate # Andrew Wyatt # Tool to rotate LVDS panel # . /etc/acpi/eeepc/acpi-eeepc-generic-functions.sh function rotate_toggle { CURRENT=`xrandr | grep LVDS | awk '{print $4}'` if [ "$CURRENT" = "right" ]; then ROTATION="inverted" elif [ "$CURRENT" = "inverted" ]; then ROTATION="left...
Shell
#!/bin/sh . /etc/acpi/eeepc/acpi-eeepc-generic-functions.sh lock="${EEEPC_VAR}/power.lock" if [ -e "$lock" ]; then msg="You can now suspend normally" rm -f $lock logger "$msg" eeepc_notify "$msg" gnome-session-suspend exit 0 else msg="Suspend is now blocked" touch $lock logger "$msg" ...
Shell
#!/bin/sh . /etc/acpi/eeepc/acpi-eeepc-generic-functions.sh get_model . /etc/acpi/eeepc/models/acpi-eeepc-$EEEPC_MODEL-events.conf # Disable access control. Needed for GUI notification. execute_commands "@xhost +" SELECTION=$3 if [ "$KEY_SHOW" = "1" ]; then eeepc_notify "The event of the pressed key is: \"$SELECTIO...
Shell
#!/bin/bash # # Toggle between available displays using xrandr # . /etc/acpi/eeepc/acpi-eeepc-generic-functions.sh xrandr=`which xrandr` if [ ! -e "$xrandr" ]; then msg="Please install xorg-server-utils to be able to use xrandr." eeepc_notify "$msg" display logger "$msg" echo "$msg" exit 0 fi var...
Shell
#!/bin/bash . /etc/conf.d/acpi-eeepc-generic.conf [ ! -d "$EEEPC_VAR/states" ] && mkdir -p $EEEPC_VAR/states chmod a+w /var/eeepc/states/* &> /dev/null # Extract kernel version KERNEL=`uname -r` KERNEL=${KERNEL%%-*} KERNEL_maj=${KERNEL%%\.*} k=${KERNEL#${KERNEL_maj}.} KERNEL_min=${k%%\.*} k=${KERNEL#${KERNEL_maj}.$...
Shell
#!/bin/bash # # EeePC Touchpad toggle # Tool to enable / disable touchpad # Andrew Wyatt # Edited by Nicolas Bigaouette # Generic WIFI toggle utility which should work across EeePC models. # # http://code.google.com/p/acpi-eeepc-generic/ # . /etc/acpi/eeepc/acpi-eeepc-generic-functions.sh # 0 means off, 1 means...
Shell
#!/bin/bash # # http://code.google.com/p/acpi-eeepc-generic/ # . /etc/acpi/eeepc/acpi-eeepc-generic-functions.sh EEEPC_RADIO_SAVED_STATE_FILE=$EEEPC_VAR/states/wifi if [ -e $EEEPC_RADIO_SAVED_STATE_FILE ]; then RADIO_SAVED_STATE=$(cat $EEEPC_RADIO_SAVED_STATE_FILE) else RADIO_SAVED_STATE=0 fi # Find the right r...
Shell
#!/bin/bash # # http://code.google.com/p/acpi-eeepc-generic/ # . /etc/acpi/eeepc/acpi-eeepc-generic-functions.sh BT_SAVED_STATE_FILE=$EEEPC_VAR/states/bluetooth if [ -e $BT_SAVED_STATE_FILE ]; then BT_SAVED_STATE=$(cat $BT_SAVED_STATE_FILE) else BT_SAVED_STATE=0 fi # Find the right rfkill switch, but default to...
Shell
#!/bin/sh . /etc/acpi/eeepc/acpi-eeepc-generic-functions.sh logger "#############################################" logger "acpi-eeepc-generic-suspend2ram.sh:" function suspend_check_blacklisted_processes() { processes=( "$@" ) p_num=${#processes[@]} logger "Checking for processes before suspending: $proc...
Shell
#!/bin/bash now=`date +"%Y%m%d_%Hh%m"` case "$1" in stop) mkdir -p /logs_backup/$now cp -Rp /var/log/* /logs_backup/$now/ ;; start) ;; *) echo 'Usage: /etc/init.d/console-setup {start||stop}' exit 1 ;; esac
Shell
#!/bin/sh . /etc/acpi/eeepc/acpi-eeepc-generic-functions.sh lock="${EEEPC_VAR}/power.lock" if [ -e "$lock" ]; then msg="You can now suspend normally" rm -f $lock logger "$msg" eeepc_notify "$msg" gnome-session-suspend exit 0 else msg="Suspend is now blocked" touch $lock logger "$msg" ...
Shell
#!/bin/sh # EeePC Configuration restore # Edited by Nicolas Bigaouette # Generic WIFI toggle utility which should work across EeePC models. # # http://code.google.com/p/acpi-eeepc-generic/ # # . /etc/rc.conf . /etc/rc.d/functions . /etc/acpi/eeepc/acpi-eeepc-generic-functions.sh case "$1" in restart|restore|...
Shell
#!/bin/sh . /etc/acpi/eeepc/acpi-eeepc-generic-functions.sh logger "#############################################" logger "acpi-eeepc-generic-suspend2ram.sh:" function suspend_check_blacklisted_processes() { processes=( "$@" ) p_num=${#processes[@]} logger "Checking for processes before suspending: $proc...
Shell
#!/bin/bash # # LVDS Rotate # Andrew Wyatt # Tool to rotate LVDS panel # . /etc/acpi/eeepc/acpi-eeepc-generic-functions.sh function rotate_toggle { CURRENT=`xrandr | grep LVDS | awk '{print $4}'` if [ "$CURRENT" = "right" ]; then ROTATION="inverted" elif [ "$CURRENT" = "inverted" ]; then ROTATION="left...
Shell
#!/bin/bash # # EeePC Touchpad toggle # Tool to enable / disable touchpad # Andrew Wyatt # Edited by Nicolas Bigaouette # Generic WIFI toggle utility which should work across EeePC models. # # http://code.google.com/p/acpi-eeepc-generic/ # . /etc/acpi/eeepc/acpi-eeepc-generic-functions.sh # 0 means off, 1 means...
Shell
#!/bin/bash # # http://code.google.com/p/acpi-eeepc-generic/ # . /etc/acpi/eeepc/acpi-eeepc-generic-functions.sh EEEPC_RADIO_SAVED_STATE_FILE=$EEEPC_VAR/states/wifi if [ -e $EEEPC_RADIO_SAVED_STATE_FILE ]; then RADIO_SAVED_STATE=$(cat $EEEPC_RADIO_SAVED_STATE_FILE) else RADIO_SAVED_STATE=0 fi # Find the right r...
Shell
#!/bin/bash # # EeePC LVDS resolution toggle # Andrew Wyatt # Tool to toggle LVDS output resolutions # Edited by Nicolas Bigaouette # Generic WIFI toggle utility which should work across EeePC models. # # http://code.google.com/p/acpi-eeepc-generic/ # . /etc/acpi/eeepc/acpi-eeepc-generic-functions.sh tmp_xrandr=...
Shell
#!/bin/bash . /etc/conf.d/acpi-eeepc-generic.conf [ ! -d "$EEEPC_VAR/states" ] && mkdir -p $EEEPC_VAR/states chmod a+w /var/eeepc/states/* &> /dev/null KERNEL=`uname -r` KERNEL=${KERNEL%%-*} KERNEL_maj=${KERNEL%%\.*} k=${KERNEL#${KERNEL_maj}.} KERNEL_min=${k%%\.*} k=${KERNEL#${KERNEL_maj}.${KERNEL_min}.} KERNEL_rel...
Shell
#!/bin/bash # # Toggle between available displays using xrandr # . /etc/acpi/eeepc/acpi-eeepc-generic-functions.sh xrandr=`which xrandr` if [ ! -e "$xrandr" ]; then msg="Please install xorg-server-utils to be able to use xrandr." eeepc_notify "$msg" display logger "$msg" echo "$msg" exit 0 fi var...
Shell
#!/bin/sh . /etc/acpi/eeepc/acpi-eeepc-generic-functions.sh get_model . /etc/acpi/eeepc/models/acpi-eeepc-$EEEPC_MODEL-events.conf # Needed, else libnotify can't display its magic su $XUSER --login -c "xhost +" SELECTION=$3 if [ "$KEY_SHOW" = "1" ]; then eeepc_notify "You pressed: \"$SELECTION\"" keyboard fi case ...
Shell
# Maintainer: Nicolas Bigaouette <nbigaouette@gmail.com> # Greatly inspired by: # EeePC ACPI Utilities : http://eeepc-acpi-util.sourceforge.net # Other Eee acpi packages from AUR: http://aur.archlinux.org/packages.php?K=eee # TODO # XRandR toggle between (see acpi-eeepc900, display.sh): # -LVDS only # ...
Shell
#!/bin/bash # # . /etc/acpi/eeepc/acpi-eeepc-generic-functions.sh BT_SAVED_STATE_FILE=$EEEPC_VAR/states/bluetooth if [ -e $BT_SAVED_STATE_FILE ]; then BT_SAVED_STATE=$(cat $BT_SAVED_STATE_FILE) else BT_SAVED_STATE=0 fi # Find the right rfkill switch, but default to the second one rfkill="rfkill1" lsrfkill="" [ ...
Shell
#!/bin/bash now=`date +"%Y%m%d_%Hh%m"` case "$1" in stop) mkdir -p /logs_backup/$now cp -Rp /var/log/* /logs_backup/$now/ ;; start) ;; *) echo 'Usage: /etc/init.d/console-setup {start||stop}' exit 1 ;; esac
Shell
#!/bin/bash # # EeePC LVDS resolution toggle # Andrew Wyatt # Tool to toggle LVDS output resolutions # Edited by Nicolas Bigaouette # Generic WIFI toggle utility which should work across EeePC models. # # http://code.google.com/p/acpi-eeepc-generic/ # . /etc/acpi/eeepc/acpi-eeepc-generic-functions.sh tmp_xrandr=...
Shell
#!/bin/sh # EeePC Configuration restore # Edited by Nicolas Bigaouette # Generic WIFI toggle utility which should work across EeePC models. # # http://code.google.com/p/acpi-eeepc-generic/ # # . /etc/rc.conf . /etc/rc.d/functions . /etc/acpi/eeepc/acpi-eeepc-generic-functions.sh case "$1" in restart|restore|...
Shell
#!/bin/bash # # LVDS Rotate # Andrew Wyatt # Tool to rotate LVDS panel # . /etc/acpi/eeepc/acpi-eeepc-generic-functions.sh function rotate_toggle { CURRENT=`xrandr | grep LVDS | awk '{print $4}'` if [ "$CURRENT" = "right" ]; then ROTATION="inverted" elif [ "$CURRENT" = "inverted" ]; then ROTATION="left...
Shell
#!/bin/sh . /etc/acpi/eeepc/acpi-eeepc-generic-functions.sh lock="${EEEPC_VAR}/power.lock" if [ -e "$lock" ]; then msg="You can now suspend normally" rm -f $lock logger "$msg" eeepc_notify "$msg" gnome-session-suspend exit 0 else msg="Suspend is now blocked" touch $lock logger "$msg" ...
Shell
#!/bin/sh . /etc/acpi/eeepc/acpi-eeepc-generic-functions.sh get_model . /etc/acpi/eeepc/models/acpi-eeepc-$EEEPC_MODEL-events.conf # Needed, else libnotify can't display its magic su $XUSER --login -c "xhost +" SELECTION=$3 if [ "$KEY_SHOW" = "1" ]; then eeepc_notify "You pressed: \"$SELECTION\"" keyboard fi case ...
Shell
#!/bin/bash # # Toggle between available displays using xrandr # . /etc/acpi/eeepc/acpi-eeepc-generic-functions.sh xrandr=`which xrandr` if [ ! -e "$xrandr" ]; then msg="Please install xorg-server-utils to be able to use xrandr." eeepc_notify "$msg" display logger "$msg" echo "$msg" exit 0 fi var...
Shell
#!/bin/bash . /etc/conf.d/acpi-eeepc-generic.conf [ ! -d "$EEEPC_VAR/states" ] && mkdir -p $EEEPC_VAR/states chmod a+w /var/eeepc/states/* &> /dev/null KERNEL=`uname -r` KERNEL=${KERNEL%%-*} KERNEL_maj=${KERNEL%%\.*} k=${KERNEL#${KERNEL_maj}.} KERNEL_min=${k%%\.*} k=${KERNEL#${KERNEL_maj}.${KERNEL_min}.} KERNEL_rel...
Shell
#!/bin/bash # # EeePC Touchpad toggle # Tool to enable / disable touchpad # Andrew Wyatt # Edited by Nicolas Bigaouette # Generic WIFI toggle utility which should work across EeePC models. # # http://code.google.com/p/acpi-eeepc-generic/ # . /etc/acpi/eeepc/acpi-eeepc-generic-functions.sh # 0 means off, 1 means...
Shell
#!/bin/bash # # EeePC WIFI Toggle # by Andrew Wyatt # Edited by Nicolas Bigaouette # Generic WIFI toggle utility which should work across EeePC models. # # http://code.google.com/p/acpi-eeepc-generic/ # . /etc/acpi/eeepc/acpi-eeepc-generic-functions.sh EEEPC_RADIO_SAVED_STATE_FILE=$EEEPC_VAR/states/wifi if [ -e...
Shell
#!/bin/bash # # . /etc/acpi/eeepc/acpi-eeepc-generic-functions.sh BT_SAVED_STATE_FILE=$EEEPC_VAR/states/bluetooth if [ -e $BT_SAVED_STATE_FILE ]; then BT_SAVED_STATE=$(cat $BT_SAVED_STATE_FILE) else BT_SAVED_STATE=0 fi # Find the right rfkill switch, but default to the second one rfkill="rfkill1" lsrfkill="" [ ...
Shell
#!/bin/sh . /etc/acpi/eeepc/acpi-eeepc-generic-functions.sh logger "#############################################" logger "acpi-eeepc-generic-suspend2ram.sh:" function suspend_check_blacklisted_processes() { processes=( "$@" ) p_num=${#processes[@]} logger "Checking for processes before suspending: $proc...
Shell
#!/bin/bash now=`date +"%Y%m%d_%Hh%m"` case "$1" in stop) mkdir -p /logs_backup/$now cp -Rp /var/log/* /logs_backup/$now/ ;; start) ;; *) echo 'Usage: /etc/init.d/console-setup {start||stop}' exit 1 ;; esac
Shell
#!/bin/sh . /etc/acpi/eeepc/acpi-eeepc-generic-functions.sh lock="${EEEPC_VAR}/power.lock" if [ -e "$lock" ]; then msg="You can now suspend normally" rm -f $lock logger "$msg" eeepc_notify "$msg" gnome-session-suspend exit 0 else msg="Suspend is now blocked" touch $lock logger "$msg" ...
Shell
#!/bin/sh # EeePC Configuration restore # Edited by Nicolas Bigaouette # Generic WIFI toggle utility which should work across EeePC models. # # http://code.google.com/p/acpi-eeepc-generic/ # # . /etc/rc.conf . /etc/rc.d/functions . /etc/acpi/eeepc/acpi-eeepc-generic-functions.sh case "$1" in restart|restore|...
Shell
#!/bin/sh . /etc/acpi/eeepc/acpi-eeepc-generic-functions.sh logger "#############################################" logger "acpi-eeepc-generic-suspend2ram.sh:" function suspend_check_blacklisted_processes() { processes=( "$@" ) p_num=${#processes[@]} logger "Checking for processes before suspending: $proc...
Shell
#!/bin/bash # # LVDS Rotate # Andrew Wyatt # Tool to rotate LVDS panel # . /etc/acpi/eeepc/acpi-eeepc-generic-functions.sh function rotate_toggle { CURRENT=`xrandr | grep LVDS | awk '{print $4}'` if [ "$CURRENT" = "right" ]; then ROTATION="inverted" elif [ "$CURRENT" = "inverted" ]; then ROTATION="left...
Shell
#!/bin/bash # # EeePC Touchpad toggle # Tool to enable / disable touchpad # Andrew Wyatt # Edited by Nicolas Bigaouette # Generic WIFI toggle utility which should work across EeePC models. # # http://code.google.com/p/acpi-eeepc-generic/ # . /etc/acpi/eeepc/acpi-eeepc-generic-functions.sh # 0 means off, 1 means...
Shell
#!/bin/bash # # EeePC WIFI Toggle # by Andrew Wyatt # Edited by Nicolas Bigaouette # Generic WIFI toggle utility which should work across EeePC models. # # http://code.google.com/p/acpi-eeepc-generic/ # . /etc/acpi/eeepc/acpi-eeepc-generic-functions.sh EEEPC_RADIO_SAVED_STATE_FILE=$EEEPC_VAR/states/wifi if [ -e...
Shell
#!/bin/bash # # EeePC LVDS resolution toggle # Andrew Wyatt # Tool to toggle LVDS output resolutions # Edited by Nicolas Bigaouette # Generic WIFI toggle utility which should work across EeePC models. # # http://code.google.com/p/acpi-eeepc-generic/ # . /etc/acpi/eeepc/acpi-eeepc-generic-functions.sh tmp_xrandr=...
Shell
#!/bin/bash # # Copyright 2009 Nicolas Bigaouette # This file is part of acpi-eeepc-generic. # http://code.google.com/p/acpi-eeepc-generic/ # # acpi-eeepc-generic is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation...
Shell
#!/bin/bash # Copyright 2009 Nicolas Bigaouette # This file is part of acpi-eeepc-generic. # http://code.google.com/p/acpi-eeepc-generic/ # # acpi-eeepc-generic is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, ...
Shell
#!/bin/sh # Copyright 2009 Nicolas Bigaouette # This file is part of acpi-eeepc-generic. # http://code.google.com/p/acpi-eeepc-generic/ # # acpi-eeepc-generic is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, e...
Shell
# Contributor: Nicolas Bigaouette nbigaouette a_t gmail c o m pkgname=acpi-eeepc-generic pkgver=0.9 pkgrel=1 pkgdesc="ACPI scripts for EeePC netbook computers (700, 701, 900, 900A, 901, 904HD, S101, 1000, 1000H, 1000HD, 1000HE)" url="http://code.google.com/p/acpi-eeepc-generic/" arch=(any) license=(GPL3) depends=(acpi...
Shell
#!/bin/bash # Copyright 2009 Nicolas Bigaouette # This file is part of acpi-eeepc-generic. # http://code.google.com/p/acpi-eeepc-generic/ # # acpi-eeepc-generic is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation,...
Shell
#!/bin/bash # Copyright 2009 Nicolas Bigaouette # This file is part of acpi-eeepc-generic. # http://code.google.com/p/acpi-eeepc-generic/ # # acpi-eeepc-generic is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation,...
Shell
#!/bin/bash # Copyright 2009 Nicolas Bigaouette # This file is part of acpi-eeepc-generic. # http://code.google.com/p/acpi-eeepc-generic/ # # acpi-eeepc-generic is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation,...
Shell
#!/bin/bash # Copyright 2009 Nicolas Bigaouette # This file is part of acpi-eeepc-generic. # http://code.google.com/p/acpi-eeepc-generic/ # # acpi-eeepc-generic is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation,...
Shell
#!/bin/sh # Copyright 2009 Nicolas Bigaouette # This file is part of acpi-eeepc-generic. # http://code.google.com/p/acpi-eeepc-generic/ # # acpi-eeepc-generic is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, e...
Shell
#!/bin/bash # Copyright 2009 Nicolas Bigaouette # This file is part of acpi-eeepc-generic. # http://code.google.com/p/acpi-eeepc-generic/ # # acpi-eeepc-generic is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation,...
Shell
#!/bin/sh # Copyright 2009 Nicolas Bigaouette # This file is part of acpi-eeepc-generic. # http://code.google.com/p/acpi-eeepc-generic/ # # acpi-eeepc-generic is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, e...
Shell
#!/bin/sh # Copyright 2009 Nicolas Bigaouette # This file is part of acpi-eeepc-generic. # http://code.google.com/p/acpi-eeepc-generic/ # # acpi-eeepc-generic is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, e...
Shell
#!/bin/bash # Copyright 2009 Nicolas Bigaouette # This file is part of acpi-eeepc-generic. # http://code.google.com/p/acpi-eeepc-generic/ # # acpi-eeepc-generic is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, ...
Shell
#!/bin/bash # # Copyright 2009 Nicolas Bigaouette # This file is part of acpi-eeepc-generic. # http://code.google.com/p/acpi-eeepc-generic/ # # acpi-eeepc-generic is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation...
Shell
#!/bin/bash # Copyright 2009 Nicolas Bigaouette # This file is part of acpi-eeepc-generic. # http://code.google.com/p/acpi-eeepc-generic/ # # acpi-eeepc-generic is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation,...
Shell
#!/bin/bash # Copyright 2009 Nicolas Bigaouette # This file is part of acpi-eeepc-generic. # http://code.google.com/p/acpi-eeepc-generic/ # # acpi-eeepc-generic is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation,...
Shell
#!/bin/bash # Copyright 2009 Nicolas Bigaouette # This file is part of acpi-eeepc-generic. # http://code.google.com/p/acpi-eeepc-generic/ # # acpi-eeepc-generic is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation,...
Shell
#!/bin/bash # Copyright 2009 Nicolas Bigaouette # This file is part of acpi-eeepc-generic. # http://code.google.com/p/acpi-eeepc-generic/ # # acpi-eeepc-generic is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation,...
Shell
#!/bin/sh # Copyright 2009 Nicolas Bigaouette # This file is part of acpi-eeepc-generic. # http://code.google.com/p/acpi-eeepc-generic/ # # acpi-eeepc-generic is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, e...
Shell
#!/bin/bash # Copyright 2009 Nicolas Bigaouette # This file is part of acpi-eeepc-generic. # http://code.google.com/p/acpi-eeepc-generic/ # # acpi-eeepc-generic is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation,...
Shell
#!/bin/sh # Copyright 2009 Nicolas Bigaouette # This file is part of acpi-eeepc-generic. # http://code.google.com/p/acpi-eeepc-generic/ # # acpi-eeepc-generic is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, e...
Shell
#!/bin/sh # Copyright 2009 Nicolas Bigaouette # This file is part of acpi-eeepc-generic. # http://code.google.com/p/acpi-eeepc-generic/ # # acpi-eeepc-generic is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, e...
Shell
#!/bin/sh # Copyright 2009 Nicolas Bigaouette # This file is part of acpi-eeepc-generic. # http://code.google.com/p/acpi-eeepc-generic/ # # acpi-eeepc-generic is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, e...
Shell
#!/bin/bash # Copyright 2009 Nicolas Bigaouette # This file is part of acpi-eeepc-generic. # http://code.google.com/p/acpi-eeepc-generic/ # # acpi-eeepc-generic is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation,...
Shell
#!/bin/bash # Copyright 2009 Nicolas Bigaouette # This file is part of acpi-eeepc-generic. # http://code.google.com/p/acpi-eeepc-generic/ # # acpi-eeepc-generic is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation,...
Shell
#!/bin/bash # Copyright 2009 Nicolas Bigaouette # This file is part of acpi-eeepc-generic. # http://code.google.com/p/acpi-eeepc-generic/ # # acpi-eeepc-generic is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation,...
Shell
#!/bin/bash # Copyright 2009 Nicolas Bigaouette # This file is part of acpi-eeepc-generic. # http://code.google.com/p/acpi-eeepc-generic/ # # acpi-eeepc-generic is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation,...
Shell
pdflatex $1.tex && bibtex $1.aux && pdflatex $1.tex && pdflatex $1.tex
Shell
#!/bin/bash for psfilename in *.ps do pdffilename=${psfilename%.ps}'.pdf' ps2pdf $psfilename $pdffilename pdfcrop $pdffilename $pdffilename done for epsfilename in *.eps do pdffilename=${epsfilename%.eps}'.pdf' ps2pdf $epsfilename $pdffilename pdfcrop $pdffilename $pdffilename done
Shell
#!/bin/bash for psfilename in *.ps do pdffilename=${psfilename%.ps}'.pdf' ps2pdf $psfilename $pdffilename pdfcrop $pdffilename $pdffilename done for epsfilename in *.eps do pdffilename=${epsfilename%.eps}'.pdf' ps2pdf $epsfilename $pdffilename pdfcrop $pdffilename $pdffilename done
Shell
#! /bin/bash ./loadFW 0xfffe 0x0007 ./ozyfw-sdr1k.hex sleep 3 ./loadFPGA 0xfffe 0x0007 ./Ozy_Janus.rbf sleep 1 ./write_i2c 0xfffe 0x7 0x1a 0x2 0x1e 0x00 ./write_i2c 0xfffe 0x7 0x1a 0x2 0x12 0x01 ./write_i2c 0xfffe 0x7 0x1a 0x2 0x08 0x15 ./write_i2c 0xfffe 0x7 0x1a 0x2 0x0c 0x00 ./write_i2c 0xfffe 0x7 0x1...
Shell
#! /bin/bash CWD=`pwd` cd /home/bob/dev/projects/acorn-sdr/ozy ./loadFW 0xfffe 0x0007 ozyfw-sdr1k.hex sleep 3 ./loadFPGA 0xfffe 0x0007 Ozy_Janus.rbf sleep 3 ./write_i2c 0xfffe 0x7 0x1b 0x1e 0x00 0x00 2 ./write_i2c 0xfffe 0x7 0x1b 0x12 0x01 0x00 2 ./write_i2c 0xfffe 0x7 0x1b 0x08 0x15 0x00 2 ./write_i2c 0xfffe 0x7 0x...
Shell
#! /bin/bash ./loadFW 0xfffe 0x0007 ./ozyfw-sdr1k.hex sleep 3 ./loadFPGA 0xfffe 0x0007 ./Ozy_Janus.rbf sleep 1 ./write_i2c 0xfffe 0x7 0x1a 0x2 0x1e 0x00 ./write_i2c 0xfffe 0x7 0x1a 0x2 0x12 0x01 ./write_i2c 0xfffe 0x7 0x1a 0x2 0x08 0x15 ./write_i2c 0xfffe 0x7 0x1a 0x2 0x0c 0x00 ./write_i2c 0xfffe 0x7 0x1...
Shell
#! /bin/bash CWD=`pwd` cd /home/bob/dev/projects/acorn-sdr/ozy ./loadFW 0xfffe 0x0007 ozyfw-sdr1k.hex sleep 3 ./loadFPGA 0xfffe 0x0007 Ozy_Janus.rbf sleep 3 ./write_i2c 0xfffe 0x7 0x1b 0x1e 0x00 0x00 2 ./write_i2c 0xfffe 0x7 0x1b 0x12 0x01 0x00 2 ./write_i2c 0xfffe 0x7 0x1b 0x08 0x15 0x00 2 ./write_i2c 0xfffe 0x7 0x...
Shell
cd $ACORN_HOME python bootstrap/bootstrap_service.py ../conf/ice/acorn_ice.config&
Shell
cd $ACORN_HOME python dashboard/dashboard_service.py ../conf/ice/acorn_ice.config&
Shell
#!/bin/sh rm -fr temp_test mkdir -p temp_test cd temp_test pdb2gmx="/sw/bin/pdb2gmx" editconf="/sw/bin/editconf" genbox="/sw/bin/genbox" genion="/sw/bin/genion" grompp="/sw/bin/grompp" mdrun="/sw/bin/mdrun" mrun="" #"${mrun}" echo "\n#=#=# Test DMP from 1BVG for GROMACS #=#=#\n" wget -c "http://www.pdbe.org/downl...
Shell
#!/bin/sh rm -fr temp_test mkdir -p temp_test cd temp_test pdb2gmx="/sw/bin/pdb2gmx" editconf="/sw/bin/editconf" genbox="/sw/bin/genbox" genion="/sw/bin/genion" grompp="/sw/bin/grompp" mdrun="/sw/bin/mdrun" mrun="" #"${mrun}" echo "\n#=#=# Test DMP from 1BVG for GROMACS #=#=#\n" wget -c "http://www.pdbe.org/downl...
Shell
xelatex template.tex
Shell
#!/usr/bin/env bash # Copyright (C) 2011 Mark Burnett # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. ...
Shell
#!/usr/bin/env bash # Copyright (C) 2010 Mark Burnett # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. ...
Shell
#!/bin/sh BENCHDIR=$(dirname $0) if [ "${BENCHDIR%%/*}" == "." ]; then BENCHDIR=$(pwd)${BENCHDIR#.} fi CHIBIHOME=${BENCHDIR%%/benchmarks/gabriel} CHIBI="${CHIBI:-${CHIBIHOME}/chibi-scheme} -I$CHIBIHOME" cd $BENCHDIR for t in *.sch; do echo "${t%%.sch}" LD_LIBRARY_PATH="$CHIBIHOME" DYLD_LIBRARY_PATH="$CHIB...
Shell
#!/bin/sh export PATH=/usr/local/bin:$PATH export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH tar xzvf chibi-scheme-@VERSION@.tgz cd chibi-scheme-@VERSION@ make make install cp tests/r5rs-tests.scm .. cd .. chibi-scheme r5rs-tests.scm | tee r5rs-tests.out
Shell
#!/bin/sh for f in tests/memory/*.scm; do ./chibi-scheme-ulimit -xscheme $f >${f%.scm}.out 2>${f%.scm}.err if diff -q ${f%.scm}.out ${f%.scm}.res \ && diff -q ${f%.scm}.err ${f%.scm}.err-res; then echo "[PASS] ${f%.scm}" rm -f ${f%.scm}.out ${f%.scm}.err else echo "[FAIL] ${...
Shell
# bash -*- shell-script -*- completion for chibi-scheme type chibi-scheme >/dev/null 2>/dev/null && { _chibi-modules() { for dir in ./lib/ /usr/local/share/chibi/ "$@" \ $(echo $CHIBI_MODULE_PATH | tr ':' ' '); do find "$dir" -name \*.sld 2>/dev/null \ | sed 's!'"$dir"'/*!!;s!\.sld$!!;s!/!.!g' done ...
Shell
#!/bin/bash cd mp3tunes rm -rf bin gen ant release /usr/lib/jvm/java-6-sun-1.6.0.14/bin/jarsigner -verbose -keystore ~/my-release-key.keystore -storepass wEluveM1 bin/Login-unsigned.apk latency rm ../mp3tunes-android_*.apk d=`date +20%y%m%d%H%M` filename='../mp3tunes-android_'$d'.apk' zipalign -v 4 bin/Login-un...
Shell
#!/bin/sh #hg push https://mp3tunesadam%40gmail.com:vQ6ku6CD5Ej8@mp3tunes.googlecode.com/hg/mp3tunes hg push https://mp3tunesron%40gmail.com:wE6UR3FT7em4@mp3tunes.googlecode.com/hg/mp3tunes
Shell
#!/bin/bash # # Copyright 2010 Google Inc. All Rights Reserved. # Author: jcgregorio@google.com (Joe Gregorio) # # Creates the documentation set for the library by # running pydoc on all the files in apiclient. # # Notes: You may have to update the location of the # App Engine library for your local system. set...
Shell
echo "The following files are missing or are not checked in:" hg st echo "Enter to continue" read -e YES echo "The following files are missing from the MANIFEST file:" cat MANIFEST | sort > sorted-manifest.txt hg st --clean| sed "s/^C //" | grep -v "^v3" > sorted-allfiles.txt diff sorted-allfiles.txt sorted-manifest.tx...
Shell
#! /bin/bash # Binary of the Texturepacker: TEXTUREPACKER_BINARY=/usr/local/bin/TexturePacker # Shared Spritesheet-Output-Definitions: SPRITESHEET_OUTPUT_DIRECTORY="../assets/gfx/spritesheets/" SPRITESHEET_OUTPUT_JAVAIDS_PACKAGE="org.anddev.andengine.examples.spritesheets" SPRITESHEET_OUTPUT_JAVAIDS_DIRECTORY="../src...
Shell
#!/bin/bash # # Starts a basic web server on the port specified. # # ./serve.sh 3000 -> http://localhost:3000 # # Copyright 2012 Eric Bidelman <ebidel@gmail.com> port=$1 if [ $# -ne 1 ] then port=8000 fi open http://localhost:$port/template.html && python -m SimpleHTTPServer $port;
Shell
#!/bin/sh find . -name "*~" -type f | xargs rm -f find . -name "*.tpl.php" -type f | xargs rm -f
Shell