Общяя информация:
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
syntax on | |
set ruler " Show the line and column numbers of the cursor. | |
set formatoptions+=o " Continue comment marker in new lines. | |
set textwidth=0 " Hard-wrap long lines as you type them. | |
set modeline " Enable modeline. | |
set esckeys " Cursor keys in insert mode. | |
set linespace=0 " Set line-spacing to minimum. | |
set nojoinspaces " Prevents inserting two spaces after punctuation on a join (J) | |
" More natural splits | |
set splitbelow " Horizontal split below current. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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-kontur.ru/?p=73255636 - 3 месяца бесплатной онлайн бухгалтерии | |
https://ya.tochka.com/referral/?promocode=c10980282c574d39 - 3 месяца банковского обслуживания за 1 рубль |
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
ServiceNow | |
{ | |
"service_name": "NetBIOS Name Service", | |
"sys_mod_count": "0", | |
"description": "", | |
"sys_updated_on": "2009-01-24 18:33:12", | |
"sys_tags": "", | |
"sys_id": "09e9d79f0ab3015000ac88704e680ad4", | |
"protocol": "UDP", | |
"sys_updated_by": "glide.maint", |
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/sh | |
fallocate -l 2G /swapfile | |
chmod 600 /swapfile | |
mkswap /swapfile | |
swapon /swapfile | |
echo "/swapfile none swap sw 0 0" >> /etc/fstab | |
sysctl vm.swappiness=10 | |
echo "vm.swappiness=10" >> /etc/sysctl.conf | |
sysctl vm.vfs_cache_pressure=50 | |
echo "vm.vfs_cache_pressure=50" >> /etc/sysctl.conf |
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 djstripe.models import Customer | |
from djstripe.settings import CANCELLATION_AT_PERIOD_END | |
from tastypie import http | |
def subscription(self, request, **kwargs): | |
self.method_check(request, ['get', 'post', 'delete']) | |
if request.user.is_authenticated(): | |
user = request.user | |
customer = Customer.objects.get(subscriber=user) | |
if request.method == 'GET': |
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
sudo su - postgres | |
psql | |
CREATE DATABASE myproject; | |
CREATE USER myproject WITH PASSWORD 'myproject'; | |
ALTER ROLE myproject SET client_encoding TO 'utf8'; | |
ALTER ROLE myproject SET default_transaction_isolation TO 'read committed'; | |
ALTER ROLE myproject SET timezone TO 'UTC'; | |
ALTER ROLE myproject CREATEDB; | |
GRANT ALL PRIVILEGES ON DATABASE myproject TO myproject; | |
\q |
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 django.http import HttpResponse | |
urlpatterns += url(r'^robots.txt$', lambda r: HttpResponse("User-agent: *\nDisallow: /", content_type="text/plain")) |
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
app.config(["$locationProvider", function($locationProvider) { | |
$locationProvider.html5Mode(true); | |
}]); |
NewerOlder