Skip to content

Instantly share code, notes, and snippets.

🚀
To the moon!

Bohdan V. g3d

🚀
To the moon!
Block or report user

Report or block g3d

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:f929821e2697050ab716dd85dad5c8a0
[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 Aug 24, 2018
weechat on macOS 10.14 - Homebrew build logs
View # weechat - 2018-08-24_13-59-47.txt
Homebrew build logs for weechat on macOS 10.14
Build date: 2018-08-24 13:59:47
View 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:

View .tmux.conf
# 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 Feb 27, 2019 — forked from rgreenjr/postgres_queries_and_commands.sql
Useful PostgreSQL Queries and Commands
View postgres_queries_and_commands.sql
-- 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%'
View cpanel-subdomains-creator.php
<?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
View Getting started
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/
View gist:927874a043e10470e52c
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 Aug 29, 2015
sublime config
View .jshintrc
{
/*
* ENVIRONMENTS
* =================
*/
// Define globals exposed by modern browsers.
"browser": true,
// Define globals exposed by jQuery.
@g3d
g3d / category.rb
Created Jun 7, 2015
lotus uuid example
View category.rb
class Category
include Lotus::Entity
# id is implicit
attributes :name, :slug, :created_at, :updated_at
end
You can’t perform that action at this time.