Skip to content

Instantly share code, notes, and snippets.

View jecs's full-sized avatar

José E. Cruz Serrallés jecs

  • New York University, Grossman School of Medicine
  • New York, NY
View GitHub Profile
@genkuroki
genkuroki / Use Computer Modern Unicode fonts in Plots.jl.ipynb
Last active April 11, 2024 19:16
Use Computer Modern Unicode fonts in Plots.jl
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@gavinb
gavinb / nvcc_warnings.md
Last active August 1, 2025 13:39
How to disable specific warnings with nvcc

We were seeing the following unexpected warnings in our builds:

C:/BuildAgent/work/19dd4d6ddfbe72aa/SecretProject/vcpkg_installed/x64-windows/include\fmt/format.h(771): warning : base class dllexport/dllimport specification differs from that of the derived class
C:/BuildAgent/work/19dd4d6ddfbe72aa/SecretProject/vcpkg_installed/x64-windows/include\fmt/format.h(3268): warning : base class dllexport/dllimport specification differs from that of the derived class

We use spdlog and fmt all over the place and weren't seeing these warnings elsewhere. Strangely there were not the usual error/warning codes that the compiler emits.
Then I noticed why - these diagnostics were preceded by the module name:

SomeFilter.cu
@ppoffice
ppoffice / xstartup
Last active March 5, 2026 19:10
VNC xstartup for Ubuntu Desktop (Gnome)
#!/bin/sh
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
vncconfig -iconic &
export DESKTOP_SESSION=/usr/share/xsessions/ubuntu.desktop
export XDG_CURRENT_DESKTOP=ubuntu:GNOME
export GNOME_SHELL_SESSION_MODE=ubuntu
export XDG_DATA_DIRS=/usr/share/ubuntu:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop
dbus-launch --exit-with-session /usr/bin/gnome-session --systemd --session=ubuntu
@gene1wood
gene1wood / how-to-disable-google-search-ai-overview-in-firefox.md
Last active March 19, 2026 17:45
How to disable Google Search AI Overview in Firefox
  • In Firefox, open a tab to about:config
  • Enter browser.urlbar.update2.engineAliasRefresh and click the + sign on the right
    • This will now show the value for the Boolean as true which is correct
    • Be setting this to true you enable the option to add a custom search engine to Firefox
  • Go to Settings or navigate to about:preferences#search
  • Under Search Shortcuts click Add
    • Search enging name : Google without AI
    • Engine URL : https://www.google.com/search?client=firefox-b-1-d&channel=entpr&udm=14&q=%s
    • Alias (if there is an alias field present) : gnai or whatever alias you'd like here. This is not required
  • Click Add Engine