Skip to content

Instantly share code, notes, and snippets.

View g3d's full-sized avatar
🚀
To the moon!

Bohdan V. g3d

🚀
To the moon!
View GitHub Profile
[mysqld]
innodb_buffer_pool_size = 4G
innodb_log_buffer_size = 256M
innodb_log_file_size = 1G
innodb_write_io_threads = 16
innodb_flush_log_at_trx_commit = 0
#net_buffer_length=10000000;
#max_allowed_packet=10000000000;
#foreign_key_checks = 0;
default_authentication_plugin=mysql_native_password
@g3d
g3d / # weechat - 2018-08-24_13-59-47.txt
Created August 24, 2018 10:59
weechat on macOS 10.14 - Homebrew build logs
Homebrew build logs for weechat on macOS 10.14
Build date: 2018-08-24 13:59:47
@g3d
g3d / keybase.md
Created March 23, 2018 06:40
keybase.md

Keybase proof

I hereby claim:

  • I am g3d on github.
  • I am g3d (https://keybase.io/g3d) on keybase.
  • I have a public key ASCmby32hPZ5BK5UFMfZLeKS3-yH2HW3ZeVi6HA2rPNejwo

To claim this, I am signing this object:

# an interesting key for a prefix
set-option -g prefix `
#set-option -g prefix C-a
unbind-key C-b
bind-key C-a last-window
bind-key ` last-window
bind-key a send-prefix
# we might need ` at some point, allow switching
@g3d
g3d / postgres_queries_and_commands.sql
Last active February 27, 2019 10:44 — forked from rgreenjr/postgres_queries_and_commands.sql
Useful PostgreSQL Queries and Commands
-- show running queries (pre 9.2)
SELECT procpid, age(query_start, clock_timestamp()), usename, current_query
FROM pg_stat_activity
WHERE current_query != '<IDLE>' AND current_query NOT ILIKE '%pg_stat_activity%'
ORDER BY query_start desc;
-- show running queries (9.2)
SELECT pid, age(query_start, clock_timestamp()), usename, query
FROM pg_stat_activity
WHERE query != '<IDLE>' AND query NOT ILIKE '%pg_stat_activity%'
<?php
###############################################################
# cPanel Subdomains Creator 1.1
###############################################################
# Visit http://www.zubrag.com/scripts/ for updates
###############################################################
#
# Can be used in 3 ways:
# 1. just open script in browser and fill the form
1. Receive your slack (register at https://teamvoy.slack.com) and gmail account
2. Register at https://hub.teamvoy.com and request errbit (http://errbit.teamvoy.com) account.
3. Check our code style guides:
- ruby: https://github.com/bbatsov/ruby-style-guide
- rails: https://github.com/bbatsov/rails-style-guide
- javascript: https://github.com/airbnb/javascript/tree/master/es5
4. Install automatic linters for js (jshint/jslint) and ruby (rubocop).
5. Don't forget to check this sites:
- http://chris.beams.io/posts/git-commit/
- http://best-ruby.com/
Codeschool:
https://www.codeschool.com/paths/javascript
https://www.codeschool.com/paths/html-css
https://www.codeschool.com/paths/ruby
Sites:
Frontender Magazine
Smashing Magazine
Ководство
@g3d
g3d / .jshintrc
Last active August 29, 2015 14:27
sublime config
{
/*
* ENVIRONMENTS
* =================
*/
// Define globals exposed by modern browsers.
"browser": true,
// Define globals exposed by jQuery.
@g3d
g3d / category.rb
Created June 7, 2015 17:27
lotus uuid example
class Category
include Lotus::Entity
# id is implicit
attributes :name, :slug, :created_at, :updated_at
end