-
In your local_settings.py file:
DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME': 'django_%s' % (PROJECT_NAME,),
'USER': xxxx,
/* Builds a list of images found in the linked style sheets | |
* | |
* Adapted from stackoverflow.com/questions/2430503/list-of-all-background-images-in-dom/2453880#2453880 | |
* | |
* This method has the advantage of finding URLs for background images that no | |
* element in the DOM uses yet. | |
* Author: Donovan Mueller @donut (https://github.com/donut) | |
* Contributors: Vyacheslav Vasiliev @vyach-vasiliev (https://gist.github.com/vyach-vasiliev) | |
* | |
* @return {array} |
/** | |
Static http server implemented with NodeJS. | |
Features: | |
1. No external dependencies | |
2. Support http/https, with custom port. | |
3. Support CORSProxy function | |
4. Zero configuration, convension over configuration | |
5. Support gzip compression |
/* To use this in a Google Sheet: | |
1. Go to Tools > Script Editor. | |
2. Save the script. | |
3. Paste this script and click on the bug symbol. | |
4. Authorize the script. | |
5. Refresh the sheet. | |
For setting hot-key: | |
Tools - Macros - Manage macros |
<!DOCTYPE html> | |
<html> | |
<head> | |
<script type="text/javascript"> | |
// Your Client ID can be retrieved from your project in the Google | |
// Developer Console, https://console.developers.google.com | |
// Also the URL has to be allowed or 401 errors will be thrown on the console | |
var CLIENT_ID = '<YOUR_CLIENT_ID>'; |
// Author Keisuke Miura | |
// Not object class. AndroidManifest.xml error happen. | |
class MainApplication : Application() { | |
init { | |
instance = this | |
} | |
companion object { | |
private var instance: MainApplication? = null |
## Block SQL injections | |
set $block_sql_injections 0; | |
if ($query_string ~ "union.*select.*\(") { | |
set $block_sql_injections 1; | |
} | |
if ($query_string ~ "union.*all.*select.*") { | |
set $block_sql_injections 1; | |
} |
### 1: Drop invalid packets ### | |
/sbin/iptables -t mangle -A PREROUTING -m conntrack --ctstate INVALID -j DROP | |
### 2: Drop TCP packets that are new and are not SYN ### | |
/sbin/iptables -t mangle -A PREROUTING -p tcp ! --syn -m conntrack --ctstate NEW -j DROP | |
### 3: Drop SYN packets with suspicious MSS value ### | |
/sbin/iptables -t mangle -A PREROUTING -p tcp -m conntrack --ctstate NEW -m tcpmss ! --mss 536:65535 -j DROP | |
### 4: Block packets with bogus TCP flags ### |
#!/bin/bash | |
pip freeze --local >pipfreeze.txt | |
pip install --upgrade --force-reinstall -r pipfreeze.txt | |
# second variant | |
#apt-get install libxml2-dev libssl-dev libffi-dev libxslt1-dev python-dev libjpeg-dev | |
#pip freeze --local >pipfreeze.txt | |
#tr '\n' ' ' < pipfreeze.txt >pipfreeze2.txt |
export function funci() { | |
return "AHH HHHHAAA"; | |
} |