Skip to content

Instantly share code, notes, and snippets.

@beglov
beglov / server.go
Created February 20, 2021 14:47
Golang TCP server receiving/sending binary data
package main
import (
"bytes"
"encoding/binary"
"fmt"
"io"
"log"
"net"
"time"
@beglov
beglov / client.go
Last active March 25, 2025 06:27
Golang TCP client receiving/sending binary data
package main
import (
"bytes"
"encoding/binary"
"fmt"
"io"
"log"
"net"
)
[deploy@Bagira 20220418191516]$ bundle
Warning: the running version of Bundler (2.1.4) is older than the version that created the lockfile (2.2.4). We suggest you to upgrade to the version that created the lockfile by running `gem install bundler:2.2.4`.
The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x86-mswin32, x64-mingw32, java. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32 x86-mswin32 x64-mingw32 java`.
Fetching gem metadata from https://rails-assets.org/....
Fetching gem metadata from https://rubygems.org/./usr/lib/ruby/gems/2.7.0/gems/bundler-2.1.4/lib/bundler/shared_helpers.rb:103: [BUG] Segmentation fault at 0x0000000000000210
ruby 2.7.3p183 (2021-04-05 revision 647ee6f091) [e2k-linux]
-- Control frame information -----------------------------------------------
c:0013 p:---- s:0063 e:000062 CFUNC :read
c:0012 p:---- s:0060 e:000059 CFUNC
@beglov
beglov / rubocop.yml
Last active December 13, 2022 08:34
RuboCop configuration file
AllCops:
NewCops: enable
Layout/LineLength:
Enabled: false
Style/Documentation:
Enabled: false
Style/FrozenStringLiteralComment:
Enabled: false