Skip to content

Instantly share code, notes, and snippets.

View vedranmiletic's full-sized avatar

Vedran Miletić vedranmiletic

View GitHub Profile
@vedranmiletic
vedranmiletic / specify-modules.patch
Created September 29, 2015 13:42
Add -M option to test.py
diff --git a/test.py b/test.py
--- a/test.py
+++ b/test.py
@@ -1122,7 +1122,14 @@
example_names_original,
python_tests)
- for module in NS3_ENABLED_MODULES:
+ # User can specify which modules to test
+ if options.modules == "*":
@vedranmiletic
vedranmiletic / gist:d6647cd4dbb47a46f14e
Created July 6, 2015 11:43
Clang 3.6 callback.h warning fix
diff --git a/src/core/model/callback.h b/src/core/model/callback.h
--- a/src/core/model/callback.h
+++ b/src/core/model/callback.h
@@ -1252,10 +1252,12 @@
void DoAssign (Ptr<const CallbackImplBase> other) {
if (!DoCheckType (other))
{
+ const CallbackImplBase * otherRaw = PeekPointer (other);
Ptr<CallbackImpl<R,T1,T2,T3,T4,T5,T6,T7,T8,T9> > expected;
+ CallbackImpl<R,T1,T2,T3,T4,T5,T6,T7,T8,T9> * expectedRaw = PeekPointer (expected);
@vedranmiletic
vedranmiletic / gist:1ff0f120cf46421086c0
Created December 20, 2014 20:43
kernel oops on upgrading nvidia-driver and installing nvidia-cuda-toolkit
[ 2341.946239] BUG: unable to handle kernel paging request at ffffffffa16429b8
[ 2341.946386] IP: [<ffffffff81204790>] proc_get_inode+0xd0/0x130
[ 2341.946493] PGD 1816067 PUD 1817063 PMD b8d4a067 PTE 0
[ 2341.946720] Oops: 0000 [#1] SMP
[ 2341.946887] Modules linked in: cfg80211 rfkill nfsd auth_rpcgss oid_registry nfs_acl nfs lockd fscache sunrpc joydev hid_generic usbhid usb_storage hid kvm_amd kvm crc32_pclmul ghash_clmulni_intel snd_hda_codec_ca0110 aesni_intel aes_x86_64 lrw gf128mul glue_helper ablk_helper evdev cryptd snd_hda_codec_hdmi snd_hda_codec_generic fam15h_power acpi_cpufreq snd_hda_intel snd_hda_controller pcspkr k10temp snd_hda_codec snd_hwdep psmouse serio_raw edac_mce_amd edac_core sp5100_tco processor button snd_pcm drm nuvoton_cir snd_timer rc_core snd soundcore shpchp i2c_piix4 i2c_core thermal_sys fuse parport_pc ppdev lp parport autofs4 ext4 crc16 mbcache jbd2 sr_mod cdrom sg ata_generic sd_mod crc_t10dif crct10dif_generic ohci_pci crct10dif_pclmul crct10dif_common crc32c_intel xhci
@vedranmiletic
vedranmiletic / gist:0838afc9337564843439
Last active August 29, 2015 14:07
SphericalVector2D and SphericalVector3D
diff --git a/src/core/model/vector.cc b/src/core/model/vector.cc
--- a/src/core/model/vector.cc
+++ b/src/core/model/vector.cc
@@ -29,12 +29,19 @@
ATTRIBUTE_HELPER_CPP (Vector3D);
ATTRIBUTE_HELPER_CPP (Vector2D);
+ATTRIBUTE_HELPER_CPP (SphericalVector3D);
+ATTRIBUTE_HELPER_CPP (SphericalVector2D);
// compatibility for mobility code
@vedranmiletic
vedranmiletic / gist:5736544
Created June 8, 2013 20:53
git gui error on Remove Remote
unknown option "-label"
unknown option "-label"
while executing
"$fetch_m entrycget end -label"
(procedure "update_all_remotes_menu_entry" line 26)
invoked from within
"update_all_remotes_menu_entry"
(procedure "remove_remote" line 23)
invoked from within
"remove_remote bb"