This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Boost, Flatbuffers, MySQL, ZooKeeper | |
# https://cliutils.gitlab.io/modern-cmake/ | |
# https://pleiades.io/help/clion/installation-guide.html | |
# https://cmake.org/cmake/help/latest/module/FindBoost.html | |
# [Boost] | |
# set(Boost_USE_STATIC_RUNTIME ON) | |
set(Boost_USE_STATIC_LIBS ON) # only find static libs | |
set(Boost_USE_MULTITHREADED ON) | |
set(Boost_USE_DEBUG_LIBS OFF) # ignore debug libs and |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
brew update # Fetch latest version of homebrew and formula. | |
brew tap caskroom/cask # Tap the Caskroom/Cask repository from Github using HTTPS. | |
brew search dropbox # Searches all known Casks for a partial or exact match. | |
brew cask info dropbox # Displays information about the given Cask | |
brew cask install dropbox # Install the given cask. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.Net.Sockets; | |
using System.Text; | |
using System.Threading; | |
using UnityEngine; | |
public class TCPTestClient : MonoBehaviour { | |
#region private members |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Setup On Ubuntu 18.04 | |
# vagrant init ubuntu/bionic64 | |
# vagrant up | |
# curl -L <Gist Raw File URL> | bash | |
cd ~ | |
sudo apt update && sudo apt upgrade | |
lsb_release -a |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static u32 guid_32bit() { | |
static u32 s_guid_step_counter = 0; | |
struct timeval curr_time; | |
gettimeofday(&curr_time, nullptr); | |
//printf("%ld:%ld\n", curr_time.tv_sec, curr_time.tv_usec); | |
u32 secs = curr_time.tv_sec % 1000000; | |
u32 msecs = curr_time.tv_usec / 1000; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set number | |
set relativenumber | |
inoremap ;; <Esc> | |
syntax on | |
set ruler | |
set ignorecase | |
set showmatch | |
set hlsearch |
NewerOlder