Discover gists
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 llama_cpp | |
import re | |
import json | |
# Model configuration | |
# tested with mistral, llama2, llama3, and phi3 | |
model_path = "/path/to/model" | |
base_llm = llama_cpp.Llama(model_path, seed=42, n_gpu_layers=-1, n_ctx=4096, verbose=False, temperature=0.0) |
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
MONGO_DB= |
*update: TBC, but this new might affect how easy it is to use this technique past August 2024: Authy is shutting down its desktop app | The 2FA app Authy will only be available on Android and iOS starting in August
This gist, based in part on a gist by Brian Hartvigsen, allows you to export from Authy your TOTP tokens you have stored there.
Those can be "standard" 6-digits / 30 secs tokens, or Authy's own version, the 7-digits / 10 secs tokens.
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
export const mapStateToProps = { | |
Component: state => ({ | |
}), | |
}; | |
export const mapDispatchToProps = { | |
Component: dispatch => ({ | |
}), |
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
/* eslint import/no-named-as-default: 0 */ | |
import { propTypes, defaultProps } from './PropTypes'; | |
import { mapStateToProps, mapDispatchToProps } from './Selector'; | |
import { lazy } from '@/core/scaffolding/feature'; | |
const ImageDropHolder = lazy({ namespace: 'ImagesManager', exportName: 'ImageDropHolder' }); |
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
css-box-model | |
is-plain-object | |
lodash | |
package-json | |
text-table | |
#react | |
React-Move | |
classnames | |
react-virtualized |
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 browser from "exp-react-test"; | |
import mountTestApp from "./helpers/mountTestApp"; | |
When("The application mounts", () => { | |
mountTestApp(); | |
}); |
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
// disable warning | |
console.disableYellowBox = true; | |
//eslint | |
npx install-peerdeps --dev eslint-config-airbnb | |
//shoutem | |
yarn add @shoutem/ui | |
//configuration |
NewerOlder