Skip to content

Instantly share code, notes, and snippets.

View idvoretskyi's full-sized avatar
💭
🇺🇦

Ihor Dvoretskyi idvoretskyi

💭
🇺🇦
View GitHub Profile

Keybase proof

I hereby claim:

  • I am idvoretskyi on github.
  • I am ihordvoretskyi (https://keybase.io/ihordvoretskyi) on keybase.
  • I have a public key ASCdVOggYIpCxzVD4dQjUD6BGrhUQAHe6ZJ1LqKcVfT5ago

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am idvoretskyi on github.
  • I am idvoretskyi (https://keybase.io/idvoretskyi) on keybase.
  • I have a public key ASBTg2rJONjk4YdciOQJxnJXi7CznVVUK6nTZQ7WKggNhgo

To claim this, I am signing this object:

@idvoretskyi
idvoretskyi / .bashrc
Created January 31, 2019 13:01
Powerline for bash
# Powerline setup
powerline-daemon -q
POWERLINE_BASH_CONTINUATION=1
POWERLINE_BASH_SELECT=1
. /usr/share/powerline/bindings/bash/powerline.sh
@idvoretskyi
idvoretskyi / .tmux.conf
Last active April 1, 2019 10:35
Powerline setup for tmux
set -g default-terminal "xterm-256color"
run-shell "powerline-daemon -q"
source "/usr/share/powerline/bindings/tmux/powerline.conf"
# Let's go to the temporary directory
cd /tmp
# Google Chrome browser installation
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb && \
sudo dpkg -i google-chrome-stable_current_amd64.deb && \
sudo apt install -f -y
# Chrome remote desktop installation
wget https://dl.google.com/linux/direct/chrome-remote-desktop_current_amd64.deb && \
@idvoretskyi
idvoretskyi / realvnc_deb.sh
Last active November 11, 2021 03:13
RealVNC Scripting deployment and start-up on Ubuntu/Debian
# Download and unpack the latest binary on a 64-bit Debian-compatible system:
curl -L -o VNC https://www.realvnc.com/connect/download/binary/latest/debian/64-bit/
# Install VNC Server on a Debian-compatible system (assuming download file named as above):
sudo dpkg -i VNC
# Apply your license key, available from the Deployment page of your RealVNC account:
sudo vnclicense -add XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
# Optionally enable cloud connectivity for VNC Server in Service Mode (token available with key):
@idvoretskyi
idvoretskyi / chrome-remote-desktop.txt
Created April 12, 2018 10:13
Setting up Chrome Remote Desktop on Ubuntu
# Originally posted by `scode` at http://scode.github.io/docs/chrome_remote_desktop_ubuntu; no longer available.
Setting up Chrome Remote Desktop on Ubuntu
This was written in September of 2015. Not sure whether it still applies.
The upstream documentation is a little bit scattered, not always entirely complete, and the Ubuntu package provided needs some poking to work. Hence this summary.
The two main sources of information I found are:
An old product forum post: https://productforums.google.com/forum/#!topic/chrome/8PMxG69VJ6o
@idvoretskyi
idvoretskyi / chromeos_hterm_reset.txt
Last active February 25, 2019 15:41
hterm: How to reset host authentication key for known_hosts on ChromeOS?
Load up your secure shell.
Attempt to connect to your remote host (this step may not be necessary, but it doesn't hurt)
Press <ctrl>+<shift>+j to bring up the javascript console.
Type:
term_.command.removeAllKnownHosts()
Reconnect to host
@idvoretskyi
idvoretskyi / dropbox_install.sh
Last active September 20, 2018 21:35
Install Dropbox headless
# Install Dropbox daemon
cd ~ && wget -O - "https://www.dropbox.com/download?plat=lnx.x86_64" | tar xzf - && ~/.dropbox-dist/dropboxd
# Install `dropbox` script to control Dropbox
sudo wget https://www.dropbox.com/download?dl=packages/dropbox.py -O /usr/local/bin/dropbox && sudo chmod +x /usr/local/bin/dropbox
@idvoretskyi
idvoretskyi / debian-install-zram.sh
Created February 2, 2017 21:34
Install zRAM on Debian(8)
#!/bin/bash
#
not_root() {
echo "ERROR: You have to be root to execute this script"
exit 1
}
zram_exists() {
echo "ERROR: /etc/init.d/zram already exists"