This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Disable ctrl-alt-backpace (restart X11) server. | |
# Put into /etc/X11/xorg.conf.d | |
Section "ServerFlags" | |
Option "DontZap" "yes" | |
EndSection |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
unbind C-b | |
set -g prefix F12 | |
# Use vim-like keys for moving around | |
bind h select-pane -L | |
bind j select-pane -D | |
bind k select-pane -U | |
bind l select-pane -R | |
bind C-h select-pane -t :- | |
bind C-l select-pane -t :+ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*background: black | |
*foreground: white | |
xterm*background: #3c3c3c | |
urxvt*depth: 32 | |
urxvt*background: rgba:1111/1111/1111/ffff | |
URxvt.scrollBar: false | |
URxvt.tabbed.tabbar-fg: 4 | |
URxvt.tabbed.tabbar-bg: -1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[<<EOS1, <<EOS2, <<EOS3] | |
This is | |
an array | |
EOS1 | |
of very very | |
very very | |
EOS2 | |
long strings | |
EOS3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# shift indented text to the left as much as possible | |
def align_indented(text) | |
shift_left = text.lines.map { |l| l[/^\s*/].size }.min | |
text.lines.map { |l| l[shift_left..-1] }.join | |
end | |
puts align_indented(<<TEXT) | |
this is some | |
indented text | |
we would like to |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%w[one two three].each do |method| | |
define_method method do |*args| | |
"My uebercool method #{method}" | |
end | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git filter-branch -f --env-filter ' | |
export GIT_AUTHOR_NAME="$ME"; | |
export GIT_COMMITTER_NAME="$ME"; | |
export GIT_AUTHOR_EMAIL="$MY_MAIL"; | |
export GIT_COMMITTER_EMAIL="$MY_MAIL"; | |
' HEAD | |
git push origin --force |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Hash { | |
public static void main(String[] args) { | |
System.out.println(Integer.toString("Hello World!".hashCode())); | |
} | |
} | |
// $ java Hash | |
// $ -969099747 | |
// $ java Hash | |
// $ -969099747 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ :invalid_system => 20, | |
:invalid_values => 21, | |
:manifest_error => 22, | |
:no_answer_file => 23, | |
:unknown_module => 24, | |
:defaults_error => 25 } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/app/models/katello/concerns/organization_extensions.rb b/app/models/katello/concerns/organization_extensions.rb | |
index 39a6480..294097d 100644 | |
--- a/app/models/katello/concerns/organization_extensions.rb | |
+++ b/app/models/katello/concerns/organization_extensions.rb | |
@@ -19,7 +19,11 @@ module Katello | |
ALLOWED_DEFAULT_INFO_TYPES = %w(system distributor) | |
- include ForemanTasks::Concerns::ActionSubject | |
+ # We need this to be able to scratch build in koji |