Skip to content

Instantly share code, notes, and snippets.

cristian-aldea /
Last active October 4, 2023 17:56
Ubuntu + Zsh + Oh My Zsh + Powerlevel10k = Sliiiiiiiiiiiiick

Based on:

This gist outlines the steps needed to setup zsh, ohmyzsh and the powerlevel10k theme, available for anyone to follow.

  1. Setup required dependencies

    # update packages
    sudo apt update
Zackptg5 /
Last active October 4, 2023 17:56
Manjaro HyperV Install Guide

Deprecated - Microsoft quit updating vm tools in favor of WSL2, it's only a matter of time before this breaks untirely (if it isn't already).

Credits, the original guide which has strangely vanished but can still be found via wayback machine here

This is largely the same as the original but with some updates

  • Setup a new machine in HyperV Manager. Make sure you choose 'Generation 2' and assign default switch for networking (or whatever other adapter you use). Then go to the new VM's settings, disable secure boot, and attach the manjaro iso to it (at the time of writing this, gnome doesn't work).
  • Boot up the vm, you'll be meeting with a black screen or the cli will show it stopped around display starting or whatever. Drop into terminal with CTL + ALT+ F2.
  • Login and type: pacman -Sy && pacman -S xf86-video-fbdev
  • Then restart the display manager: `systemctl r
SteffenDE / ortex_mpnet.livemd
Created July 25, 2023 16:05
Running the all-mpnet-base-v2 sentence transformer in Elixir using Ortex
View ortex_mpnet.livemd

Ortex MPNet Sentence Transformer

  {:ortex, github: "elixir-nx/ortex", ref: "9e384971d1904ba91e5bfa49594d742a1d06cb4c"},
   github: "elixir-nx/tokenizers", override: true, ref: "20295cfdf9b6342d723b405481791ec87afa203c"},
   github: "elixir-nx/nx",
   sparse: "exla",
- Marketing 
   - e o conjunto de técnicas e processos que definem as relações entre a sua empresa e o restante do mercado, usando os 4P's: Preço, Praça, Produto e Promoção.
   - Publicidade == é um dos instrumentos que o marketing utiliza na criação das suas estratégias. É o ato de propagar uma mensagem atendendo aos diversos objetivos de marketing.
   - Uma publicidade pode ter a finalidade de vender um produto, divulgar uma ideia ou atrair mais visibilidade para a marca, por exemplo.
- SEO  
    - Search Engine Optmization == Provavelmente a coisa mais importante do marketing digital. Todos que trabalham com web devem ser especialistas nesta sigla :D
    - Search Engine Result Page == resultados das páginas de busca.
  • ROI
    • Return Of Investment
jwmcgettigan /
Last active October 4, 2023 17:55
Identifies and removes duplicate 'items' and 'folders' from your Bitwarden vault. 🎃
# Copyright © 2023 Justin McGettigan
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software
# and associated documentation files (the “Software”), to deal in the Software without
# restriction, including without limitation the rights to use, copy, modify, merge, publish,
# distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the
# Software is furnished to do so, subject to the following conditions:
# The above copyright notice and this permission notice shall be included in all copies or
# substantial portions of the Software.
mindplace /
Last active October 4, 2023 17:53
Pushing your first project to github
nicknapoli82 /
Last active October 4, 2023 17:52
My attempt at clarifying how cycles work for the Tideman algorithm

A Way to Look at Tideman Lock Pairs

I've observed that there is a little bit of a disconnect in understanding what it is that needs to be done to properly implement the lock_pairs function for cs50 Tideman. The goal of this little write-up is simply an attempt at explaining what the problem actually is, and why a cycle imposes a problem.

If you are unfamiliar with the actual problem, or have not read through the entire cs50 Tideman problem description. Then I think you should start there.
cs50 Tideman

This little write-up is only narrowing in on the idea of cycles, and a way to think about what a cycle is and determine if locking a pair in the pairs array would create that cycle. This does not talk about any other part of the Tideman problem.

YPermitin / Примитивная инструкция PostgreSQL + 1C на Ubuntu
Last active October 4, 2023 17:52
Самая примитивная инструкция по установке PostgreSQL 14 + сервер 1C на Ubuntu 20.04
View Примитивная инструкция PostgreSQL + 1C на Ubuntu

Статья переехала на

Самая примитивная инструкция по установке PostgreSQL + сервер 1C на Ubuntu 20.04

Инструкция с минимальным набором шагов по настройке сервера 1С:Предприятия 8.3.20 + PostgreSQL 14 на Ubuntu 20.04. В общем плане актуальна для других версий приложений и ОС. Клиентскую часть 1С здесь не рассматриваем.

Многие вещи в инструкции не раскрыты и вся информация скорее для ознакомления с процессом, а для рабочего окружения нужно более вдумчиво подходить ко всем настройкам.

Настройка ОС

View instagram-follower-following.js
const fetchOptions = {
credentials: "include",
headers: {
"X-IG-App-ID": "936619743392459",
method: "GET",
let username;
MihailCosmin / cuda_11.8_installation_on_Ubuntu_22.04
Last active October 4, 2023 17:49 — forked from primus852/cuda_11.7_installation_on_Ubuntu_22.04
Instructions for CUDA v11.8 and cuDNN 8.7 installation on Ubuntu 22.04 for PyTorch 2.0.0
View cuda_11.8_installation_on_Ubuntu_22.04
### steps ####
# verify the system has a cuda-capable gpu
# download and install the nvidia cuda toolkit and cudnn
# setup environmental variables
# verify the installation
### to verify your gpu is cuda enable check