Skip to content

Instantly share code, notes, and snippets.

🍀

No GUI evaryont

🍀
Block or report user

Report or block evaryont

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@evaryont
evaryont / github_starred.gql
Created Sep 18, 2019
GraphQL query for Github to get N recently starred repos, along with their langauges/topics
View github_starred.gql
query RecentlyStarredRepos($numRepos: Int, $cursor: String) {
viewer {
starredRepositories(last: $numRepos, before: $cursor) {
edges {
starredAt
cursor
node {
id
name
description
@evaryont
evaryont / status_play.gql
Created Sep 18, 2019
Github GraphQL query to change your Github status
View status_play.gql
query GetCurrentStaus {
viewer {
login
status {
emoji
message
}
}
}
@evaryont
evaryont / xmas_tree.rb
Created Dec 22, 2018 — forked from mehdi-farsi/xmas_tree.rb
A light-up christmas tree in your terminal
View xmas_tree.rb
class ChristmasTree
FIRST_LINE_LENGTH = 1
LEVEL_HEIGHT = 3
COLORS = ["\033[0m", "\033[0m", "\033[0m", "\033[31m", "\033[33m", "\033[32m", "\033[34m"] # red, yellow, blue
def initialize(levels)
@levels = levels.to_i < 1 ? 3 : levels.to_i
@last_line_length = 5 + ((@levels - 1) * 2)
@current_line_length = FIRST_LINE_LENGTH
end
@evaryont
evaryont / telegraf-1.5.1-sqlserver-stats.txt
Created Jul 20, 2018
telegraf --test --input-filter=sqlserver runs
View telegraf-1.5.1-sqlserver-stats.txt
* Plugin: inputs.sqlserver, Collection 1
> Log\ size\ (bytes),host=devsqldist,environment=Development,owner=$MACHINE_OWNER,role=$MACHINE_ROLE,type=Database\ size,servername=DEVSQLDIST,source=sqlserver model=8388608i,Repl_Counters=8388608i,ReportServer=8388608i,ReportServerTempDB=8388608i,Test=8388608i,tempdb=142606336i,msdb=20578304i,distribution=143654912i,master=2097152i 1532122345000000000
> Rows\ size\ (bytes),role=$MACHINE_ROLE,host=devsqldist,type=Database\ size,servername=DEVSQLDIST,source=sqlserver,environment=Development,owner=$MACHINE_OWNER distribution=550502400i,model=8388608i,msdb=30474240i,tempdb=301989888i,ReportServerTempDB=8388608i,ReportServer=8388608i,Repl_Counters=8388608i,Test=8388608i,master=4653056i 1532122345000000000
> Rows\ size\ (8KB\ pages),role=$MACHINE_ROLE,servername=DEVSQLDIST,type=Database\ size,source=sqlserver,host=devsqldist,environment=Development,owner=$MACHINE_OWNER ReportServer=1024i,ReportServerTempDB=1024i,tempdb=4096i,distribution=67200i,msdb=3720i,Test=1024i,master=
View kodi_crashlog-20180528_011039.log
############## Kodi CRASH LOG ###############
################ SYSTEM INFO ################
Date: Mon May 28 01:10:39 UTC 2018
Kodi Options:
Arch: x86_64
Kernel: Linux 4.16.11-1-ARCH #1 SMP PREEMPT Tue May 22 21:40:27 UTC 2018
Release: Arch Linux
############## END SYSTEM INFO ##############
@evaryont
evaryont / readme.md
Last active Mar 27, 2016
factorio server administration, on centos7
View readme.md

Installing

Go to http://www.factorio.com/download-headless/stable and download the latest stable. As of this writing, that would be 0.12.26

The headless server is a tarball of a (mostly?) statically-compiled server along with data. You will need to extract it and put it into a directory. Since this is a 3rd-party program, not managed by the package manager, I feel like /opt is a good choice.

tar xf factorio_headless_x64_0.12.26.tar.gz
sudo mv factorio /opt
sudo chown -R root:root /opt/factorio
View download-paid-gmusic
#!/usr/bin/python2
# A fairly simple script to download all of the music you paid for on Google Play Music to your hard drive. Not smart
# at all, will redownload the music if you run it a second time.
#
# Meant to run against gmusicapi v7. The next release shouldn't need the Paidmanager subclass hack.
import gmusicapi
from IPython import embed
import mutagen
View gulpjs.log
> codeparrot@0.0.1 gulp /home/colin/code/CodeParrot
> gulp "javascript_dev"
[16:58:38] Using gulpfile ~/code/CodeParrot/Gulpfile.js
[16:58:38] Starting 'javascript_dev'...
{ [Error: Cannot find module './cryptoRand' from '/home/colin/code/CodeParrot/node_modules/adjective-adjective-animal/dist']
stream:
Labeled {
_readableState:
@evaryont
evaryont / index.md
Created Sep 30, 2015
configuring Cyrclebot
View index.md

Configuration

All configuration is done in the config.json file.

{
  "key": "mumble.key",
  "cert": "mumble.cert",
  "serverAddress": "mumble://example.com:64738",
  "youtubeKey": "SERVER_API_KEY_GOES_HERE",
@evaryont
evaryont / play.rb
Last active Sep 21, 2015
mumble razzle hatbot play whole function
View play.rb
module Mumble
class Client
def conn
@conn
end
def config
@config
end
end
end
You can’t perform that action at this time.