Skip to content

Instantly share code, notes, and snippets.

View rayanfer32's full-sized avatar
☢️
Radioactive

Rayan fernandes rayanfer32

☢️
Radioactive
View GitHub Profile
@rayanfer32
rayanfer32 / allSolutions.py
Last active April 13, 2021 01:46
INFOSYS Python Practice solutions
#DSA-Assgn-1
def merge_list(list1, list2):
merged_data=""
list3=list()
#write your logic here
list2.reverse()
for i in range((len(list2))):
if list2[i] is not None:
merged_data+="%s%s "%(list1[i],list2[i])
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Home</title>
<script src="https://code.jquery.com/jquery-3.3.1.js" integrity="sha256-2Kok7MbOyxpgUVvAk/HJ2jigOSYS2auK4Pfzbm7uH60=" crossorigin="anonymous"></script>
</head>
class stopwatch:
import time
def start():
store = time.time()
return store
def stop(store):
elapsed = time.time() - store
print("elapsed",elapsed,"seconds!")
import urllib.request as ur
raw_url = "https://gist.githubusercontent.com/Rayanfer32/01bba89fc3e943ec22d1c7d346a94849/raw"
plain_code = ur.urlopen(raw_url).read().decode()
exec(plain_code)
DESIGN AND FABRICATION OF SMART TOILET CLEANER
#include <LiquidCrystaI.h> // includes the LiquidCrystaI Library
#define rightMotorDir 2 //Sprayer Motor
#define rightMotorPwm 3
#define leftMotorDir 4 //Brush Motor
#define leftMotorPwm 5

Handbrake-tut

Video compression with handbrake-cli

You never even touched upon the "video" tab ... where all the most important HandBrake options for video optimization and filesize reduction are (although, I realize it might seem a little intimidating if you don't know what they do). Perhaps I could help.

Your reduced ~500Mb export could have easily been reduced further to around ~200Mb just from experimenting with the video export options on that tab. Meaning, your average 1 hour upload time could be slashed again in half without any apparent loss in quality. If you're uploading regularly, this could be a real time-saver for you, since once you've found the right optimization, you can save the settings to a preset, which you can just select for all subsequent transcodes.

I've been using HandBrake for many years now. The best version to use is "HandBrake Nightly" as it's their most optimized and up-to-date build: Just Google: "HandBrake Nightly" for the official download website

Once you find your perf

<!DOCTYPE html>
<html>
<head>
<link href="https://fonts.googleapis.com/css2?family=Space+Mono:ital,wght@0,400;0,700;1,400&display=swap" rel="stylesheet">
<title>Create Invoice</title>
<style>
body {
font-family: 'Space Mono', monospace, Arial, sans-serif;
background-color: #f2f2f2;
"""
Run this script using `python backup_stashes.py`
To apply the stash use command
`git apply path/to/stash.patch`
"""
import os
import re
import hashlib
// ==UserScript==
// @name Big images
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://doodstream.com/search
// @icon https://www.google.com/s2/favicons?sz=64&domain=doodstream.com
// @grant none
// ==/UserScript==
@rayanfer32
rayanfer32 / autogen-example.py
Created October 25, 2023 06:55
autogen-example.py
import autogen
config_list = [{
'api_type': 'open_ai',
'api_base': "http://172.18.240.1:1234/v1",
'api_key': "NULL",
}]
llm_config = {
'request_timeout': 600,