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
$root = 'HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002BE10318}' | |
$items = Get-ChildItem -Path Registry::$Root -Name | |
Foreach ($item in $items) { | |
if ($item -ne "Properties") { | |
$path = $root + "\" + $item | |
$DriverDesc = Get-ItemProperty -Path Registry::$path | Select-Object -expandproperty DriverDesc | |
if ($DriverDesc -eq "Citrix PV Ethernet Adapter") { | |
Set-ItemProperty -path Registry::$path -Name LROIPv4 -Value 0 | |
} |
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/sh | |
file="/mnt/boot/grub/menu.lst" | |
back="/mnt/boot/grub/menu.lst~" | |
word="UUID" | |
mount -o rw /dev/xvdb1 /mnt | |
if [ -x "$file" ]; then | |
echo "File $file does not exist." |
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
<VirtualHost *> | |
ServerAdmin contact@girlybookclub.com | |
ServerName | |
ServerAlias *.girlybookclub.com www.girlybookclub.com | |
DirectoryIndex index.html index.htm index.php | |
DocumentRoot /home/tgbc/girlybookclub/ | |
<Directory /home/tgbc/girlybookclub/> | |
Options Indexes FollowSymLinks MultiViews |
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
<VirtualHost *> | |
ServerAdmin contact@thegirlybookclub.com | |
ServerName thegirlybookclub.com | |
ServerAlias *.thegirlybookclub.com www.thegirlybookclub.com | |
DirectoryIndex index.html index.htm index.php | |
DocumentRoot /home/tgbc/thegirlybookclub/ | |
<Directory /home/tgbc/thegirlybookclub/> | |
Options Indexes FollowSymLinks MultiViews |
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 | |
set -e | |
MY_PATH="$( cd "$( dirname "$0" )" && pwd )" | |
echo Now w are updating the system please wait till the process will end | |
apt-get update && apt-get upgrade -y |
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
--- | |
- hosts: all | |
sudo: yes | |
tasks: | |
- name: Enable EPEL | |
command: yum-config-manager --enable epel | |
- name: Install remi repo. |
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 | |
SERVER="mydomain.com" | |
EMAIL_TO="your_email@gmail.com" | |
EMAIL_FROM="stat@mydomain.com" | |
# logged in users and what are they running | |
WHO=`w` |
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/sh | |
DEV1=ppp0 | |
IP1=100.0.1.1 | |
GW1=100.0.1.254 | |
TABLE2=connection2 | |
DEV2=ppp1 | |
IP2=100.0.2.1 | |
GW2=100.0.2.254 | |
ip route flush table $TABLE1 | |
ip route flush table $TABLE2 |
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
server { | |
listen 80; | |
server_name example.com; | |
root /var/www/example.com/public; | |
#rails_env development; | |
passenger_enabled on; | |
charset utf-8; | |
} |
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
server { | |
listen 80; | |
server_name example.com; | |
root /var/www/example.com/public; | |
#rails_env development; | |
passenger_enabled on; | |
charset utf-8; | |
} |