This file contains 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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# First of all, you must obtain an API access key for the Digital Ocean | |
# provider here https://www.digitalocean.com/api_access | |
# Next, before use, you must set a local environment key `DIGITAL_OCEAN_TOKEN` | |
# to the obtained value in the ~/.bashrc file. | |
Vagrant.configure("2") do |config| |
This file contains 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 java.util.Arrays; | |
import java.util.stream.Stream; | |
public class Alice { | |
// http://www.alice-in-wonderland.net/resources/chapters-script/alices-adventures-in-wonderland/all-in-the-golden-afternoon/ | |
public static final String POEM = "ALL in the golden afternoon\n" + | |
"Full leisurely we glide;\n" + | |
"For both our oars, with little skill,\n" + | |
"By little arms are plied,\n" + | |
"While little hands make vain pretence\n" + |
This file contains 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 | |
./pgcodekeeper-cli --apgdiff --diff --license my.license \ | |
--dbOld-format db --dbNew-format db \ | |
--allow-danger-ddl DROP_TABLE,DROP_COLUMN,ALTER_COLUMN,RESTART_WITH \ | |
jdbc:postgresql://localhost:5433/dev2 \ | |
jdbc:postgresql://localhost:5433/dev1 \ | |
${1:-/dev/stdout} |
This file contains 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
<?xml version="1.0" encoding="UTF-8"?> | |
<project xmlns="http://maven.apache.org/POM/4.0.0" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>me.asaushkin</groupId> | |
<artifactId>dw</artifactId> | |
<version>1.0-SNAPSHOT</version> |
This file contains 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
https://github.com/DIGImend/digimend-kernel-drivers/issues/26 | |
SOLUTION: | |
Installing digimend-kernel-drivers-6 from source followings the instructions. | |
Creating 52-tablet.conf because it didn't exist: | |
cd /etc/X11 | |
sudo mkdir xorg.conf.d | |
cd xorg.conf.d | |
sudo gedit 52-tablet.conf |
This file contains 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 | |
# org.apache.maven.archetypes:maven-archetype-quickstart | |
# org.codehaus.mojo.archetypes:pom-root | |
generate_archetype() { | |
mvn archetype:generate -B \ | |
-DarchetypeGroupId=$1 \ | |
-DarchetypeArtifactId=$2 \ | |
-DarchetypeVersion=1.1 \ | |
-DgroupId=me.asaushkin.lambda \ |
This file contains 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
http://askubuntu.com/questions/730799/installing-fimware-b43-installer-offline | |
You need to install firmware-b43-installer. | |
If you do not have an alternative internet connection, do it this way. | |
If you installed bcmwl-kernel-source, then remove it. | |
sudo apt-get purge bcmwl-kernel-source | |
Download these files |
This file contains 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
Если при инсталляции PostgreSQL выходит ошибка: | |
ERROR: no ecoding defined in /usr/share/hunspell/ru_RU.aff, ignoring | |
то скорее всего файл /usr/share/hunspell/ru_RU.aff содежит начальный BOM маркер для файла UTF-8. | |
Убрать можно следующим образом: | |
sudo vim /usr/share/hunspell/ru_RU.aff |
This file contains 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
Поднять rabbitmq можно такой командой: | |
docker run --restart=always -d -e RABBITMQ_NODENAME=rabbit --name rabbitmq -p 127.0.0.1:15672:15672 -p 127.0.0.1:5672:5672 rabbitmq:3-management | |
После настроить очереди можно через веб-нитерфейс (guest/guest): http://127.0.0.1:15672/ | |
Симулятор rabbitmq: http://tryrabbitmq.com/ - можно проверить свои идеи по конфигурации очередей. |
This file contains 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
docker run --name mongodb -p 27017:27017 -p 28017:28017 -d mongo --rest --httpinterface |