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 | |
################################################################## | |
# A Project of TNET Services, Inc | |
# | |
# Title: WiFi_Check | |
# Author: Kevin Reed (Dweeber) | |
# [email protected] | |
# Project: Raspberry Pi Stuff | |
# | |
# Copyright: Copyright (c) 2012 Kevin Reed <[email protected]> |
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
/* ============================================================ | |
| :=Text Spinner | |
=============================================================== */ | |
function preg_quote(str, delimiter) { | |
return (str + '').replace(new RegExp('[.\\\\+*?\\[\\^\\]$(){}=!<>|:\\' + (delimiter || '') + '-]', 'g'), '\\$&'); | |
} | |
function spin(text) { | |
var matches = text.match(/{[^<]+/gi); | |
if (matches === null) { |
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
/// write to file | |
var txtFile = "c:/test.txt"; | |
var file = new File(txtFile); | |
var str = "My string of text"; | |
file.open("w"); // open file with write access | |
file.writeln("First line of text"); | |
file.writeln("Second line of text " + str); | |
file.write(str); | |
file.close(); |
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
<!doctype> | |
<html> | |
<head> | |
</head> | |
<body> | |
<?php | |
require_once "Classes/PHPExcel.php"; | |
$tmpfname = "test.xlsx"; |
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
from scrapy.spider import Spider | |
from scrapy.selector import Selector | |
from yp.items import YpItem | |
class YpSpider(Spider): | |
name = "yp" | |
allowed_domains = ["yellowpages.com"] | |
start_urls = [ | |
"http://www.yellowpages.com/ft-worth-tx/churches?g=ft.%20worth%2C%20tx&q=churches" | |
] |
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
import ast | |
from cStringIO import StringIO | |
import sys | |
INFSTR = '1e308' | |
def interleave(inter, f, seq): | |
seq = iter(seq) | |
try: | |
f(next(seq)) |
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
// Auto detect line endings | |
ini_set('auto_detect_line_endings', true); | |
function loadCSV($file) | |
{ | |
// Create an array to hold the data | |
$arrData = array(); | |
// Create a variable to hold the header information | |
$header = NULL; |
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
// .htaccess | |
// | |
// Add this to the directory where your write.php will be stored | |
// This is an easy way to do an HTTP request to the script with the data | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
# Change the following to the base directory of this file | |
RewriteBase /clickstats/ |
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
1033edge.com | |
11mail.com | |
123.com | |
123box.net | |
123india.com | |
123mail.cl | |
123qwe.co.uk | |
150ml.com | |
15meg4free.com | |
163.com |
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
How to Secure phpMyAdmin | |
Some tips to add an extra layer of protection to your phpmyadmin. Vesta Control Panel is really good but it seems like its lacking in the security department so I want to help as much as possible. | |
Add htaccess login (extra login) | |
more info: https://degreesofzero.com/article/how-to-secure-phpmyadmin.html | |
Change the default /phpmyadmin alias to something like /phpmyadmin-vcn0vgu02j0239f | |
more info: https://forum.vestacp.com/viewtopic.php?f=10&t=5264 (thanks john) | |
check your config locations here: http://vestacp.com/docs/#config-log-location-rhel-centos |
OlderNewer