Skip to content

Instantly share code, notes, and snippets.

View Alex0007's full-sized avatar

Alex0007

View GitHub Profile
@avalonalex
avalonalex / RSA.py
Last active March 6, 2021 10:46
A implementation of RSA public key encryption algorithms in python, this implementation is for educational purpose, and is not intended for real world use. Hope any one want to do computation like (a^b mode n) effectively find it useful.
#!/usr/bin/env python
import argparse
import copy
import math
import pickle
import random
from itertools import combinations
@paul91
paul91 / GraphicsMagick.sh
Last active September 20, 2020 17:02
How to install GraphicsMagick on CentOS 6.4
#!/bin/bash
# Install build dependencies
yum install -y gcc libpng libjpeg libpng-devel libjpeg-devel ghostscript libtiff libtiff-devel freetype freetype-devel
# Get GraphicsMagick source
wget ftp://ftp.graphicsmagick.org/pub/GraphicsMagick/1.3/GraphicsMagick-1.3.9.tar.gz
tar zxvf GraphicsMagick-1.3.9.tar.gz
# Configure and compile
@staltz
staltz / introrx.md
Last active July 27, 2024 04:59
The introduction to Reactive Programming you've been missing
@bedefaced
bedefaced / vk-image-subst.md
Last active June 11, 2024 16:18
Подмена картинок в посте ВКонтакте

По мотивам https://vk.com/id232967147 / https://vk.com/mgnoveniag

  1. Создаём пост с любой картинкой.
  2. Ждём полгода/год. Открываем газету, выбираем важные события современности.
  3. Редактируем у себя на комплюктере исходную картинку, описывая важные события современности.
  4. Открываем ту старую фотографию из поста ВКонтакте, нажимаем "Редактировать".
  5. Открываем инструменты разработчика в своём браузере и узнаём значение переменной cur.filterSaveOptions.upload_url.
  6. Пишем программу на HTML. Создаём файлик upload.html:
@ericelliott
ericelliott / essential-javascript-links.md
Last active July 18, 2024 15:03
Essential JavaScript Links
@dodying
dodying / favicon.md
Last active April 25, 2024 09:21
[Get Favicon] #api #favicon
  • DuckDuckGo https://icons.duckduckgo.com/ip2/{hostname}.ico
  • Google https://www.google.com/s2/favicons?domain_url={hostname}
  • Yandex https://favicon.yandex.net/favicon/{hostname1}/{hostname2}/
  • allesedv https://f1.allesedv.com/16/{hostname}
  • http://grab-favicons.herokuapp.com/api/v1/grab-favicons/?url={hostname}
  • https://besticon-demo.herokuapp.com/icon?url={hostname}&size=80..120..200
  • http://favicongrabber.com/service-api-reference