Skip to content

Instantly share code, notes, and snippets.

@cristian-aldea
cristian-aldea / slick-terminal.md
Last active October 4, 2023 17:56
Ubuntu + Zsh + Oh My Zsh + Powerlevel10k = Sliiiiiiiiiiiiick
View slick-terminal.md

Based on: https://gist.github.com/kevin-smets/8568070

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
Zackptg5 / Manjaro_HyperV_Setup.md
Last active October 4, 2023 17:56
Manjaro HyperV Install Guide
View Manjaro_HyperV_Setup.md

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
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

Mix.install([
  {:ortex, github: "elixir-nx/ortex", ref: "9e384971d1904ba91e5bfa49594d742a1d06cb4c"},
  {:tokenizers,
   github: "elixir-nx/tokenizers", override: true, ref: "20295cfdf9b6342d723b405481791ec87afa203c"},
  {:exla,
   github: "elixir-nx/nx",
   sparse: "exla",
View marketing-digital.md
- 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
- SERP 
    - Search Engine Result Page == resultados das páginas de busca.
  • ROI
    • Return Of Investment
@jwmcgettigan
jwmcgettigan / bitwarden_duplicate_cleaner.py
Last active October 4, 2023 17:55
Identifies and removes duplicate 'items' and 'folders' from your Bitwarden vault. 🎃
View bitwarden_duplicate_cleaner.py
# 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
mindplace / git_and_github_instructions.md
Last active October 4, 2023 17:53
Pushing your first project to github
View git_and_github_instructions.md
@nicknapoli82
nicknapoli82 / cs50_Tideman_cycle-explanation.md
Last active October 4, 2023 17:52
My attempt at clarifying how cycles work for the Tideman algorithm
View cs50_Tideman_cycle-explanation.md

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.

First:
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

Second:
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
YPermitin / Примитивная инструкция PostgreSQL + 1C на Ubuntu 20.04.md
Last active October 4, 2023 17:52
Самая примитивная инструкция по установке PostgreSQL 14 + сервер 1C 8.3.20.1710 на Ubuntu 20.04
View Примитивная инструкция PostgreSQL + 1C на Ubuntu 20.04.md

Статья переехала на ypermitin.github.io

Самая примитивная инструкция по установке 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
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
#!/bin/bash
### 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