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; | |
server_name img.x4b.org; | |
root /var/www/image/; | |
} |
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
# WinSCP script for uploading a single file | |
# see http://winscp.net/eng/docs/scripting for documentation on WinSCP scripting | |
# Automatically abort script on errors | |
option batch continue | |
# Disable overwrite confirmations that conflict with the previous | |
option confirm off | |
# Connect to server (change this to match your connection settings) |
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 off | |
set path=%1 | |
set folder=%date:~4,2%-%date:~7,2%-%date:~10,4% | |
For %%A in ("%path%") do ( | |
Set Name=%%~nA | |
) | |
cd "C:\Program Files (x86)\WinSCP" |
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 | |
$fifo = '/rsyslog/pipe'; | |
$max_length = 1024*8; | |
$redis_list_name = 'log_entries'; | |
$redis_host = '127.0.0.1'; | |
$redis_port = 6379; | |
$multi_bulk = 25; | |
$redis = new Redis(); | |
$redis->connect($redis_host, $redis_port); |
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 | |
## EDIT HERE | |
DOMAIN="domain.com" | |
## NO NEED TO EDIT BELOW THIS LINE ## | |
# Copy to backup | |
cp dev.$DOMAIN ${DOMAIN}_c -R --preserve | |
#chmod 777 ${DOMAIN}_c -R |
NewerOlder