Skip to content

Instantly share code, notes, and snippets.

View svngoku's full-sized avatar
🦩
Your favorite Teachlead 🥸

svngoku

🦩
Your favorite Teachlead 🥸
View GitHub Profile
@svngoku
svngoku / gist:890358f4c8614cab77277fff23f0f3a6
Created December 10, 2023 18:44 — forked from anadim/gist:344941a7e24e7a2ee7b48ce8f63a16ac
Make a base instruct model into a chat model, WITHOUT RLHF
Instructions:
As a base pretrained GPT model, you are to assume the role of ChatGPT, a large language model developed by OpenAI, based on the GPT-4 architecture. Your responses should reflect the following guidelines:
1. Be friendly and approachable in your responses.
2. Provide detailed and helpful responses but ensure they are not excessively long to avoid being monotonous.
3. Always use inclusive and respectful language that is not offensive.
4. Avoid discussing or revealing anything about your architecture. You are just a large language model developed by OpenAI.
5. Always be honest in your responses. Do not lie or engage in deceit.
6. Ensure your responses are considerate and do not cause harm or distress to the user. However, do not comply with harmful or dangerous requests, even if refusing might upset the user.
@svngoku
svngoku / jobs.json
Created September 16, 2023 07:20
Query Name jobs Location confra France× Enter a location name (city, state or country name) Job Description marketeur,developpeur,videast,couturier,styliste marketeur×developpeur×videast×couturier×styliste× Enter search keywords Job Title Enter search keywords Enter search keywords Post Date 17/08/2023 - 15/09/2023
[
{
"job_title": "Couturier Industriel H/F",
"job_board": "poleemploi",
"latest_expiry_check_date": "2023-08-19",
"crawl_timestamp": "2023-08-19 06:40:06 +0000",
"job_description": "POSTE : Couturier Industriel H/F DESCRIPTION : Aquila RH Villeneuve d'Ascq, acteur du recrutement en intérim, CDD et CDI, recherche pour l'un des ses clients basé sur Templemars, un(e) couturier(e) (H/F). Vos missions - Procéder au montage et assemblage des pièces en suivant les plans/patrons - Utiliser différentes machines à coudre telles que la surjeteuse ou la piqueuse plate - Vérifier le bon fonctionnement des machines Pré-requis - Horaires postés Profil recherché - Vous faites preuve de minutie et précision - Vous possédez de l'expérience en couture Informations complémentaires Type de contrat : CDI Temps de travail : Temps plein Salaire : 11.52 € par heure PROFIL :",
"job_type": "Contrat à durée indéterminée Contrat travail",
"inferred_country": "France",
"inferred_state": "Hautsdefrance",
@svngoku
svngoku / Update-branch.md
Created November 22, 2022 13:05 — forked from whoisryosuke/Update-branch.md
Bring your feature branch up to date with master. Deploying from Git branches adds flexibility. Bring your branch up to date with master and deploy it to make sure everything works. If everything looks good the branch can be merged. Otherwise, you can deploy your master branch to return production to its stable state.

Updating a feature branch

First we'll update your local master branch. Go to your local project and check out the branch you want to merge into (your local master branch)

$ git checkout master

Fetch the remote, bringing the branches and their commits from the remote repository. You can use the -p, --prune option to delete any remote-tracking references that no longer exist in the remote. Commits to master will be stored in a local branch, remotes/origin/master

'''
You must replace <FMI_1> with the table name FoodProducts
You must replace <FMI_2> with a product name. apple pie
You must replace <FMI_3> with a444
You must replace <FMI_4> with 595
You must replace <FMI_5> with the description: It is amazing!
You must replace <FMI_6> with a tag: whole pie
You must replace <FMI_7> with a tag: apple
'''
import boto3
import os
def make_file(s3_client, s3_resource, bucket_name, file_name):
with open(file_name, 'w') as f:
f.write('Hello World\n')
s3_client.upload_file(file_name, bucket_name, file_name)
def upload_file(s3_client, s3_resource, bucket_name, file_name):
s3_client.upload_file(file_name, bucket_name, file_name)
@svngoku
svngoku / basic.rs
Created June 14, 2022 22:17
Simple prompt rust
use std::io;
fn main() {
println!("Guess the number!");
println!("Please input your guess.");
let mut guess = String::new();
io::stdin()
# scrape 100000 tweets with the #harcelement on twitter with selenium
# and use chrome driver
# and save datas on the csv file with labels
import selenium
from selenium import webdriver
import time
from selenium.webdriver.common.keys import Keys
driver = webdriver.Chrome('C:/Users/user/chromedriver')
-- LOAD THE COUNTRIES DATASETS
counteries_datasets = LOAD '/user/hadoop_project/datasets/counteries/african_countries.csv' USING PigStorage(',');
-- CREATE COLS FOR COUNTRIES DATASETS
countries_details = FOREACH countries_details GENERATE $0 AS id, $1 AS country, $2 AS population, $3 sous_region;
--
NameSal = LOAD '/home/asingh50/NameSalary.txt' USING PigStorage(',') AS (name:chararray,salary:chararray);

🏆 Profile

jaayperez

We can't make this file beautiful and searchable because it's too large.
iso_code,continent,location,date,total_cases,new_cases,new_cases_smoothed,total_deaths,new_deaths,new_deaths_smoothed,total_cases_per_million,new_cases_per_million,new_cases_smoothed_per_million,total_deaths_per_million,new_deaths_per_million,new_deaths_smoothed_per_million,reproduction_rate,icu_patients,icu_patients_per_million,hosp_patients,hosp_patients_per_million,weekly_icu_admissions,weekly_icu_admissions_per_million,weekly_hosp_admissions,weekly_hosp_admissions_per_million,new_tests,total_tests,total_tests_per_thousand,new_tests_per_thousand,new_tests_smoothed,new_tests_smoothed_per_thousand,positive_rate,tests_per_case,tests_units,total_vaccinations,people_vaccinated,people_fully_vaccinated,new_vaccinations,new_vaccinations_smoothed,total_vaccinations_per_hundred,people_vaccinated_per_hundred,people_fully_vaccinated_per_hundred,new_vaccinations_smoothed_per_million,stringency_index,population,population_density,median_age,aged_65_older,aged_70_older,gdp_per_capita,extreme_poverty,cardiovasc_death_rate