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
@g3d
g3d / gist:2709563
Last active February 7, 2024 15:21 — forked from saetia/gist:1623487
Clean Install – OS X 10.11 El Capitan
<?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
[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 / 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%'
@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:

@g3d
g3d / netsed.rb
Created November 18, 2012 10:20
Netsed homebrew formula
require 'formula'
class Netsed <Formula
url 'http://silicone.homelinux.org/release/netsed/netsed-1.1.tar.gz'
homepage 'http://www.securiteam.com/tools/5IP022A35W.html'
version '1.1'
md5 'df64a6099370013621489c60fe97a324'
def install
system "make"
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/
# 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
1.9.1 :003 > exit
/home/bookstore/.rvm/scripts/irbrc.rb:32: [BUG] Segmentation fault
ruby 1.9.3p327 (2012-11-10 revision 37606) [x86_64-linux]
-- Control frame information -----------------------------------------------
c:0005 p:---- s:0014 b:0014 l:000013 d:000013 CFUNC :initialize
c:0004 p:---- s:0012 b:0012 l:000011 d:000011 CFUNC :open
c:0003 p:0140 s:0007 b:0007 l:0012a0 d:000006 BLOCK /home/bookstore/.rvm/scripts/irbrc.rb:32
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:0000 s:0002 b:0002 l:000c38 d:000c38 TOP