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 | |
$builders = array( | |
//red small | |
'1' => array( | |
'product_id' => 1, | |
'choices' => array('100', '300'), | |
'uoms' => array( | |
'ea_1' => array( | |
'uom_code' => 'EA', | |
'quantity' => '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
[nlundsten@localhost ~]$ nslookup | |
> d2 | |
Server: 127.0.0.1 | |
Address: 127.0.0.1#53 | |
** server can't find d2: NXDOMAIN | |
> set d2 | |
> set timeout=1 | |
> pastebin.com | |
addlookup() |
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
//from module.php | |
public function onBootstrap($e) | |
{ | |
$app = $e->getParam('application'); | |
$sl = $app->getServiceManager(); | |
$adapter = $sl->get('my_adapter_name'); | |
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
sudo systemctl stop nginx.service | |
sudo systemctl stop php-fpm.service | |
sudo systemctl stop mysqld.service | |
sudo systemctl start nginx.service | |
sudo systemctl start php-fpm.service | |
sudo systemctl start mysqld.service | |
sudo chmod 777 /var/lib/php/session | |
sudo tail -f /var/log/nginx/error.log |
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 | |
wininfo=$(xwininfo) | |
windowid=$(echo "$wininfo" | grep "Window id" | cut -b 22-31) | |
abstopleft=$(echo "$wininfo" | grep "Absolute upper-left X" | cut -b 27-31) | |
reltopleft=$(echo "$wininfo" | grep "Relative upper-left X" | cut -b 27-31) | |
if [ $abstopleft = $reltopleft ]; then | |
##restore window decorations | |
xprop -id $windowid -f _MOTIF_WM_HINTS 32c -set _MOTIF_WM_HINTS "0x2, 0x0, 0x1, 0x0, 0x0" |
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
~ | |
nlundsten $ cat /etc/nginx/conf.d/virtual.conf | |
server { | |
listen 80; | |
server_name .dev; | |
set $basepath "/home/nlundsten/workspace"; | |
set $domain $host; | |
set $rootpath "Misc"; |
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
# For more information on configuration, see: | |
# * Official English Documentation: http://nginx.org/en/docs/ | |
# * Official Russian Documentation: http://nginx.org/ru/docs/ | |
user nlundsten; | |
worker_processes 1; | |
error_log /var/log/nginx/error.log; | |
#error_log /var/log/nginx/error.log notice; |
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
;;;;;;;;;;;;;;;;;;;;; | |
; FPM Configuration ; | |
;;;;;;;;;;;;;;;;;;;;; | |
; All relative paths in this configuration file are relative to PHP's install | |
; prefix. | |
; Include one or more files. If glob(3) exists, it is used to include a bunch of | |
; files from a glob(3) pattern. This directive can be used everywhere in the | |
; file. |
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
; Start a new pool named 'www'. | |
[www] | |
; The address on which to accept FastCGI requests. | |
; Valid syntaxes are: | |
; 'ip.add.re.ss:port' - to listen on a TCP socket to a specific address on | |
; a specific port; | |
; 'port' - to listen on a TCP socket to all addresses on a | |
; specific port; | |
; '/path/to/unix/socket' - to listen on a unix socket. |
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
12032007421 | |
12032007426 | |
12032007429 | |
12032007430 | |
12032007433 | |
12032007434 | |
12032007436 | |
12032007438 | |
12032007441 | |
12032007445 |