Let's say you want to host domains first.com and second.com.
Create folders for their files:
| # Clone llama.cpp | |
| git clone https://github.com/ggerganov/llama.cpp.git | |
| cd llama.cpp | |
| # Build it | |
| make clean | |
| LLAMA_METAL=1 make | |
| # Download model | |
| export MODEL=llama-2-13b-chat.ggmlv3.q4_0.bin |
| //: ## Demo | |
| struct User: CustomStringConvertible { | |
| let name: String | |
| let age: Int | |
| var description: String { "\(name) (\(age))" } | |
| } | |
| let users = [ | |
| User(name: "Bob", age: 22), |
| import * as firebase from 'firebase/app'; | |
| import 'firebase/firestore'; | |
| var firebaseConfig = { | |
| // your firebase credentials | |
| }; | |
| // Initialize Firebase | |
| firebase.initializeApp(firebaseConfig); |
| <?php | |
| // android store | |
| if (preg_match('#android#i', $_SERVER ['HTTP_USER_AGENT'])) { | |
| header('Location: market://details?id=com.google.android.apps.maps'); | |
| exit; | |
| } | |
| // ios | |
| if (preg_match('#(iPad|iPhone|iPod)#i', $_SERVER ['HTTP_USER_AGENT'])) { |
##Setting spaces between characters with Swift (iOS)
###UIButton
@IBOutlet weak var button: UIButton!
button.titleLabel?.attributedText = NSAttributedString(string: string, attributes:[ NSKernAttributeName: 1.3])| sudo aptitude install git -y | |
| git clone https://github.com/pooler/cpuminer | |
| cd cpuminer | |
| sudo aptitude install automake -y | |
| sudo aptitude install pkg-config -y | |
| sudo aptitude install gcc -y | |
| sudo aptitude install make -y | |
| sudo aptitude install libcurl3-gnutls-dev -y | |
| ./autogen.sh | |
| ./configure CFLAGS="-O3" |
| # hhvm - HipHop VM | |
| # | |
| # The HipHopVM server provides a high performance PHP stack and web server. | |
| # modified by pjv from original found here: http://stackoverflow.com/questions/19013516/upstart-script-for-hhvm-hiphop | |
| description "HHVM server" | |
| author "pjv https://gist.github.com/pjv/2e9ab32d8d9884bf79a4" | |
| start on filesystem or runlevel [2345] | |
| stop on runlevel [!2345] |