This file contains 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
our $publish_whatever = '/usr/local/bin/publish_to_whatever'; | |
our $publishedhook = { | |
}; | |
{ | |
my @all_dists = qw(openSUSE_Tumbleweed SLE12-SP3); | |
foreach my $repo (qw(some:project some:other:project)) { | |
foreach my $dist (@all_dists) { | |
$publishedhook->{$repo.'/'.$dist} = $publish_whatever; |
This file contains 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
Event::CommentForProject | |
Event::Subscription -> Event::CommentForProject | |
-> User/Group | |
Event.all each do | event | | |
Event::CommentForProject > Event::Subscription > *User* > do something | |
end | |
This file contains 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
2017-09-05 10:03:41 <1> 0242a1142d89(563) [zypper] main.cc(main):74 ===== Hi, me zypper 1.13.28 | |
2017-09-05 10:03:41 <1> 0242a1142d89(563) [zypper] main.cc(main):75 ===== 'zypper' 'ref' '-f' ===== | |
2017-09-05 10:03:41 <1> 0242a1142d89(563) [zconfig] ZConfig.cc(_autodetectSystemArchitecture):73 Uname architecture is 'x86_64' | |
2017-09-05 10:03:41 <1> 0242a1142d89(563) [zconfig] ZConfig.cc(_autodetectTextLocale):209 Default text locale is 'en' | |
2017-09-05 10:03:41 <1> 0242a1142d89(563) [zconfig] ZConfig.cc(Impl):341 libzypp: 16.13.0 | |
2017-09-05 10:03:41 <1> 0242a1142d89(563) [zypp] IniParser.cc(parse):84 Start parsing /etc/zypp/zypp.conf[g___] | |
2017-09-05 10:03:41 <1> 0242a1142d89(563) [zypp] IniParser.cc(parse):138 Done parsing /etc/zypp/zypp.conf[_eF_] | |
2017-09-05 10:03:41 <1> 0242a1142d89(563) [Progress++] ProgressData.cc(report):88 {#1|/etc/zypp/zypp.conf}END | |
2017-09-05 10:03:41 <1> 0242a1142d89(563) [zconfig] ZConfig.cc(Impl):605 ZConfig singleton created. | |
2017-09-05 10:03:41 <1> 0242a1142d89(563) [zconfig] ZConfi |
This file contains 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
2017-09-05 09:47:35 <1> 0242a1142d89(41) [zypper] main.cc(main):74 ===== Hi, me zypper 1.13.28 | |
2017-09-05 09:47:35 <1> 0242a1142d89(41) [zypper] main.cc(main):75 ===== 'zypper' '-n' 'install' '--no-recommends' '--replacefiles' 'obs-server' 'obs-signd' 'obs-service-download_src_package' 'obs-service-download_files' 'obs-service-download_url' 'obs-service-format_spec_file' 'obs-service-kiwi_import' 'perl-Devel-Cover' 'osc' ===== | |
2017-09-05 09:47:35 <1> 0242a1142d89(41) [zconfig] ZConfig.cc(_autodetectSystemArchitecture):73 Uname architecture is 'x86_64' | |
2017-09-05 09:47:35 <1> 0242a1142d89(41) [zconfig] ZConfig.cc(_autodetectTextLocale):209 Default text locale is 'en' | |
2017-09-05 09:47:35 <1> 0242a1142d89(41) [zconfig] ZConfig.cc(Impl):341 libzypp: 16.13.0 | |
2017-09-05 09:47:35 <1> 0242a1142d89(41) [zypp] IniParser.cc(parse):84 Start parsing /etc/zypp/zypp.conf[g___] | |
2017-09-05 09:47:35 <1> 0242a1142d89(41) [zypp] IniParser.cc(parse):138 Done parsing /etc/zypp/zypp.conf[_eF_] | |
2017-09-05 09:47:35 <1> 0242a1142d89(4 |
This file contains 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
use Net::Domain; | |
use Socket; | |
my $frontend="frontend"; | |
# If defined, restrict access to the backend servers (bs_repserver, bs_srcserver, bs_service) | |
our $ipaccess = { | |
'127\..*' => 'rw', # only the localhost can write to the backend | |
"^$ip" => 'rw', # Permit IP of FQDN | |
'.*' => 'worker', # build results can be delivered from any client in the network |
- Approach A: Remove
Events
table, every time something happens schedule a mulitpurpose job. - Approach B: Remove
Events
table, every time something happens schedule multiple single purpose jobs.
. | Both solutions | Approach A | Approach B |
---|---|---|---|
Pro | No | No duplication of event data. | Makes the events table redundant - we can easily get rid of the table and use the Event classes as POROs |
Pro | Failures and retries can be handled by delayed job. | . | No need to check when events can be deleted |
Pro | Failed jobs can be re-run manually | . | No hacking of delayed job gem required |
Pro | Individual queues would not be necessary | . | . |
. | . | . | . |
This file contains 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
<?xml version="1.0" encoding="utf-8" ?> | |
<!DOCTYPE pam_mount SYSTEM "pam_mount.conf.xml.dtd"> | |
<!-- | |
See pam_mount.conf(5) for a description. | |
--> | |
<pam_mount> | |
<!-- debug should come before everything else, | |
since this file is still processed in a single pass |
This file contains 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
umount /home | |
cryptsetup luksFormat /dev/sdb6 | |
# choose the same password as for your login on this machine | |
cryptsetup luksOpen /dev/sdb6 home_crypto | |
mkfs.ext4 /dev/mapper/home_crypto | |
mount /dev/mapper/home_crypto /home | |
mv /home_new /home | |
# login again and come back to IRC :-) |
This file contains 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
RSpec.feature "Blah", :type => :feature do | |
context "blubb" do | |
describe "blabber" do | |
it 'does something' do | |
... | |
end | |
end | |
end | |