Skip to content

Instantly share code, notes, and snippets.

View dkischenko's full-sized avatar
:octocat:

Dmytro Kishchenko dkischenko

:octocat:
  • SWEET.TV
  • Dnipro, Ukraine
View GitHub Profile
@dkischenko
dkischenko / README.md
Last active July 20, 2023 07:25
Install new MacOs env

Setup permissions for file chmod +x <filename>

Run

./install.sh

@dkischenko
dkischenko / README.md
Last active October 28, 2022 07:59
Install any version go in Linux

Setup permissions for file chmod +x <filename>

Run

./go-install.sh 1.19.2

@dkischenko
dkischenko / Heic to jpeg.txt
Created January 28, 2022 19:24
Heic to jpeg
#!/bin/zsh
for f in *.HEIC
do
echo "Working on file $f"
heif-convert $f $f.jpg
done
@dkischenko
dkischenko / homebrew-rvm.md
Created December 1, 2020 21:23 — forked from denji/homebrew-rvm.md
Homebrew + RVM > Awesome

The MBP is my development machine, so I needed all of my tools installed with the ability to update them with ease. In the past, I used MacPorts to take care of my MySQL, Memcached, and Ruby installions and it worked just fine. This time around however, I wanted something new and fun. Homebrew.

Homebrew is a new package manager for OS X. Unlike Fink or MacPorts, Homebrew integrates with the core operating system, reducing the number of extra libraries to install etc. Another neat feature is the ability to write software package recipes in Ruby, awesome.

Here are some raw installation instructions (clean system). I like to keep everything under user ownership to make life more enjoyable, say no to sudo.

You will need the latest version of xcode, you can get it here. After the installation is complete, you may continue.

sudo mkdir /usr/local
@dkischenko
dkischenko / curl-websocket.sh
Created December 19, 2017 21:18 — forked from htp/curl-websocket.sh
Test a WebSocket using curl.
curl --include \
--no-buffer \
--header "Connection: Upgrade" \
--header "Upgrade: websocket" \
--header "Host: example.com:80" \
--header "Origin: http://example.com:80" \
--header "Sec-WebSocket-Key: SGVsbG8sIHdvcmxkIQ==" \
--header "Sec-WebSocket-Version: 13" \
http://example.com:80/