dotnet new console --use-program-main
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import chromadb | |
chroma_client = chromadb.Client() | |
collection = chroma_client.create_collection(name="wiki") | |
def load_txt_files(directory): | |
txt_files = [] | |
names = [] |
I'll add more to this later but for now:
Find out how I have it set in regular Windows from the command prompt:
git config --list
Output:
... etc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8" ?> | |
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet"> | |
<CodeSnippet Format="1.0.0"> | |
<Header> | |
<Title>cr</Title> | |
<Shortcut>cr</Shortcut> | |
<Description>Code snippet for Console.ReadLine</Description> | |
<Author>*Not* Microsoft Corporation</Author> | |
<SnippetTypes> | |
<SnippetType>Expansion</SnippetType> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Uses https://github.com/CraZySacX/node-jdbc | |
// Assumes you have already installed the JDK, hadoop, and hive! | |
// Just a quick demo with callback hell... Really you'll | |
// want to use async or something similar... | |
var JDBC = require('jdbc'); | |
var jinst = require('jdbc/lib/jinst'); | |
jinst.setupClasspath([ | |
'/usr/local/hadoop/share/hadoop/common/hadoop-common-2.7.4.jar', | |
'/usr/local/apache-hive-1.2.2-bin/lib/hive-jdbc-1.2.2-standalone.jar' | |
]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Global initialisation file for SciTE | |
# For Linux, place in $prefix/share/scite | |
# For Windows, place in same directory as SciTE.EXE (or Sc1.EXE) | |
# Documentation at http://www.scintilla.org/SciTEDoc.html | |
# Globals | |
# Window sizes and visibility | |
if PLAT_WIN | |
position.left=0 |
Seeing this error in the bash shell when launching some apps, such as scite:
** (scite:5298): WARNING **: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was not provided by any .service files
Update as per comments below.
It appears adding this library fixes the problem: at-spi2-core
It turns out you can have separate GTK rc files for separate apps, just by setting an environment variable. For this example I'm using this theme: https://github.com/axxapy/Adwaita-dark-gtk2
First, clone the GTK theme you want into a directory such as ~/.config/geany/gtk
mkdir ~/.config/geany/gtk2/
cd ~/.config/geany/gtk2/
git clone [email protected]:axxapy/Adwaita-dark-gtk2.git
That's it. You only have to do that part once. Now any time you run geany, just set an environment variable first, like so:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Settings] | |
gtk-theme-name=Clearlooks | |
gtk-icon-theme-name=Super Flat Remix | |
gtk-font-name=Liberation Sans 11 | |
gtk-cursor-theme-name=DMZ-White | |
gtk-cursor-theme-size=18 | |
gtk-toolbar-style=GTK_TOOLBAR_BOTH_HORIZ | |
gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR | |
gtk-button-images=1 | |
gtk-menu-images=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!-- Do not edit this file, it will be overwritten on install. | |
Copy the file to $HOME/.config/openbox/ instead. --> | |
<openbox_config xmlns="http://openbox.org/3.4/rc" xmlns:xi="http://www.w3.org/2001/XInclude"> | |
<resistance> | |
<strength>10</strength> | |
<screen_edge_strength>20</screen_edge_strength> | |
</resistance> | |
<focus> | |
<focusNew>yes</focusNew> |
NewerOlder