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 / Material_Theme_Gnome_Terminal.sh
Last active October 6, 2016 09:47
Material Theme for different terminals
#!/usr/bin/env bash
#
# Material Theme
# --- ----
# Based on
#
# OCEANIC NEXT
# --- ----
# Gnome Terminal color scheme install script
# Based on:
@addoull
addoull / onedark.vim
Created September 28, 2016 14:02
Change cterm colors to get a better color shceme
" Vim Color File
" Name: onedark.vim
" Maintainer: https://github.com/joshdick/onedark.vim/
" License: The MIT License (MIT)
" Based On: https://github.com/MaxSt/FlatColor/
" A companion [vim-airline](https://github.com/bling/vim-airline) theme is available at: https://github.com/joshdick/airline-onedark.vim
" +-----------------+
" | Color Reference |
@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()