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
-- Standard awesome library | |
local gears = require("gears") | |
local awful = require("awful") | |
awful.rules = require("awful.rules") | |
require("awful.autofocus") | |
-- Widget and layout library | |
local wibox = require("wibox") | |
-- Theme handling library | |
local beautiful = require("beautiful") | |
-- Notification library |
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
while true | |
do | |
# left handed tablet | |
#xsetwacom --set "Wacom Intuos Pro M Pen stylus" rotate half; | |
#xsetwacom --set "Wacom Intuos Pro M Finger touch" rotate half; | |
# upper buttons | |
xsetwacom --set "Wacom Intuos Pro M Pad pad" Button 12 "key +shift" # resize brush | |
xsetwacom --set "Wacom Intuos Pro M Pad pad" Button 11 "key o" # increase opacity | |
xsetwacom --set "Wacom Intuos Pro M Pad pad" Button 10 "key i" # decrease opacity | |
xsetwacom --set "Wacom Intuos Pro M Pad pad" Button 9 "key l" # lighter color |
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
TEST_CASE_METHOD(ArgumentsFixtures, "Parameter extraction working", "[arguments]") { | |
/* SECTION("Get Data Path") { | |
radix::Arguments arguments = Arguments(argumentCount, argumentVector); | |
REQUIRE(arguments.getDataPath() == "/tmp"); | |
}*/ | |
SECTION("Determine executable name") { | |
const char* argumentVector[] = { "param0", "param1", "param2" }; | |
radix::Arguments arguments = Arguments(argumentCount, const_cast<char**>(argumentVector)); | |
REQUIRE(arguments.getExecutableName() == "executableName"); |
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
$ cat /media/fast/SteamLibrary/steamapps/common/Momodora\ RUtM/MomoRun.sh | |
#!/bin/bash | |
echo "aaaaaaa" | |
source ./LangChangeforSave.sh | |
LD_PRELOAD=libcurl.so.3 | |
./MomodoraRUtM |
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
magerun sys:check [13:46:57] | |
[Zend_Db_Adapter_Exception] | |
SQLSTATE[HY000] [2002] Connection timed out | |
[PDOException] | |
SQLSTATE[HY000] [2002] Connection timed out |
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
$collection = Mage::getSingelton('checkout/session')->getQuote()->getItemsCollection(); | |
$collection->getSelect()->order('created_at DESC'); | |
$latestItem = $collection->getFirstItem(); |
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
-rw-rw-r-- 1 vagrant www-data 2614 Feb 8 09:58 index.php | |
vagrant@ubuntu:/var/www/concierge/htdocs$ ls -la | |
total 844 | |
drwxrwxr-x 14 vagrant www-data 4096 Feb 8 09:58 . | |
drwxrwxr-x 7 vagrant www-data 4096 Feb 8 09:29 .. | |
-rw-rw-r-- 1 vagrant www-data 3219 Feb 8 08:54 api.php | |
drwxrwxr-x 6 vagrant www-data 4096 Feb 6 14:53 app | |
-rw-rw-r-- 1 vagrant www-data 2946 Feb 8 08:54 cron.php | |
-rw-rw-r-- 1 vagrant www-data 1639 Feb 8 08:54 cron.sh | |
drwxrwxr-x 3 vagrant www-data 4096 Feb 8 08:54 dev |
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
export DEBIAN_FRONTEND=noninteractive | |
debconf-set-selections <<< 'mariadb-server-10.0 mysql-server/root_password password root' | |
debconf-set-selections <<< 'mariadb-server-10.0 mysql-server/root_password_again password root' | |
debconf-set-selections <<< 'mariadb-server-10.0 mariadb-server/root_password password root' | |
debconf-set-selections <<< 'mariadb-server-10.0 mariadb-server/root_password_again password root' | |
debconf-set-selections <<< 'mariadb-server mysql-server/root_password password root' | |
debconf-set-selections <<< 'mariadb-server mysql-server/root_password_again password root' | |
debconf-set-selections <<< 'mysql-server mysql-server/root_password password root' | |
debconf-set-selections <<< 'mysql-server mysql-server/root_password_again password root' |
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( LIBNOTIFY_INCLUDE_DIR ) | |
SET( Libnotify_FIND_QUIETLY TRUE ) | |
ENDIF( LIBNOTIFY_INCLUDE_DIR ) | |
FIND_PATH( LIBNOTIFY_INCLUDE_DIR "notify.h" | |
PATHS /usr/include | |
PATH_SUFFIXES "libnotify" ) | |
set (LIBNOTIFY_INCLUDE_DIRS ${LIBNOTIFY_INCLUDE_DIR}) | |
FIND_LIBRARY( LIBNOTIFY_LIBRARY |
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
public function setCustomerAsLoggedIn($customer) | |
{ | |
$this->setCustomer($customer); | |
$this->renewSession(); | |
Mage::getSingleton('core/session')->renewFormKey(); | |
Mage::dispatchEvent('customer_login', array('customer'=>$customer)); | |
return $this; | |
} |
NewerOlder