Skip to content

Instantly share code, notes, and snippets.

View filippov70's full-sized avatar

Владислав filippov70

View GitHub Profile
@alikrc
alikrc / DbeaverDarkThemeHow.md
Last active April 17, 2024 14:25
dbeaver dark theme setup
@essoen
essoen / web.xml
Last active May 6, 2022 04:05
CORS * for GeoServer with Tomcat add following to `/var/lib/tomcat7/webapps/geoserver/WEB-INF/web.xml`
<filter>
<filter-name>CorsFilter</filter-name>
<filter-class>org.apache.catalina.filters.CorsFilter</filter-class>
<init-param>
<param-name>cors.allowed.origins</param-name>
<param-value>*</param-value>
</init-param>
<init-param>
<param-name>cors.allowed.methods</param-name>
<param-value>GET,POST,HEAD,OPTIONS,PUT</param-value>
@NikolayS
NikolayS / gist:1bbc624dfc088be6f15c
Last active July 23, 2023 16:51
Oracle's attempt to protect its place on the Russian market of database systems (RU + EN)
Источник: http://img11.postila.ru/data/34/fb/11/82/34fb118246ebb0b6a7f2dc6e7685f5ff62c0d9cff90876b283f3ecb521444775.jpg
(документ, упоминаемый в статье Ведомостей http://www.vedomosti.ru/technology/articles/2016/03/17/633926-importnii-soft-zamenit)
Почему PostgreSQL не является аналогом СУБД Oracle
С 1 января 2016 года в России вступает в действие постановление РФ "Об установлении запрета на допуск
Программного обеспечения, происходящего из иностранных государств, для целей осуществления закупок для обеспечения
государственных и муниципальных нужд". В соответствии с этим постановлением 1 января 2016 года формируется
реестр российского программного обеспечения (ПО)и госорганизации могут покупать ПО иностранных фирм
BEGIN;
-------------------------------------------------------
-- CREATE test tables
CREATE TABLE label_point (
gid serial NOT NULL,
geom geometry(point, 3857),
label_sample varchar(255),
@mbiette
mbiette / example_send_email_with_attachment.py
Created September 24, 2015 17:44
Simple python script to send an email with a csv attached
# coding=utf-8
__author__ = 'Maxime Biette'
conf = {
'from': 'maximebiette@gmail.com',
'to': 'maximebiette+test@gmail.com',
'server': 'smtp.gmail.com',
'port': '587',
'tls': 'yes',
'login': 'maximebiette@gmail.com',
@brenopolanski
brenopolanski / install-indicator-synapse.md
Last active June 14, 2019 04:02
How to Install Indicator Synapse (Spotlight Alternative) on Ubuntu 14.04 LTS or Linux Mint 17

Indicator Synapse is a Spotlight Alternative, developed by Tom Beckmann.

spotlight-alternative

How to Install Indicator Synapse (Spotlight Alternative) on Ubuntu 14.04 LTS or Linux Mint 17 run this commands in terminal:

$ [sudo] add-apt-repository ppa:noobslab/apps
$ [sudo] apt-get update
$ [sudo] apt-get install indicator-synapse
@arjendk
arjendk / cartodb-install-ubuntu-1204.md
Last active May 20, 2021 13:33
Installing CartoDB on Ubuntu Server 12.04
@miguelgrinberg
miguelgrinberg / rest-server.py
Last active March 29, 2024 09:05
The code from my article on building RESTful web services with Python and the Flask microframework. See the article here: http://blog.miguelgrinberg.com/post/designing-a-restful-api-with-python-and-flask
#!flask/bin/python
from flask import Flask, jsonify, abort, request, make_response, url_for
from flask_httpauth import HTTPBasicAuth
app = Flask(__name__, static_url_path = "")
auth = HTTPBasicAuth()
@auth.get_password
def get_password(username):
if username == 'miguel':
@tmcw
tmcw / xyz_vs_tms.md
Last active April 3, 2024 06:18
The difference between XYZ and TMS tiles and how to convert between them

The difference between XYZ and TMS tiles and how to convert between them

Lots of tile-based maps use either the XYZ or TMS scheme. These are the maps that have tiles ending in /0/0/0.png or something. Sometimes if it's a script, it'll look like &z=0&y=0&x=0 instead. Anyway, these are usually maps in Spherical Mercator.

Good examples are OpenStreetMap, Google Maps, MapBox, MapQuest, etc. Lots of maps.

Most of those are in XYZ. The best documentation for that is slippy map tilenames on the OSM Wiki, and Klokan's Tiles a la Google.

@tmshv
tmshv / classify_point.js
Created August 6, 2012 14:30
Определение положения точки относительно направленного отрезка прямой линии
/**
* define type of point relativly line
* point: {x:[number], y:[number]}
* line:
{
first:{x:[number], y:[number]},
second:{x:[number], y:[number]}
}
*/
function classify(point, line) {