Skip to content

Instantly share code, notes, and snippets.

@ih2502mk
ih2502mk / list.md
Last active December 26, 2024 04:22
Quantopian Lectures Saved
@adulau
adulau / tor2web-list.md
Last active December 26, 2024 04:22
Tor2web and tor proxies public list

Tor2web and tor proxies public list

List of services which are giving access to Tor network and especially Tor hidden services via web interface. We keep track of potential injection or abuse from such service (the column Scam).

List

Url Status Domain Log Techno Scam
https://onion.re/ DOWN onion.re full custom no
using System;
using System.Runtime.InteropServices;
using Gtk;
using OpenToolkit.Graphics.OpenGL4;
//this is just a template, if you encounter incorrect drawing when resizing you can disable double buffering on the top level window for the widget, I couldn't find a better fix
//and will work only on Linux, to fix that you could change the bindings context that will be loaded with one that workd on another platforms like glfw
namespace OpenToolkit
{
public class GLWidget : GLArea
@NepNet
NepNet / GlxBindingsContext.cs
Last active December 26, 2024 04:19
Bindings contexts for OpenTK 4. If you need to load the bindings for windows use the wgl one, for linux glx and if you use it in a cross platform app like a gtk one use the native bindings context, it will check the platform and use either wgl or glx depending on the platform. For Mac ¯\_(ツ)_/¯ idk, I don't have a mac to test
using System;
using System.Runtime.ConstrainedExecution;
using System.Runtime.InteropServices;
using OpenTK;
public class GlxBindingsContext : IBindingsContext
{
[DllImport("libGL", CharSet = CharSet.Ansi)]
private static extern IntPtr glXGetProcAddress(string procName);
public IntPtr GetProcAddress(string procName)
@dedlim
dedlim / claude_3.5_sonnet_artifacts.xml
Last active December 26, 2024 04:14
Claude 3.5 Sonnet, Full Artifacts System Prompt
<artifacts_info>
The assistant can create and reference artifacts during conversations. Artifacts are for substantial, self-contained content that users might modify or reuse, displayed in a separate UI window for clarity.
# Good artifacts are...
- Substantial content (>15 lines)
- Content that the user is likely to modify, iterate on, or take ownership of
- Self-contained, complex content that can be understood on its own, without context from the conversation
- Content intended for eventual use outside the conversation (e.g., reports, emails, presentations)
- Content likely to be referenced or reused multiple times
// More information: https://danielupshaw.com/openscad-rounded-corners/
module roundedcube_simple(size = [1, 1, 1], center = false, radius = 0.5) {
// If single value, convert to [x, y, z] vector
size = (size[0] == undef) ? [size, size, size] : size;
translate = (center == false) ?
[radius, radius, radius] :
[
radius - (size[0] / 2),
@rmrfslashbin
rmrfslashbin / Darwin.md
Last active December 26, 2024 03:55
Minimal MacOS setup guide. System/UI and CLI (zsh, Oh My Zsh, brew, etc).

Note

Apple will reject apps that are using private url schemes (Ugh, Apple....) if they are pretty much obvius. Some apps are rejected and others are not, so, be aware of this issue before implementing any of those URL's in your app as a feature.

Updates

  • [UPDATE 4] iOS 10 update: apparently settings now can be reached using App-Pref instead of prefs
  • [UPDATE 3] For now you just can use url schemes to open your apps's settings with Swift 3.0 (Xcode 8). I'll keep you informed when OS preferences can be reached
  • [UPDATE 2] The openURL() method of UIApplication is now deprecated. You should use application(_:open:options:) instead
  • [UPDATE 1] Not yet tested in iOS 10. It will fail because of policies changes in URL scheme handling.
@ucarion
ucarion / html_cleanup.rb
Last active December 26, 2024 03:46
Composing programs to PDF
require 'nokogiri'
input = $stdin.readlines.join
page = Nokogiri::HTML(input)
page.css('.example').each do |elem|
elem.inner_html = '<i>Environment diagram omitted.</i>'
end
page.css('img').remove
@rickklaasboer
rickklaasboer / how-to-setup-plex-with-sonarr-radarr-jackett-overseerr-and-qbittorrent-using-docker.md
Last active December 26, 2024 03:41
How to setup Plex with Sonarr, Radarr, Jackett, Overseerr and qBitTorrent using Docker

How to setup Plex with Sonarr, Radarr, Jackett, Overseerr and qBitTorrent using Docker

Before continuing: This guide is currently outdated but I'm working on a new one with upgrading steps included. I'll link it here once it's finished :)

This is a guide that will show you how to setup Plex Media Server with Sonarr, Radarr, Jackett, Overseerr and qBitTorrent with Docker. It is written for Ubuntu 20.04 but should work on other Linux distributions as well (considering supported distributions by Docker). It is also written for people who have some experience with Linux and Docker. If you are new to Docker, I recommend you to read the Docker documentation, and if you are new to Linux, I recommend you to read the Ubuntu documentation.

Now, let's get started!

Please note: This guide was written without considering hardlinking for Sonarr/Radarr. If you want to use hardlinking refer to #Hardlinking