Skip to content

Instantly share code, notes, and snippets.

@addoull
addoull / api.html
Created January 18, 2018 22:03 — forked from xmrig/api.html
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/css/bootstrap.min.css" integrity="sha384-/Y6pD6FV/Vv2HJnA6t+vslU6fwYXjCFtcEpHbNJ0lyAFsXTsjBbfaDjzALeQsN6M" crossorigin="anonymous">
<title>XMRig API test</title>
@addoull
addoull / rm_message.sh
Created December 19, 2017 00:47 — forked from jigzstar/rm_message.sh
Zimbra - Delete a message by subject from all email accounts in a file
#!/bin/bash
# rm_message.sh [email protected] subject
# create temp_file prior to calling this zmprov -l gaa | grep domain.com > /tmp/temp_email
if [ -z "$2" ]; then
echo "usage: rm_message.sh [email protected] <subject>"
exit 0
else
addr=$1
subject=$2
@addoull
addoull / 01_myfilters.py
Created May 14, 2017 01:49 — forked from sivy/01_myfilters.py
MD5 template filter for Django
from django import template
import hashlib
register = template.Library()
#
# {{ "some identifier"|md5 }}
# g87g98ht02497hg349ugh3409h34
#
@register.filter(name='md5')
@addoull
addoull / BlogController.php
Last active December 29, 2015 16:08 — forked from tobysteward/BlogController.php
Laravel AJAX Pagination with JQuery
<?php
class BlogController extends Controller
{
/**
* Posts
*
* @return void
*/
public function showPosts()