Skip to content

Instantly share code, notes, and snippets.

View ultramookie's full-sized avatar

steve mookie kong ultramookie

View GitHub Profile
#!/bin/env python3
import time
last=0
current=1
added=0
print(last)
while(True):
#!/usr/bin/env python3
import random
def winner(user,states):
ai = random.choice(list(states))
print("\n")
if user == ai:
print("Tie!")
winner = 0
@ultramookie
ultramookie / Postfix: sender-dependent SASL authentication.md
Created October 1, 2019 03:58 — forked from zmwangx/Postfix: sender-dependent SASL authentication.md
Postfix: sender-dependent SASL authentication — relay to multiple SMTP hosts, or relay to the same host but authenticate as different users (e.g., two Gmail accounts)

This is a sequel to "Postfix: relay to authenticated SMTP".

I would like to send mail from two different Gmail accounts using Postfix. Here is the relevant section in the Postfix documentation: Configuring Sender-Dependent SASL authentication.

As a concrete example, here's how to set up two Gmail accounts (only relevant sections of the config files are listed below):

/etc/postfix/main.cf:
    # sender-dependent sasl authentication
    smtp_sender_dependent_authentication = yes

sender_dependent_relayhost_maps = hash:/etc/postfix/sender_relay

@ultramookie
ultramookie / docker-compose.yml
Created December 16, 2018 03:42
docker-compose.yml for launching searX
version: '2'
services:
searx:
ports:
- "127.0.0.1:8888:8888"
restart: always
image: cyrilix/searx
container_name: searx
environment:
- BASE_URL="https://yourdomain.tld"
@ultramookie
ultramookie / gtk.css
Created June 11, 2017 17:58
Reduce the Gnome 3 bars... ~/.config/gtk-3.0/gtk.css
/* shrink headerbars (don't forget semicolons after each property) */
headerbar {
min-height: 0px;
padding-left: 2px; /* same as childrens vertical margins for nicer proportions */
padding-right: 2px;
background-color: #2d2d2d;
}
headerbar entry,
headerbar spinbutton,
import json
import urllib
import urllib2
import time
""" Nike plus activity log
https://developer.nike.com
Output:
-- May --
<?php
// dertyn main library
// steve "mookie" kong
// http://ultramookie.com
//
// licensed under gplv3
// http://www.gnu.org/licenses/gpl-3.0.html
error_reporting(E_ERROR | E_PARSE);