Skip to content

Instantly share code, notes, and snippets.


Nikita S. nikitasius

  • toxId: 4339E5C156D4858940E20F82BE6625BC69B4167EAE1E9924EF79AA474E2A454BE4323FE37C61
  • public static void main (String[] args){}
Block or report user

Report or block nikitasius

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
nikitasius / debian
Last active Mar 29, 2019
well well well debian 9
View debian


echo "supersede domain-name-servers;" >> /etc/dhcp/dhclient.conf


cat <<EOF >/etc/rc.local

Keybase proof

I hereby claim:

  • I am nikitasius on github.
  • I am nikitasius ( on keybase.
  • I have a public key whose fingerprint is EFED B03E 3DE4 3772 FE73 4473 E151 C0BE 20CE 81BE

To claim this, I am signing this object:

nikitasius /
Created Apr 8, 2018
roundcube file upload failed / roundcube attachments not working / roundcube upload problem / empty attachements / zero file uploads

The problem

When you attach a file, roundcube tells you: File upload failed

I understand you

When you fixed all what you think and even fullfilled some php vars like base_dir and pack of upload* variables and you still see empty files and you wanna remove this #$%^!, just relax and..


In a config file keep/add in active plugins filesystem_attachments and remove database_attachments (if you had it).

They can't work together and attachements needs at least a filesystem_attachments.

nikitasius /
Last active Apr 5, 2019
own DNS for NGINX (and whole system too) with DNSSEC from google DNS
  • install dnsmasq (2.78+, cause 2.72 is bugged with certain DNS, including cloudflare)
  • /etc/dnsmasq.conf:
nikitasius / IntelliJ IDEA & GIT (ssh)
Created Feb 22, 2018
8:43 PM Push failed: your_reponame_is_here: failed with error: Could not read from remote repository.
View IntelliJ IDEA & GIT (ssh)
8:43 PM Push failed: your_reponame_is_here: failed with error: Could not read from remote repository.
==> idea.log <==
2018-02-22 20:46:48,111 [ 306076] INFO - ellij.ide.PrivacyPolicyUpdater - Error updating privacy policy: Connection refused (Connection refused)
2018-02-22 20:47:02,328 [ 320293] INFO - #git4idea.commands.GitHandler - [your_reponame_is_here] git -c core.quotepath=false -c log.showSignature=false push --progress --porcelain origin refs/heads/master:master
2018-02-22 20:47:04,700 [ 322665] INFO - #git4idea.commands.GitHandler - There was a problem while connecting to
2018-02-22 20:47:04,701 [ 322666] INFO - #git4idea.commands.GitHandler - at com.trilead.ssh2.Connection.connect(
2018-02-22 20:47:04,701 [ 322666] INFO - #git4idea.commands.GitHandler - at com.trilead.ssh2.Connection.connect(
2018-02-22 20:47:04,701 [ 322666] INFO - #git4idea.commands.GitHandler - at com.trilead.ssh2.Connection.connect

Warning: file_get_contents(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed

go to in /etc/ in chroot

add this into php-fpm profiles

php_admin_value[curl.cainfo] = /etc/cacert.pem
php_admin_value[openssl.cafile] = /etc/cacert.pem
View postgres_queries_and_commands.sql
-- show running queries (pre 9.2)
SELECT procpid, age(query_start, clock_timestamp()), usename, current_query
FROM pg_stat_activity
WHERE current_query != '<IDLE>' AND current_query NOT ILIKE '%pg_stat_activity%'
ORDER BY query_start desc;
-- show running queries (9.2)
SELECT pid, age(query_start, clock_timestamp()), usename, query
FROM pg_stat_activity
WHERE query != '<IDLE>' AND query NOT ILIKE '%pg_stat_activity%'
View block'em ALL.txt
View pub.key
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIE9SWE52Fg3d292pLIZddrJmAuQTe4QyDoUAmz1vGZjo nikitas@publickeycurveblablabla
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAEAQC+9UKK+NYcz82xBMhy4GP3TnPw2TC+B1ylMF2rTLPZqzeaoTTCqno9ubhRL8szjHHptSXtj+iVoNpHs5iYNdUGI21O84nrlflH33NISxWupPmZyolgbEoczBj/5SMzqvOtEa2nnb5Op0VVWt8yZ7R6PMuu1tRqPGU18Cuil64mK47oP4PqcalOC+9uPeBQv65hiSjAs25qkAf4cycqfLpE16rW3gZNhTQsLjDDLvfmzjnXy7XR99RrCw62vtgyc1J1/9qOpBaLgeHmILMt34lMZknFqC+2r7r+67s2zg2WXREkabibPEsJn3Dy5UTf0U6PpZ/hFAckMU1EQ6lKcUXxAbCodd/VCVVok9DZFmlC2xRh5q53D9tMB4j5iUp/TaOzrJISfuYK9gVGdPhaGH+GqfjWLTaGV68zoQnFa/V47a/MqNrWhKZfzmVNZQXexKHrlFZrBS+8tCV2Q3y6i2lMWJl/A1i6VFhZnn3GogzuvyF9jG7r+cTLHm1qOKplbvJbtXK1BgPy3tEx9DdcXd0VZKRZox3P5+eLvxHBYIzh0xYjkjCpDr4GlisKtFiZZIzAz0RijKCROikryHF7BTyfVKq5rSd9WPAcG484T+lsvg3yReQTTdTfBe+AY9gYR2BCcXOMnucsT1I9Sa0oTUnBS4PY2oQ0gzeG8im2vayiBX9ZkLbkxoqo8sN6D9beudPCZpp/2tQlw1wn+bPrrmOq1jW9PfNmKESvFFqEvwl25PTkCm2mjk/cD9NRgGGR0jT7+3pfSqGiOZzXAe1wGZCIeNRsqI2b/cEaSs1VpW4GYw0oT2/pcokj003LQjZZ9evAQHIM37+4p1U2gO/fjrNmKBiGNpT3veLzL9
You can’t perform that action at this time.