Skip to content

Instantly share code, notes, and snippets.

View gaybro8777's full-sized avatar
💭
Im not gay. I'm just getting back at my dad for not getting me an xbox

Michael Corrado gaybro8777

💭
Im not gay. I'm just getting back at my dad for not getting me an xbox
View GitHub Profile
@gaybro8777
gaybro8777 / Get-DscConfigurationStatus
Created November 22, 2018 22:58 — forked from gbrayut/Get-DscConfigurationStatus
Issues with Missing DSC Schedules Tasks
#Status after configuring LCM and running Update-DscConfiguration
PS C:\windows\system32\Configuration> Get-DscConfigurationStatus
Status StartDate Type Mode RebootRequested NumberOfResources
------ --------- ---- ---- --------------- -----------------
Success 2015/04/17 19:40:47 Initial Pull False 19
#Status after restarting the server
PS C:\windows\system32> Get-DscConfigurationStatus
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
import time
import random
import sys
def print_same_line(text):
sys.stdout.write('\r')
sys.stdout.flush()
@gaybro8777
gaybro8777 / githubissues
Created April 21, 2019 12:52 — forked from kingofhawks/githubissues
export github issues to CSV files
__author__ = 'simon'
# coding=gbk
def export_csv(repository,target_csv):
import requests
resp = requests.get(url=repository)
#print resp.text
data = resp.json()
#print data
import io
import os
import requests
import subprocess
import zipfile
EXIFTOOLDIR = "C:\\tools\\exiftool"
EXIFTOOLURL = "https://www.sno.phy.queensu.ca/~phil/exiftool/"
EXIFTOOLVER = "http://owl.phy.queensu.ca/~phil/exiftool/ver.txt"
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
// create a bookmark and use this code as the URL, you can now toggle the css on/off
// thanks+credit: https://dev.to/gajus/my-favorite-css-hack-32g3
javascript: (function() {
var domStyle = document.createElement("style");
domStyle.append(
'* { color:#0f0!important;outline:solid #f00 1px!important; background-color: rgba(255,0,0,.2) !important; }\
* * { background-color: rgba(0,255,0,.2) !important; }\
* * * { background-color: rgba(0,0,255,.2) !important; }\
* * * * { background-color: rgba(255,0,255,.2) !important; }\
* * * * * { background-color: rgba(0,255,255,.2) !important; }\
@meggart
meggart / Pangeo.ipynb
Last active October 16, 2022 21:43
Example of using ESDL with Pangeo data
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@scottwater
scottwater / base_webhook.json
Last active October 3, 2020 04:11
KickoffLabs WebHooks
{
"__event": "the_webhook_event",
"avatar": "https://d1ts43dypk8bqh.cloudfront.net/v1/avatars/310c4ac2-7026-4700-afde-496b1d217b03",
"counter": 252,
"contest_score": 300,
"contest_score_rank": 19588,
"custom_fields": {
},
"email": "[email protected]",
// create a bookmark and use this code as the URL, you can now toggle the css on/off
// thanks+credit: https://dev.to/gajus/my-favorite-css-hack-32g3
javascript: (function() {
var domStyle = document.createElement("style");
domStyle.append(
'* { color:#0f0!important;outline:solid #f00 1px!important; background-color: rgba(255,0,0,.2) !important; }\
* * { background-color: rgba(0,255,0,.2) !important; }\
* * * { background-color: rgba(0,0,255,.2) !important; }\
* * * * { background-color: rgba(255,0,255,.2) !important; }\
* * * * * { background-color: rgba(0,255,255,.2) !important; }\
@gaybro8777
gaybro8777 / Makefile
Created August 9, 2020 23:10 — forked from lindenb/Makefile
Forum: Programming language use distribution from recent programs / articles https://www.biostars.org/p/251002/#251056 pubmed language code
.PHONY:all
JVARKIT_HOME?=${HOME}/src/jvarkit-git/dist
all: graph.png
graph.png : biostar251002.tsv script.gnuplot
grep -v YEAR $< | awk -F ' ' '{printf("%s\t%s\n",$$4,$$2);}'| tr " " "_" | grep -v null |\
sed 's/$$/ 1/'| ${HOME}/src/cmd-utils/src/yxv2table -a sum -n 0 | sed 's/^#/YEAR/' > graph.tsv && \
gnuplot script.gnuplot
rm -f graph.tsv