Skip to content

Instantly share code, notes, and snippets.

@JosefJezek
JosefJezek / zenoss-fujitsu.md
Created December 18, 2013 08:59
Zenoss and Fujitsu PRIMERGY server with ServerView SNMP Agent
<FilesMatch "\.(jpg|jpeg|png|gif|pdf)$">
Header set X-Robots-Tag "noindex, nofollow"
</FilesMatch>
/*
apos RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
*/
RewriteCond %{REQUEST_URI} ^(.*)?/(wp-content/uploads/.*)$
@ssghost
ssghost / chatbot-arena-mle-elo-rating-bradley-terry-model-calculation-apr-9-2024.ipynb
Created April 19, 2024 21:03
Chatbot Arena: MLE Elo Rating (Bradley-Terry model) Calculation (Apr 9, 2024)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@nning
nning / README.md
Last active April 19, 2024 21:43
Install tailscale on Steam Deck without root

Install Tailscale on Steam Deck without root

Make sure you have a password set for deck, because the install script will need sudo to suid root the tailscaled binary.

  • Create folder tailscale in home directory of deck user mkdir -p ~/tailscale
  • Make install script executable chmod +x ~/tailscale/tailscale-install-user.sh
  • Run install script ./tailscale/tailscale-install-user.sh
@Sauerstoffdioxid
Sauerstoffdioxid / googleurlparams.md
Last active April 19, 2024 21:42
Google/Blogger Image URL Parameters

Google/Blogger Image URL Parameters

This is an effort to document what is known about Google's (Blogger's/Blogspot's) image URL parameters. Some of these options were taken from existing first or third party documentation (see the links at the end of this document), but the majority is based off my own investigations.

Where to use them?

  • On Blogger's image URL's: 2.bp.blogspot.com/-OF7u67HQE1M/VHc8S8qJTDI/AAAAAAAACxI/UD-11c63diQ/s1600/005.png
  • On just about any googleusercontent image URL: https://lh3.googleusercontent.com/Jvmz11cLrvNIHG_LWjVO9B-UV2IN4Cfk1pycbhWZl6IriMgCAGCOFuBRtoHaiZ6xeVGqCugZcCql=w176-h176-n-o

Replace the bolded parts with the parameters.

@andyyou
andyyou / gist:3052671
Created July 5, 2012 09:46
C# Controls abbreviation
btn Button chk CheckBox ckl CheckedListBox
cmb ComboBox dtp DateTimePicker lbl Label
llb LinkLabel lst ListBox lvw ListView
mtx MaskedTextBox cdr MonthCalendar icn NotifyIcon
nud NumeircUpDown pic PictureBox prg ProgressBar
rdo RadioButton rtx RichTextBox txt TextBox
tip ToolTip tvw TreeView wbs WebBrowser
容器
flp FlowLayoutPanel grp GroupBox pnl Panel
@astamicu
astamicu / Remove videos from Youtube Watch Later playlist.md
Last active April 19, 2024 21:40
Script to remove all videos from Youtube Watch Later playlist

UPDATED 22.11.2022

It's been two years since the last update, so here's the updated working script as per the comments below.

Thanks to BryanHaley for this.

setInterval(function () {
    video = document.getElementsByTagName('ytd-playlist-video-renderer')[0];

 video.querySelector('#primary button[aria-label="Action menu"]').click();
@terafin
terafin / UniFi USG DNS Redirect Setup.md
Last active April 19, 2024 21:40
UniFi USG DNS Redirect Setup
  1. Log into unifi controller web UI
  2. Go to Settings
  3. Select Routing & Firewall
  4. Select Firewall
  5. Select Groups
  6. Hit "Create new Group"
  7. Enter all your DNS servers here you want to be allowed on the local LAN (Eg, mine is 10.0.1.1 - gateway, 10.0.1.14 - pi-hole)
  8. Name this "Allowed DNS Servers"
  9. Hit OK
  10. SSH into the Gateway - NOT the CloudKey (username/password is whatever you set up)
@kols
kols / fallout-1-high-res-patch-mac-osx.md
Last active April 19, 2024 21:39 — forked from robatron/fallout-1-high-res-patch-mac-osx.md
How to get the Fallout 1 (and Fallout 2) high-resolution patch working for Mac OS X

Fallout 1 (and Fallout 2) Hi-Res Patch for Mac OS X

Fallout 1 was originally designed to run at 640x480 resolution. I wanted to run the Mac OS X version of Fallout on my MacBook 11", which has a 1366x768 display. There is a [high resolution patch][hi-res], but it only supports the Windows version of Fallout.

Turns out that the OS X version of Fallout runs through Wine, so we can get this patch working with just a few configuration changes:

Note for Fallout 2 users: The process for Fallout 2 is essentially the same, with a different patch, and some minor pathing differences. Other than that, the process is exactly the same!

Install Wine

@nessus42
nessus42 / destiny-networking-revised.md
Last active April 19, 2024 21:39
How Networking Works in Destiny 1 and How It Will Differ in Destiny 2 (According to Bungie, Redux)