Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am sirwolfgang on github.
  • I am sirwolfgang (https://keybase.io/sirwolfgang) on keybase.
  • I have a public key whose fingerprint is 929A 1F8E 04EF 138C 8D9C 58CB AD77 967E 8271 4C2A

To claim this, I am signing this object:

# /etc/postfix/main.cf
myhostname = mail.domain.com
mydomain = domain.com
myorigin = $mydomain
inet_interfaces = all
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
mynetworks = 192.168.0.0/24, 127.0.0.0/8
relay_domains =
virtual_alias_domains = domain.com
virtual_alias_maps = hash:/etc/postfix/virtual
@sirwolfgang
sirwolfgang / httpd.sh
Created December 12, 2014 15:44
Ruby Web Server
ruby -run -e httpd . -p 5000
git config --global url."https://".insteadOf git://
{{#if user}}
<%= link_to '{{ user.name }}', "{{ user.profile_path }}" %>
{{else}}
<%= link_to 'Login', new_session_path %> | <%= link_to 'Sign Up', new_user_path %>
{{/if}}
SELECT pg_terminate_backend(pid) FROM pg_stat_activity WHERE application_name LIKE 'sidekiq%';
@sirwolfgang
sirwolfgang / private.xml
Created February 26, 2015 16:22
Karabiner OSX
<?xml version="1.0"?>
<root>
<windownamedef>
<name>CODIO_IDE</name>
<regex>Codio IDE</regex>
</windownamedef>
<item>
<name>Command_L to Control_L</name>
@sirwolfgang
sirwolfgang / Gemfile
Last active August 29, 2015 14:23
API with Rails
gem 'jbuilder'
gem 'rack-cors'
@sirwolfgang
sirwolfgang / Gemfile
Last active August 29, 2015 14:23
Rails Default Gems
source 'https://rubygems.org'
gem 'rails', '4.2.0'
gem 'puma'
# databases
gem 'pg'
# javascript Backend
gem 'jbuilder'
@sirwolfgang
sirwolfgang / cstr.c
Last active October 8, 2015 09:18
Char* String To Lower Case
char* strlow(char* _str)
{
for(unsigned int c = 0; _str[c]; _str[c++] = tolower(_str[c]));
return _str;
}