This file contains hidden or 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 python3 | |
| import requests | |
| #Wallet | |
| api_url = "https://ravencoin.network/api/addr/<your_wallet_addr_here>/?noTxList=1" | |
| balance = requests.get(api_url).json()['balance'] | |
| #Coti | |
| api_url2 = "https://ravencoin.network/api/markets/info" | |
| price = requests.get(api_url2).json()['price_usd'] |
This file contains hidden or 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
| // ==UserScript== | |
| // @name CollapseZimbraAccounts | |
| // @namespace CollapseZimbraAccounts | |
| // @require http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js | |
| // @include https://puthereyourzimbraURL/* | |
| // @version 1 | |
| // @grant none | |
| // @run-at document-end | |
| // ==/UserScript== |
This file contains hidden or 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
| ##Usage: replace with your profile ID and do | |
| ## dconf load /org/gnome/terminal/ < gnome_dark_theme.txt | |
| [legacy] | |
| dark-theme=true | |
| schema-version=uint32 3 | |
| [legacy/profiles:/:34b240d3-9147-4115-bd21-07a7d2ebac1b] | |
| foreground-color='rgb(238,238,236)' | |
| rewrap-on-resize=false |
This file contains hidden or 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
| :global ipaddressfull [/ip address get [find interface="vlan2"] address] | |
| :global ipaddress [:pick $ipaddressfull 0 [:find $ipaddressfull "/"]] | |
| :global actualhostnameip 0.0.0.0 | |
| :do { | |
| :put [:global actualhostnameip [:resolve host.toupdate.com]]; | |
| } on-error={ :log info "update_bind_test: Error retrieving host ip";} | |
| :if ($ipaddress != $actualhostnameip) do={ |
This file contains hidden or 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
| export PS1="\[$(tput bold)\]\[$(tput setaf 1)\][\[$(tput setaf 3)\]\u\[$(tput setaf 2)\]@\[$(tput setaf 4)\]\h \[$(tput setaf 5)\]\$PWD\[$(tput setaf 1)\]]\[$(tput setaf 7)\]\\$ \[$(tput sgr0)\]" |
This file contains hidden or 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 | |
| # -*- coding: utf-8 -*- | |
| import random, json, subprocess, psutil | |
| json_key={} | |
| def cpu_usage(): | |
| cpu_usage = psutil.cpu_percent(interval=2) | |
| json_key['cpu_usage'] = float(cpu_usage) |
This file contains hidden or 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
| db.user.find({first_seen: { $gte:(Number(ISODate("2015-02-01T00:00:00.000Z")).valueOf()/1000), $lte:(Number(ISODate("2015-02-28T00:00:00.000Z")).valueOf()/1000) } }).count() |