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.
-
Setup required dependencies
# update packages sudo apt update
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.
Setup required dependencies
# update packages
sudo apt update
# Hello, and welcome to makefile basics. | |
# | |
# You will learn why `make` is so great, and why, despite its "weird" syntax, | |
# it is actually a highly expressive, efficient, and powerful way to build | |
# programs. | |
# | |
# Once you're done here, go to | |
# http://www.gnu.org/software/make/manual/make.html | |
# to learn SOOOO much more. |
import android.app.Presentation | |
import android.content.Context | |
import android.graphics.Bitmap | |
import android.graphics.Picture | |
import android.graphics.SurfaceTexture | |
import android.hardware.display.DisplayManager | |
import android.view.Display | |
import android.view.Surface | |
import android.view.ViewGroup | |
import androidx.compose.foundation.layout.Box |
import time | |
import torch | |
import torchvision | |
import torchvision.transforms as transforms | |
class ELM(torch.nn.Module): | |
def __init__(self, input_size, hidden_size, output_size): | |
super(ELM, self).__init__() | |
self.hidden_size = hidden_size | |
self.input_weights = torch.nn.Parameter(torch.randn(input_size, hidden_size) * 0.1, requires_grad=False) |
// Enable component-scanning and auto-configuration with @SpringBootApplication Annotation | |
// It combines @Configuration + @ComponentScan + @EnableAutoConfiguration | |
@SpringBootApplication | |
public class FooApplication { | |
public static void main(String[] args) { | |
// Bootstrap the application | |
SpringApplication.run(FooApplication.class, args); | |
} | |
} |
# Docker compose to set up containers for all services you need: | |
# VPN | |
# Sonarr, Radarr, Lidarr, Qbittorrent | |
# Non-VPN | |
# Plex, get_iplayer | |
# Before running docker-compose, you should pre-create all of the following folders. | |
# Folders for Docker State: | |
# /volume1/dockerdata. - root where this docker-compose.yml should live | |
# /volume1/dockerdata/plex - Plex config and DB | |
# /volume1/dockerdata/sonarr - Sonarr config and DB |
First disable the autoCRLF in the git config by running the following command in your terminal
git config core.autocrlf false
Then remove the cached files in the git. Run the following command:
There are trhee diffrent time zones in rails
UTC
, but do not change itconfig.time_zone
should be set when an app dose not support multiple time zones#!/bin/sh | |
# wget https://gist.githubusercontent.com/stefansundin/c89fd15bae5a58831790/raw/make-chrome-app.sh | |
# chmod +x make-chrome-app.sh | |
# ./make-chrome-app.sh | |
echo "Note that the app will run with a separate data dir and thus not have your regular extensions and settings." | |
echo | |
echo "What should the app be called?" | |
read name | |
echo |
import tiktoken | |
import langdetect | |
T = tiktoken.get_encoding("o200k_base") | |
length_dict = {} | |
for i in range(T.n_vocab): | |
try: | |
length_dict[i] = len(T.decode([i])) | |
except: |