Skip to content

Instantly share code, notes, and snippets.

View kohsuke's full-sized avatar
🏠
WFH

Kohsuke Kawaguchi kohsuke

🏠
WFH
View GitHub Profile
[91195.388948] br0: port 1(tap0) entering forwarding state
[91280.260024] BUG: soft lockup - CPU#0 stuck for 22s! [zvol/16:309]
[91280.261103] Modules linked in: xt_conntrack tun usb_storage netconsole configfs nfsd iptable_filter ipt_MASQUERADE xt_comment xt_tcpudp iptable_nat nf_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_conntrack ip_tables bridge stp llc ip6table_filter ip6_tables x_tables nls_cp437 vfat fat zfs(P) zunicode(P) zavl(P) zcommon(P) znvpair(P) spl zlib_deflate arc4 b43 mac80211 radeon cfg80211 i2c_algo_bit ttm snd_hda_codec_hdmi drm_kms_helper drm snd_hda_codec_realtek ssb btusb bluetooth rfkill mmc_core pcmcia pcspkr i2c_i801 snd_hda_intel snd_hda_codec snd_hwdep snd_pcm i2c_core snd_page_alloc snd_timer applesmc snd ioatdma pcmcia_core input_polldev soundcore shpchp pci_hotplug evdev e1000e iTCO_wdt iTCO_vendor_support i7core_edac edac_core processor button dca nfs nfs_acl auth_rpcgss fscache lockd sunrpc kvm_intel kvm ext4 crc16 jbd2 mbcache sr_mod sd_mod cdrom uhci_hcd ahci libahci libata fir
public class ErrorCase {
public static class Foo<T> {
public void foo(T t) {}
}
public static class Bar<T> extends Foo<List<T>> {
public void foo(List<String> o) {}
}
public static void main(String[] args) {
@kohsuke
kohsuke / details
Created May 11, 2013 21:01
Maven build classloader statistics
Started by user anonymous
Building remotely on fast in workspace /tmp/fast/workspace/fast
Updating https://svn.jenkins-ci.org/trunk/jenkins/test-projects/model-maven-project at revision '2013-05-11T13:59:03.523 -0700'
At revision 40857
no change for https://svn.jenkins-ci.org/trunk/jenkins/test-projects/model-maven-project since the previous build
Parsing POMs
[fast] $ java -cp /tmp/fast/maven3-agent.jar:/usr/maven3/boot/plexus-classworlds-2.4.jar org.jvnet.hudson.maven3.agent.Maven3Main /usr/maven3 /home/kohsuke/ws/jenkins/remoting/target/remoting-2.24-SNAPSHOT.jar /tmp/fast/maven3-interceptor.jar 39866
<===[JENKINS REMOTING CAPACITY]===>\00\00\00channel started
FINER: fetch3(hudson.maven.ProcessCache$GetSystemProperties)
FINER: prefetch hudson.maven.ProcessCache$GetSystemProperties -> hudson.maven.ProcessCache
├── html
│   ├── contactadministrator.vm
│   ├── filtersubscription.vm
│   ├── includes
│   │   ├── emailconstants.vm
│   │   ├── fields
│   │   │   ├── affectsversions.vm
│   │   │   ├── assignee.vm
│   │   │   ├── attachments.vm
│   │   │   ├── changelog.vm
% bundle exec rake cucumber:aws
/usr/bin/ruby1.8 -S bundle exec cucumber -p aws
Using the aws profile...
/home/kohsuke/ws/cloudbees/blimpy/lib/blimpy/version.rb:2: warning: already initialized constant VERSION
....F
Leaving the tempdir in tact: /tmp/blimpy_test_29804_29807_bobog
/home/kohsuke/ws/cloudbees/blimpy/lib/blimpy/version.rb:2: warning: already initialized constant VERSION
..F-
Leaving the tempdir in tact: /tmp/blimpy_test_29804_29807_xqjux
/home/kohsuke/ws/cloudbees/blimpy/lib/blimpy/version.rb:2: warning: already initialized constant VERSION
diff --git a/webapp/scripts/header/header.js b/webapp/scripts/header/header.js
index 24f8da8..5146545 100644
--- a/webapp/scripts/header/header.js
+++ b/webapp/scripts/header/header.js
@@ -35,4 +35,5 @@ if(window.location.pathname.indexOf('login')== -1){
}
requirejs(['commonNav/apps', 'commonNav/dbs', 'commonNav/builds', 'commonNav/repositories', 'commonNav/services','commonNav/help','status','jquery','jquery-ui','jquery-qtip'],function(){
+ $.noConflict();
});
@kohsuke
kohsuke / gist:3997848
Created November 2, 2012 00:30
Evaluate function
def evaluate(c) {
switch (c.model.name) {
case 'Or':
for (c2 in c.clauses) {
if (evaluate(c2)) {
return true
}
}
return false
case 'And':
<project>
<build>
<plugins>
<plugin>
<groupId>org.jenkins-ci.tools</groupId>
<artifactId>maven-hpi-plugin</artifactId>
<version>1.91-SNAPSHOT</version>
</plugin>
kohsuke@lettuce:~$ sudo smartctl -a /dev/sda
smartctl version 5.38 [i686-pc-linux-gnu] Copyright (C) 2002-8 Bruce Allen
Home page is http://smartmontools.sourceforge.net/
Device: 3ware Logical Disk 0 Version: 1.2
please try adding '-d 3ware,N'
you may also need to change device to /dev/twaN or /dev/tweN
kohsuke@cabbage:~$ cat /proc/partitions
major minor #blocks name
8 0 878905344 sda
8 1 194560 sda1
8 2 19530752 sda2
8 3 859177984 sda3
251 0 3903488 dm-0
251 1 104857600 dm-1