Skip to content

Instantly share code, notes, and snippets.

View nikitasius's full-sized avatar
💭
🍆

Nikita S. nikitasius

💭
🍆
  • toxId: 4339E5C156D4858940E20F82BE6625BC69B4167EAE1E9924EF79AA474E2A454BE4323FE37C61
  • public static void main (String[] args){}
View GitHub Profile
@nikitasius
nikitasius / IntelliJ IDEA & GIT (ssh)
Created February 22, 2018 19:53
8:43 PM Push failed: your_reponame_is_here: failed with error: Could not read from remote repository.
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
@nikitasius
nikitasius / postgres_queries_and_commands.sql
Created November 26, 2017 19:00 — forked from rgreenjr/postgres_queries_and_commands.sql
Useful PostgreSQL Queries and Commands
-- 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%'
#======
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
#!/bin/bash
xfce4-terminal -e "ssh -i /path/to/ssh-key login@servername -p22"
exit 0
@nikitasius
nikitasius / OVH - VPS SSD 1 (PC)
Created March 11, 2017 18:19
this from PublicCloud
=========================================================================================================
# 7z b
7-Zip [64] 9.20 Copyright (c) 1999-2010 Igor Pavlov 2010-11-18
p7zip Version 9.20 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on,1 CPU)
RAM size: 1962 MB, # CPU hardware threads: 1
RAM usage: 419 MB, # Benchmark threads: 1
Dict Compressing | Decompressing
root@minisrv ~ # echo "ByeBye sweet server :'-(".`uptime`|/usr/games/cowsay
_________________________________________
/ ByeBye sweet server :'-(. 21:36:17 up \
| 375 days, 13:33, 3 users, load average: |
\ 0.92, 0.98, 1.05 /
-----------------------------------------
\ ^__^
\ (oo)\_______
(__)\ )\/\
||----w |
root@minisrv ~ # uptime|/usr/games/cowsay
______________________________________
/ 09:09:45 up 371 days, 1:06, 1 user, \
\ load average: 0.67, 1.07, 1.18 /
--------------------------------------
\ ^__^
\ (oo)\_______
(__)\ )\/\
||----w |
|| ||
127.0.0.1 localhost
::1 localhost
127.0.0.1 localhost.tld
#======
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
./phpBB3/install/install_convert.php:151: $config = new \phpbb\config\db($db, new \phpbb\cache\driver\null, CONFIG_TABLE);
./phpBB3/install/install_convert.php:392: $config = new \phpbb\config\db($db, new \phpbb\cache\driver\null, CONFIG_TABLE);
./phpBB3/install/install_convert.php:636: $config = new \phpbb\config\db($db, new \phpbb\cache\driver\null, CONFIG_TABLE);
./phpBB3/install/install_install.php:1490: $config = new \phpbb\config\db($db, new \phpbb\cache\driver\null, CONFIG_TABLE);
./phpBB3/install/install_install.php:1906: $config = new \phpbb\config\db($db, new \phpbb\cache\driver\null, CONFIG_TABLE);
./phpBB3/install/install_install.php:1980: $config = new \phpbb\config\db($db, new \phpbb\cache\driver\null, CONFIG_TABLE);