grubb description: Notebook product: 81H6 (LENOVO_MT_81H6_BU_idea_FM_ideapad 130-14IKB) vendor: LENOVO version: Lenovo ideapad 130-14IKB serial: MP1H8VQU width: 64 bits capabilities: smbios-3.0.0 dmi-3.0.0 smp vsyscall32 configuration: administrator_password=enabled boot=normal chassis=notebook family=ideapad 130-14IKB frontpanel_password=disabled keyboard_password=disabled power-on_password=disabled sku=LENOVO_MT_81H6_BU_idea_FM_ideapad 130-14IKB uuid=69cd9ed3-4580-11e9-8bb6-9c5a44316938
This file contains hidden or 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
| llama image |
This file contains hidden or 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
| from llama_index.core import VectorStoreIndex, SimpleDirectoryReader, Settings | |
| from llama_index.embeddings.huggingface import HuggingFaceEmbedding | |
| from llama_index.llms.ollama import Ollama | |
| import logging | |
| import sys | |
| import os | |
| import pickle | |
| # logging.basicConfig(stream=sys.stdout, level=logging.DEBUG) | |
| # logging.getLogger().addHandler(logging.StreamHandler(stream=sys.stdout)) |
This file contains hidden or 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
| services: | |
| app: | |
| image: onetimesecret/onetimesecret:latest | |
| container_name: onetime-app | |
| depends_on: | |
| - redis | |
| environment: | |
| HOST: "localhost:1234" | |
| SSL: false | |
| REDIS_URL: "redis://@redis:6379/0" |
This file contains hidden or 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
| { | |
| "description": "Caps Lock -> LeftCommand+Control+Shift+Option, Caps Lock -> Escape (if held alone for > 500 ms)", | |
| "manipulators": [ | |
| { | |
| "from": { | |
| "key_code": "caps_lock", | |
| "modifiers": { | |
| "optional": [ | |
| "any" | |
| ] |
This file contains hidden or 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
| --- | |
| # | |
| # Install ansible (like in ubuntu): | |
| # sudo apt update | |
| # sudo apt install software-properties-common | |
| # sudo add-apt-repository --yes --update ppa:ansible/ansible | |
| # sudo apt install -y ansible | |
| # run with pull | |
| # ansible-pull -U https://gist.github.com/thapakazi/1618dd7bd81c6c3a3b16ceaeac9d0f93 install-tiny-proxy.yaml -i "localhost," -c local |
This file contains hidden or 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
| 1. create sns topic | |
| 2. Under Amazon SNS > Text messaging (SMS) | |
| Add your phone number and verify it with otp. | |
| reason: | |
| by default SMS is in sandbox mode: https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html | |
| Need to create a support ticket to "Exit SMS Sandbox" :weird: which only allows us to send sms on verified number. |
This file contains hidden or 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
| #!/bin/bash | |
| set -e | |
| stderr_log="/tmp/stderr.log" | |
| exec 2>"$stderr_log" | |
| notify() { | |
| local exit_code=$? | |
| local lineno=$1 | |
| if ! [ $exit_code -eq 0 ]; then |
This file contains hidden or 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
| #!/bin/bash | |
| export AWS_PROFILE=nonproduction | |
| export AWS_REGION=us-east-1 | |
| source_env=staging | |
| dest_env=testing | |
| SECRETS_DIR=/tmp/secrets && mkdir -p $SECRETS_DIR | |
| SECRETS_ALL=$SECRETS_DIR/secrets.json |
NewerOlder