This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- hosts: raspi | |
become: yes | |
vars: | |
timezone_zone: Asia/Kolkata # valid tz database string | |
roles: | |
- role: anxs.timezone | |
post_tasks: | |
- name: get current time | |
shell: date | |
register: tz_op |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// npm install eth-crypto --save | |
// node | |
// es6 | |
// import EthCrypto from 'eth-crypto'; | |
const EthCrypto = require('eth-crypto'); | |
const solc = require('solc'); | |
// create compiled solidity-code | |
const compiled = solc.compile( | |
'contract ExampleContract {...', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copyright 2017 https://tokenmarket.net - MIT licensed | |
// | |
// Run with Node 7.x as: | |
// | |
// node --harmony-async-await deploy.js | |
// | |
let fs = require("fs"); | |
let Web3 = require('web3'); // https://www.npmjs.com/package/web3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from fabric.api import * | |
def query(): | |
run("ls /") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from fabric.api import * | |
from fabtools import require | |
import fabtools | |
import os | |
import traceback | |
@task | |
def setup_tor_ssh(): | |
require.deb.uptodate_index(quiet=True) | |
# Require tor Debian/Ubuntu packages |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/python | |
# Dispatch - synchronize two folders | |
import os | |
import filecmp | |
import shutil | |
from stat import * | |
class Dispatch: | |
''' This class represents a synchronization object ''' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/local/bin/python3 | |
# | |
# feedfinder.py | |
# | |
# Utils for finding feeds | |
# | |
import sys | |
from datetime import datetime |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# | |
# pyget2.py | |
# A python download accelerator | |
# | |
# This file uses multiprocessing along with | |
# chunked/parallel downloading to speed up | |
# the download of files (if possible). | |
# | |
# @author Benjamin Hutchins |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# | |
# Very simple Python script to dump all emails in an IMAP folder to files. | |
# This code is released into the public domain. | |
# | |
# RKI Nov 2013 | |
# | |
import sys | |
import imaplib | |
import getpass |
NewerOlder