Skip to content

Instantly share code, notes, and snippets.

View miawgogo's full-sized avatar
🐧
Processing Gender, Please Wait

nyangogo miawgogo

🐧
Processing Gender, Please Wait
View GitHub Profile
*
/\
/~~\
/~~~~\
/~~~~~~\
/~~~~~~~~\
/~~~~~~~~~~\
/~~~~~~~~~~~~\
/~~~~~~~~~~~~~~\
¯¯¯¯¯¯|_|¯¯¯¯¯¯¯
!help - Uh, this.
!about - Was JBot coded or did it spontaniously come into existence?
!uptime - How long has JBot been continuously running?
!bacon - Delicious bacon.
!bitavg - Bitcoin averages from bitcoinaveages.com
!btcetick - Bitcoin Ticker (BTC-E)
!dogetick - Dogecoin Ticker (BTer)
!link - Know the link for that? Suggest it and make the show better.
!next - When's the next live show?
!schedule - What shows are being recorded live in the next seven days?
9 29 ms 29 ms 30 ms be3035.ccr21.lon01.atlas.cogentco.com [130.117.14.169]
10 29 ms 29 ms 29 ms be2350.ccr41.lon13.atlas.cogentco.com [154.54.39.185]
11 109 ms 109 ms 109 ms be2317.ccr41.jfk02.atlas.cogentco.com [154.54.30.185]
12 115 ms 115 ms 116 ms be2482.ccr21.cle04.atlas.cogentco.com [154.54.27.157]
13 128 ms 125 ms 126 ms be2717.ccr41.ord01.atlas.cogentco.com [154.54.6.221]
14 137 ms 138 ms 137 ms be2831.ccr21.mci01.atlas.cogentco.com [154.54.42.165]
15 149 ms 149 ms 149 ms be2128.ccr21.den01.atlas.cogentco.com [154.54.25.173]
16 161 ms 160 ms 161 ms be2126.ccr21.slc01.atlas.cogentco.com [154.54.25.66]
17 182 ms 180 ms 181 ms be2085.ccr21.sea02.atlas.cogentco.com [154.54.2.197]
18 181 ms 181 ms 180 ms be2084.ccr22.sea01.atlas.cogentco.com [154.54.0.253]
@miawgogo
miawgogo / ifexample.cs
Created February 24, 2016 16:20
If example
if (score == 100){
// your code here
}else if(Question num == 10){
//your code here
}
def say(oldmsg):
newlines = ["\r", "\n"]
for char in newlines:
msg += oldmsg.split(char)
for text in msg:
count +=1
s.send(bytes("PRIVMSG %s :%s\r\n" % (CHANNEL, msg), "UTF-8"))
if count > 10:
break
return True
"""
Traceback (most recent call last):
File "C:\Python34\lib\multiprocessing\pool.py", line 119, in worker
result = (True, func(*args, **kwds))
File "C:\Python34\lib\multiprocessing\pool.py", line 44, in mapstar
return list(map(*args))
File "C:\Python34\lib\site-packages\himawaripy-1.1-py3.4.egg\himawaripy\himawaripy.py", line 56, in download_chunk
with counter.get_lock():
AttributeError: 'NoneType' object has no attribute 'get_lock'
"""
def eightball(info,usrs):
responses = ["It is certain","It is decidedly so","Without a doubt","Yes"," definitely","As I see it"," yes","Most likely","Outlook good","Yes","Signs point to yes","Reply hazy try again","Ask again later","Better not tell you now","Cannot predict now","Concentrate and ask again","Don't count on it","My reply is no","My sources say no","Outlook not so good","Very doubtful"]
msg = random.choice(responses)
say(msg)
import subprocess
cmd = 'irsend LIST "" ""'
proc = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE)
tmp = proc.stdout.read()
print tmp
ntmp = tmp.replace("irsend: ", "")
device = ntmp.split("\r\n")
@miawgogo
miawgogo / Ioans Protips.md
Last active April 6, 2016 22:12
A list of pro tips by ioan
  1. If you need a product key for a windows 8+ device as it didnt come with one and you do not want to download random tools, you can find it in a linux livecd by typing sudo less /sys/firmware/acpi/tables/MSDN in the terminal
#!/bin/sh
case "${1}" in
resume|thaw)
service network-manager restart;;
esac