Skip to content

Instantly share code, notes, and snippets.

View manvari's full-sized avatar

Maxime Anvari manvari

View GitHub Profile

Keybase proof

I hereby claim:

  • I am manvari on github.
  • I am manvari (https://keybase.io/manvari) on keybase.
  • I have a public key ASD8zWJeXwDmqvrKuWFtQMxgsIZ5NQrF751z98O6SqZRcAo

To claim this, I am signing this object:

@manvari
manvari / cssminifier.py
Last active August 29, 2015 13:56
Python script for cssminifier.com's API
#!/usr/bin/env python
import requests
import argparse
import os
def css_minifier(input):
payload = {"input": input}
headers = {'content-type': 'application/x-www-form-urlencoded',
'content-length': input.__len__()}
@manvari
manvari / cowerupdate
Last active February 24, 2017 18:14
Script to update AUR packages through cower.
#!/usr/bin/env bash
#
# cowerupdate
#
# Script to update AUR packages installed through cower.
#
# Copyright 2013-2015, iceTwy
# Licensed under the WTFPLv2 (http://www.wtfpl.net/about/)
cower_updatesearch_cmd="cower -u"
@manvari
manvari / pyarchaur.py
Last active December 29, 2015 01:09
A simple Python script for the AUR. Uses the AUR API.
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# pyarchaur.py
import requests
import time
import datetime
import argparse