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
| start /affinity 1 program.exe |
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
| [root@prox4 ~]$ vzlist | |
| Unable to open /etc/pve/openvz/171.conf: Transport endpoint is not connected | |
| Unable to open /etc/pve/openvz/185.conf: Transport endpoint is not connected | |
| Unable to open /etc/pve/openvz/190.conf: Transport endpoint is not connected | |
| Unable to open /etc/pve/openvz/191.conf: Transport endpoint is not connected | |
| Unable to open /etc/pve/openvz/192.conf: Transport endpoint is not connected | |
| Unable to open /etc/pve/openvz/193.conf: Transport endpoint is not connected | |
| Unable to open /etc/pve/openvz/194.conf: Transport endpoint is not connected | |
| Unable to open /etc/pve/openvz/195.conf: Transport endpoint is not connected | |
| Unable to open /etc/pve/openvz/196.conf: Transport endpoint is not connected |
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
| server { | |
| listen *:80; | |
| ##comment/uncomment## | |
| # server_name crm.hotels24.ua; | |
| # server_name crm.hotels24.stage; | |
| server_name crm.hotels24.dev; | |
| charset utf-8; | |
| root /var/www/admin_hotels24/public; |
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
| [ -e /usr/lib/apt/methods/https ] || { | |
| apt-get update | |
| apt-get install -y apt-transport-https | |
| } | |
| apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9 | |
| sh -c "echo deb https://get.docker.com/ubuntu docker main > /etc/apt/sources.list.d/docker.list" | |
| apt-get update | |
| apt-get install -y --force-yes apparmor lxc-docker |
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
| [ -e /usr/lib/apt/methods/https ] || { | |
| apt-get update | |
| apt-get install apt-transport-https | |
| } | |
| sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9 | |
| sudo sh -c "echo deb https://get.docker.com/ubuntu docker main > /etc/apt/sources.list.d/docker.list" | |
| sudo apt-get update | |
| sudo apt-get install -y lxc-docker |
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 | |
| $e = 0; | |
| $a = null; | |
| function justAmps($e, $a){ | |
| if($a = 5 && $e + $a){ | |
| print "+"; | |
| } else { | |
| print "-"; | |
| } |
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
| /* 1 */ | |
| { | |
| "_id" : ObjectId("55422b88a4781970558b456d"), | |
| "timestamp" : "Thu Apr 30 16:17:59 2015", | |
| "role" : "Partners", | |
| "data" : { | |
| "url" : "/calendar/room/", | |
| "params" : { | |
| "tariff" : "53d5a969a4781937098b82cc", | |
| "data" : { |
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
| echo $'alias snd-card-0 snd-hda-intel\noptions snd-hda-intel model=auto'| sudo tee --append /etc/modprobe.d/alsa-base.conf > /dev/null | |
| # After reboot make sure that your mic is not muted. To check that run alsamixer in terminal. |
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
| #You can use valgrind to find memory related issues: | |
| #Usage: | |
| valgrind --tool=memcheck program_name #(/sbin/docker or wharever the path to docker is) | |
| valgrind --leak-check=yes program_name | |
| #Example: | |
| valgrind --leak-check=yes /sbin/httpd | |
| #Check for lines containing definitely lost or probably lost to confirm that there is a memory leak. |
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 | |
| while [[ $# > 1 ]] | |
| do | |
| key="$1" | |
| case $key in | |
| -e|--extension) | |
| EXTENSION="$2" | |
| shift | |
| ;; |