Skip to content

Instantly share code, notes, and snippets.

View risico's full-sized avatar
💥
compiling

Robert Zimtea risico

💥
compiling
View GitHub Profile
@risico
risico / realdebrid-deduplicator.py
Created April 29, 2024 18:09
real-debrid duplicate remover
import requests
# Constants
API_URL = "https://api.real-debrid.com/rest/1.0/"
API_TOKEN = '[tokenhere]' # Replace this with your actual Real-Debrid API token
def get_headers():
"""Prepare the authorization header."""
return {
'Authorization': f'Bearer {API_TOKEN}'
#include <stdio.h>
#include <math.h>
#include <iostream>
#include <vector>
#include <algorithm>
int main ()
{
// lista cu numere prime
std::vector<int> primes;
@risico
risico / crawler.py
Last active December 3, 2022 14:29
alexa top sites crawler python (requests + beautifulsoup4)
import requests
import time
import sys
import json
from bs4 import BeautifulSoup
HEADERS = {
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0'
}
@risico
risico / himawari.py
Created February 5, 2016 18:10 — forked from willwhitney/himawari.py
Fetch and untile tiled Himawari-8 images from the http://himawari8.nict.go.jp PNG endpoint, then set them as desktop background on OSX
import requests
import sys
from datetime import datetime, timedelta
import pytz
from PIL import Image
from StringIO import StringIO
import os
import logging
# python himawari.py
### Keybase proof
I hereby claim:
* I am risico on github.
* I am risico (https://keybase.io/risico) on keybase.
* I have a public key whose fingerprint is A416 F294 DEF3 BD6A 9E32 F5B3 5FF5 8FEB E72E 2996
To claim this, I am signing this object:
"xxxxxxxx-xxxx-xxxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
var t = 16 * Math.random() | 0, n = "x" == e ? t : 3 & t | 8;
return n.toString(16)
})
@risico
risico / gist:9599215
Created March 17, 2014 13:29
sublime3
{
"always_prompt_for_file_reload": false,
"always_show_minimap_viewport": false,
"animation_enabled": true,
"atomic_save": true,
"auto_close_tags": true,
"auto_complete": true,
"auto_complete_commit_on_tab": false,
"auto_complete_delay": 50,
"auto_complete_selector": "source - comment, meta.tag - punctuation.definition.tag.begin",
" vim: fdm=marker:
" Recommended for vim >= 7; no guarantee of compatibility with earlier versions
" Lucas Oman <me@lucasoman.com>
" --enable-rubyinterp --prefix=/usr --enable-ruby
" Get latest from: http://github.com/lucasoman/Conf/raw/master/.vimrc
" load pathogen
call pathogen#runtime_append_all_bundles()
"set t_Co=256
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body>
</body>
</html>
@risico
risico / sort1mb.cpp
Created October 28, 2012 14:10 — forked from preshing/sort1mb.cpp
Sort one million 8-digit numbers in 1MB RAM
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
typedef unsigned int u32;
typedef unsigned long long u64;
//-------------------------------------------------------------------------
// WorkArea
//-------------------------------------------------------------------------