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
View problem_with_geth.md
@nikitasius
nikitasius / debian 9.md
Last active Mar 29, 2019
well well well debian 9
View debian 9.md

resolv.conf

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

rc.local

cat <<EOF >/etc/rc.local
View keybase.md

Keybase proof

I hereby claim:

  • I am nikitasius on github.
  • I am nikitasius (https://keybase.io/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
nikitasius / readme.md
Created Apr 8, 2018
roundcube file upload failed / roundcube attachments not working / roundcube upload problem / empty attachements / zero file uploads
View readme.md

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..

Solution

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
nikitasius / readme.md
Last active Apr 5, 2019
own DNS for NGINX (and whole system too) with DNSSEC from google DNS
View readme.md
  • install dnsmasq (2.78+, cause 2.72 is bugged with certain DNS, including cloudflare)
  • /etc/dnsmasq.conf:
port=53
listen-address=127.0.0.1
interface=lo
bind-interfaces
dnssec
dnssec-check-unsigned
trust-anchor=.,19036,8,2,49AAC11D7B6F6446702E54A1607371607A1A41855200FD2CE1CDDE32F24E8FB5
@nikitasius
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 - java.io.IOException: There was a problem while connecting to github.com:22
2018-02-22 20:47:04,701 [ 322666] INFO - #git4idea.commands.GitHandler - at com.trilead.ssh2.Connection.connect(Connection.java:817)
2018-02-22 20:47:04,701 [ 322666] INFO - #git4idea.commands.GitHandler - at com.trilead.ssh2.Connection.connect(Connection.java:686)
2018-02-22 20:47:04,701 [ 322666] INFO - #git4idea.commands.GitHandler - at com.trilead.ssh2.Connection.connect
View php-fpm-ssl-errors.md

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 https://curl.haxx.se/docs/caextract.html

https://curl.haxx.se/ca/cacert.pem 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
#======
0.0.0.0 statsfe2.update.microsoft.com.akadns.net
0.0.0.0 fe2.update.microsoft.com.akadns.net
0.0.0.0 s0.2mdn.net
0.0.0.0 survey.watson.microsoft.com
0.0.0.0 view.atdmt.com
0.0.0.0 watson.microsoft.com
0.0.0.0 watson.ppe.telemetry.microsoft.com
0.0.0.0 vortex.data.microsoft.com
0.0.0.0 vortex-win.data.microsoft.com
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.