Skip to content

Instantly share code, notes, and snippets.

View admix's full-sized avatar
🎯
Focusing

Alex Snurnikov admix

🎯
Focusing
View GitHub Profile
@admix
admix / remove_from_chain_notifications.py
Last active April 9, 2018 18:49
Remove email from chain_notifications
from archetypes import entities
from archetypes.services import sqlservice
def remove_from_chain_notifications(email):
with sqlservice() as db:
notif = db.fetch_one(entities.Fact, key='chain_notifications')
for n in notif.value['email_details']:
print n['email_types']
for t in n['to']:
@admix
admix / ansible-summary.md
Created February 1, 2018 18:02 — forked from andreicristianpetcu/ansible-summary.md
This is an ANSIBLE Cheat Sheet from Jon Warbrick

An Ansible summary

Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)

Configuration file

intro_configuration.html

First one found from of

// Place your settings in this file to overwrite the default settings
{
"editor.fontSize": 16,
"editor.fontFamily": "Consolas",
"editor.tabSize": 2,
"editor.fontLigatures": true,
"editor.wrappingColumn": 115,
"files.exclude": {
"**/.git": true,
"**/.svn": true,
@admix
admix / JsonNodeRowMapper.java
Last active November 1, 2016 20:29 — forked from kdonald/JsonNodeRowMapper.java
Auto Mapping a JDBC ResultSet to JSON (Groovy Version)
package ca.admix.parsers.util
import groovy.util.logging.Slf4j
import org.springframework.stereotype.Component
import org.springframework.jdbc.support.JdbcUtils
import java.sql.ResultSet
import java.sql.ResultSetMetaData
import java.sql.SQLException
/** Created by admix on 2016-10-31. **/
@admix
admix / gist:07f3b6a8fdac7614ca3270784e44b91c
Created March 31, 2016 18:00 — forked from saetia/gist:1623487
Clean Install – OS X 10.11 El Capitan

OS X Preferences


most of these require logout/restart to take effect

# Enable character repeat on keydown
defaults write -g ApplePressAndHoldEnabled -bool false

# Set a shorter Delay until key repeat