Skip to content

Instantly share code, notes, and snippets.

View risico's full-sized avatar
💥
compiling

Robert Zimtea risico

💥
compiling
View GitHub Profile
" 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
@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
#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 / 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}'