I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.
These are the steps I went through to set up an SSL cert.
from functools import wraps | |
def simple_decorator(func): | |
def __wrapper(*args, **kwargs): | |
return func(*args, **kwargs) | |
return __wrapper | |
def with_wraps(func): | |
@wraps(func) | |
def __wrapper(*args, **kwargs): |
package main | |
import ( | |
"bytes" | |
"fmt" | |
"net" | |
"strings" | |
) | |
func main() { |
package main | |
import ( | |
"bytes" | |
"fmt" | |
"net" | |
"strings" | |
) | |
func main() { |
""" | |
Remove likes (favorite) from your tweets using twitter API | |
you need to install twitter-client for python to use this code: | |
pip install python-twitter ( more info https://github.com/bear/python-twitter) | |
to use this you need to generate authntication tokens for your account | |
find more info on (https://developer.twitter.com/en/docs/basics/authentication/guides/access-tokens) | |
""" | |
import asyncio |
$ curl -i example.com/api/article/4 | |
HTTP/1.1 200 OK | |
Date: Sat, 09 Aug 2018 16:09:50 GMT | |
Last-Modified: Sat, 02 Aug 2018 12:02:47 GMT | |
Content-Type: application/json | |
{ | |
id: 4, | |
content: "Heres a blog article, it has lots of content...", |
from functools import wraps | |
def simple_decorator(func): | |
def __wrapper(*args, **kwargs): | |
return func(*args, **kwargs) | |
return __wrapper | |
def with_wraps(func): | |
@wraps(func) | |
def __wrapper(*args, **kwargs): |
from PIL import Image | |
img = Image.open("image_name.jpg") | |
if img.size[0] == 800: | |
new_size = (0, 0 , img.size[0] , img.size[1] - 24) | |
else: | |
new_size = (0, 0 , img.size[0] , img.size[1] - 12) | |
new_image = img.crop(new_size) | |
new_image.save("new_size_image.jpg") |
I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.
These are the steps I went through to set up an SSL cert.
''' | |
Python Sample Code for axonsms.com SMS Panel | |
Mohammad Reza Kamalifard [email protected] | |
To Use this code you need to install suds from pip | |
$> pip install suds |
#itmard git alias v0.4 | |
alias gis='git status' | |
alias gil='git log' | |
alias gull='git pull origin ' | |
alias gica='git commit -a -m ' | |
alias gush='git push origin ' | |
alias granch='git branch ' | |
alias gich='git checkout ' | |
alias gif='git diff' | |
alias gifa='git fetch --all' |