Skip to content

Instantly share code, notes, and snippets.

export const gpt_functions_param_jobs_fetching = [
{
name: "process_job_data",
description: "Process job data and extract core fields for a scraper.",
parameters: {
type: "object",
additionalProperties: false,
properties: {
// Company
company_name: {
@viphak
viphak / dell-h310.md
Created November 27, 2022 02:31 — forked from woble/dell-h310.md
Flashing Dell PERC H310 to IT mode

If you have a Dell Perc H310 and your computer won't boot then you'll need to cover PCIe pins B5 and B6. You can cover them with a thin piece of electrical tape.

H310 DOS

  1. megacli.exe -AdpAllInfo -aAll -page 20 Write down SAS address.
  2. megarec.exe -writesbr 0 sbrempty.bin If this fails move on to next step.
  3. megarec.exe -cleanflash 0 Reboot.
  4. sas2flsh.exe -o -f 6GBPSAS.fw Reboot.
  5. sas2flsh.exe -o -f 2118it.bin
  6. s2fp19.exe -o -sasadd 500xxxxxxxxxxxxx
@viphak
viphak / README.md
Created September 8, 2021 02:24 — forked from luizomf/README.md
VSCode settings.json - keybindings.json - recomendations - extensions.json. Just to backup (visual studio code)
/**
* Retrieves all the rows in the active spreadsheet that contain data and logs the
* values for each row.
* For more information on using the Spreadsheet API, see
* https://developers.google.com/apps-script/service_spreadsheet
*/
function readRows() {
var sheet = SpreadsheetApp.getActiveSheet();
var rows = sheet.getDataRange();
var numRows = rows.getNumRows();
@viphak
viphak / openhab_k3s_deployment.md
Created September 27, 2020 18:00 — forked from jannegpriv/openhab_k3s_deployment.md
Support for OpenHAB K3s deployment.

Support for OpenHAB K3s deployment.

OpenHAB is a popular open source home automation platform that can run on a Docker container. The OpenHAB K3s deployment in this example uses persistent volume claims on NFS volumes and Traefik Ingress controller for easy external access to PaperUI.

NOTE: The yaml-files for OpenHAB uses NFS Persistent volumes, hence instructions on this page needs to be done before continuing.

The following instructions assumes you are logged into the master node.

You first need to clone the OpenHAB Docker repo to be able to fetch the latest container additions from OpenHAB:

@viphak
viphak / directions.md
Last active February 18, 2020 07:26 — forked from omushpapa/directions.md
Deploy Django App on Heroku

Requirements

Run pip install pipenv to install pipenv

Run pipenv shell to create an environment, if does not exist, and activate it.

Run pipenv install python_decouple whitenoise dj_database_url Pillow gunicorn May take a while.

This should create two files: Pipfile and Pipfile.lock. Keep them in the project root.

brew install imagemagick
brew install leptonica --with-libtiff
brew install tesseract --with-all-languages
convert input.png -resize 400% -type Grayscale input.tif
@viphak
viphak / temp
Created January 26, 2018 20:52
temp
https://deepcurrent.com/Account/ResetPassword?userId=mFlm%2BKHDrbFA%2BQWcyocM9g%3D%3D&tenantId=&resetCode=4d9b2f56859048c69061f790d48cd333
@viphak
viphak / reclaimWindows10.ps1
Created January 10, 2017 18:04 — forked from alirobe/reclaimWindows10.ps1
"Reclaim Windows 10" turns off a bunch of unnecessary Windows 10 telemetery, removes bloatware, and privacy invasions. Review and tweak before running. Scripts for reversing are included and commented. Fork via https://github.com/Disassembler0 (different defaults)
##########
# Win10 Initial Setup Script
# Author: Disassembler <disassembler@dasm.cz>
# Version: 1.7, 2016-08-15
# dasm's script: https://github.com/Disassembler0/Win10-Initial-Setup-Script/
# THIS IS A PERSONALIZED VERSION
# This script leaves more MS defaults on, including MS security features.
# Tweaked based on personal preferences for @alirobe 2016-11-16 - v1.7.1
# references #
# http://blog.xebia.com/2014/06/18/deploying-a-node-js-app-to-docker-on-coreos-using-deis/
# http://deis.io/get-deis/
# http://docs.deis.io/en/latest/installing_deis/install-deisctl/#install-deisctl
# http://docs.deis.io/en/latest/installing_deis/install-platform/#install-deis-platform
## https://www.vagrantup.com/
## https://www.virtualbox.org/
# http://docs.deis.io/en/latest/using_deis/install-client/