Skip to content

Instantly share code, notes, and snippets.

View hightemp's full-sized avatar
🎯
Focusing

Anton Panov hightemp

🎯
Focusing
View GitHub Profile
@hightemp
hightemp / 12021015.md
Created August 8, 2020 12:48 — forked from Chunlin-Li/12021015.md
node / javascript performance : Set vs Object and Map vs Object

Set vs Object

node version : v4.1.2
platform: Intel I7, 16G DDR3, Ubuntu x64

var theSet = new Set();
start = process.hrtime();
/***********************************/
for(let i = 0 ; i < N; i++ ) {
@hightemp
hightemp / promt.sh
Last active December 16, 2020 18:16
promt.sh
ColorReset='\e[0m'
# Foreground Colors
Black='\e[0;30m' # Black
Red='\e[0;31m' # Red
Green='\e[0;32m' # Green
Yellow='\e[0;33m' # Yellow
Blue='\e[0;34m' # Blue
Purple='\e[0;35m' # Purple
Cyan='\e[0;36m' # Cyan
@hightemp
hightemp / tools_install.sh
Last active July 25, 2020 16:09
tools_install.sh
#!/bin/bash
sudo su -
echo "install micro editor"
cd /usr/local/bin
curl https://getmic.ro | bash
cd -1
@hightemp
hightemp / docker_compose_install.sh
Last active July 25, 2020 15:34
docker_install.sh
#!/bin/bash
sudo curl -L "https://github.com/docker/compose/releases/download/1.26.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
docker-compose --version
@hightemp
hightemp / vagrant-kvm.md
Created July 21, 2020 18:30 — forked from yuanying/vagrant-kvm.md
How to use vagrant-kvm

Install Vagrant

sudo su
apt-get update && apt-get install -y libvirt-dev ruby-all-dev apparmor-utils
curl -O -L https://dl.bintray.com/mitchellh/vagrant/vagrant_1.6.5_x86_64.deb
dpkg -i vagrant_1.6.5_x86_64.deb 
aa-complain /usr/lib/libvirt/virt-aa-helper # workaround
exit

Install vagrant-kvm as user

@hightemp
hightemp / parse_hash.js
Created June 30, 2020 10:02 — forked from danmartens/parse_hash.js
Parses location.hash into an Object
window.parseHash = function() {
var parsed = {};
var pairs = window.location.hash.replace('#', '').split('&');
pairs.forEach(function(pair) {
parsed[pair.split('=')[0]] = (parseInt(pair.split('=')[1], 10) || pair.split('=')[1]);
});
return parsed;
};
@hightemp
hightemp / component.vue
Last active June 30, 2020 07:54
nuxt socket.io
<template>
<div></div>
</template>
<script>
import Vue from 'vue';
export default {
props: [
],
@hightemp
hightemp / doxygen_on_centos_6.7
Created June 23, 2020 06:09 — forked from slog2/doxygen_on_centos_6.7
how to use Doxygen on CentOS 6.7
# Install
yum -y install doxygen
yum -y install graphviz
yum -y install texlive texlive-utils
# Make default config for doxygen
cd {c_source_dir}
doxygen -g my.doxy
@hightemp
hightemp / js_func_regexp_add.txt
Created June 22, 2020 08:13
Добавление комментария NOTE перед функцией в javascript
(async\s+)?(\w+)(\s*\(.*?\)\s*)(\s*\/\/.*?)?
\{
// NOTE: $2
$1$2$3$4
{
@hightemp
hightemp / git.md
Created May 25, 2020 09:58 — forked from dustinmartin/gist:2966397
Git Command Cheatsheet

Setup

git clone clone the repository specified by ; this is similar to "checkout" in some other version control systems such as Subversion and CVS

Add colors to your ~/.gitconfig file:

[color]