Skip to content

Instantly share code, notes, and snippets.

With a somewhat complex set of data science related dependencies (matplotlib, scikitlearn, and pytorch amongst others) I initially I came across this error: 

Error #15: Initializing libiomp5.dylib, but found libiomp5.dylib already initialized OMP: Hint: This means that multiple copies of the OpenMP runtime have been linked into the program. That is dangerous, since it can degrade performance or cause incorrect results. The best thing to do is to ensure that only a single OpenMP runtime is linked into the process, e.g. by avoiding static linking of the OpenMP runtime in any library. As an unsafe, unsupported, undocumented workaround you can set the environment variable KMP_DUPLICATE_LIB_OK=TRUE to allow the program to continue to execute, but that may cause crashes or silently produce incorrect results. For more information, please see http://www.intel.com/software/products/support/.

The solutions I found to this problem when searching was primarily around forcing the Conda environment to use X86 (basicall

@johnlindquist
johnlindquist / prompts.txt
Created July 23, 2022 22:26
Top Prompts of 2022-08-23
random beautiful landscape
young woman, medium wavy red hair, slightly tanned, heroine, oil painting, portrait, intricate complexity, rule of thirds, in the style of Artgerm, character concept
portrait of a cute mouse as knight in the style of charlie bowater, oil painting
intricate colourfully painted carved wood paneling, dark souls, ivory and copper , artstation
grey curly hair dutch man danny hollander dannyjevriend Studio Ghibli painterly style, portrait symetrical –iw 2
pixel art explosion, painterly
The Entrance to Kingdom of Shangri-La, Beautiful architecture, Atmosphere, Dramatic lighting, Epic composition, Close up, Low angle, Wide angle, by Miyazaki, Nausicaa Ghibli, Breath of The Wild
winter,snow,In the dense primeval forest there was a pool of water after the rain,Crystal butterfly,The light from the cracks of the trees shone on the pool like a mirror, and deep snow covered the land,sun light,concept, art, fantasy,Ghibli, Hayao Miyazaki,4k,cinematic,
handsome anime dragon in Amazon rainforest, dn
@supermamon
supermamon / code.js
Last active January 3, 2024 13:01
Example Google Apps Script WebApp to read/append to a Spreadsheet
/*
How to setup
============
1. Go to https://script.google.com and login
2. Click New Project
3. Give the project a name be clicking on "Untitled Project" and giving a new name
4. Copy this whole code and overwrite everything on Code.gs file. Click on the Save icon to save.
5. Go to Google drive and open the worksheet that you want to manipulate
6. Take a look at the url. It should be in this format -- https://docs.google.com/spreadsheets/d/spreadheet-id-as-some-long-seemingly-random-characters/edit#gid=478439860
@chrisma
chrisma / GetNameAndTitleOfActiveWindow.scpt
Created May 20, 2021 08:21 — forked from timpulver/GetNameAndTitleOfActiveWindow.scpt
[AppleScript] Get Name of active window | Returns the name / title of the active (frontmost) window
# taken from user Albert's answer on StackOverflow
# http://stackoverflow.com/questions/5292204/macosx-get-foremost-window-title
# tested on Mac OS X 10.7.5
global frontApp, frontAppName, windowTitle
set windowTitle to ""
tell application "System Events"
set frontApp to first application process whose frontmost is true
set frontAppName to name of frontApp
@KalebNyquist
KalebNyquist / airtable_helper.py
Last active August 17, 2023 10:24
Simple Download/Upload of Airtable Data into/from Python using Airtable API
import requests
import json
import pandas as pd
def airtable_download(table, params_dict={}, api_key=None, base_id=None, record_id=None):
"""Makes a request to Airtable for all records from a single table.
Returns data in dictionary format.
Keyword Arguments:
@kfur
kfur / darkreader.js
Last active June 11, 2024 07:35
Dark Reader userscript for Safari browser
// ==UserScript==
// @name DarkReader
// @match *://*/*
// @grant none
// @run-at document-start
// ==/UserScript==
// MIT License
// Copyright (c) 2019 Alexander Shutau
@joepie91
joepie91 / vpn.md
Last active July 20, 2024 13:53
Don't use VPN services.

Don't use VPN services.

No, seriously, don't. You're probably reading this because you've asked what VPN service to use, and this is the answer.

Note: The content in this post does not apply to using VPN for their intended purpose; that is, as a virtual private (internal) network. It only applies to using it as a glorified proxy, which is what every third-party "VPN provider" does.

  • A Russian translation of this article can be found here, contributed by Timur Demin.
  • A Turkish translation can be found here, contributed by agyild.
  • There's also this article about VPN services, which is honestly better written (and has more cat pictures!) than my article.
@timstermatic
timstermatic / user.js
Created May 20, 2013 17:29
Example of using bcrypt with mongoose middleware to enforce password hashing with bcrypt on save.
var mongoose = require('mongoose'),
Schema = mongoose.Schema
var bcrypt = require('bcrypt')