Skip to content

Instantly share code, notes, and snippets.

View abetancort's full-sized avatar

Alfonso C. Betancort abetancort

  • 28°08'13N 15°26'16W The Canaries (Canary Islands)
View GitHub Profile
@Aditya1001001
Aditya1001001 / build_train_doc2vec.py
Last active January 5, 2025 23:44
Comparing Text Similarity Measures & Text Embedding Methods
def tagged_document(list_of_list_of_words):
for i, list_of_words in enumerate(list_of_list_of_words):
yield gensim.models.doc2vec.TaggedDocument(list_of_words, [i])
training_data = list(tagged_document(data))
model = gensim.models.doc2vec.Doc2Vec(vector_size=40, min_count=2, epochs=30)
model.build_vocab(training_data)
model.train(training_data, total_examples=model.corpus_count, epochs=model.epochs)
@blackgate
blackgate / mbp2011-disable-amd-gpu.md
Last active June 11, 2025 10:32
Macbook Pro 2011 - Disable AMD GPU
@blackgate
blackgate / mbp2011-disable-discrete-graphics.md
Last active June 2, 2021 12:34
Macbook Pro 2011 - Disable Discrete Graphics
@Manouchehri
Manouchehri / rfc3161.txt
Last active June 26, 2025 12:39
List of free rfc3161 servers.
https://rfc3161.ai.moda
https://rfc3161.ai.moda/adobe
https://rfc3161.ai.moda/microsoft
https://rfc3161.ai.moda/apple
https://rfc3161.ai.moda/any
http://rfc3161.ai.moda
http://timestamp.digicert.com
http://timestamp.globalsign.com/tsa/r6advanced1
http://rfc3161timestamp.globalsign.com/advanced
http://timestamp.sectigo.com
@lokulin
lokulin / pem2plex.py
Created September 10, 2015 13:43
Convert the x509 certificate to certificate.p12 that Plex requires.
#!/usr/bin/python
import sys
import hashlib
from OpenSSL.crypto import *
def main():
if(len(sys.argv) != 4):
print sys.argv[0] + " /path/to/ssl.crt /path/to/ssl.key ProcessedMachineIdentifier"
sys.exit(0)
@mallond
mallond / VI Cheat
Last active August 7, 2020 13:37
VI Cheat
Navigation Keys - These are used in command mode:
$ Move to end of line
^ Move to beginning of line
Save and Quit Commands - These are used in lastline mode:
:w Write buffer (Save changes and continue working in vi Editor)
:w new_filename Write buffer to new filename (continue working in vi)
:wq Write buffer (save changes) and quit vi
:q! Quit without saving changes
:wq! Write buffer (save changes) and quit vi
(The ! will override Read only permissions but only if you are the owner of the file.)
@brandonb927
brandonb927 / osx-for-hackers.sh
Last active June 12, 2025 22:00
OSX for Hackers: Yosemite/El Capitan Edition. This script tries not to be *too* opinionated and any major changes to your system require a prompt. You've been warned.
#!/bin/sh
###
# SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer)
# For Sierra or newer, see https://github.com/mathiasbynens/dotfiles/blob/master/.macos
###
# Alot of these configs have been taken from the various places
# on the web, most from here
# https://github.com/mathiasbynens/dotfiles/blob/5b3c8418ed42d93af2e647dc9d122f25cc034871/.osx