Skip to content

Instantly share code, notes, and snippets.

5465465464
from hackertalks.model.meta import Session
from hackertalks.model import License
Session.add(License(name='No license (All rights reserved)', shortname='All rights reserved', abbreviation='(C)', link='', thumbnail='' shareable=False, description='\<p\>By not selecting a license you retain all rights to your media granted by law.\</p\>\<p\>You may want to consider choosing a Creative Commons license to allow more liberal use and sharing of your media, though. There are lots of good reasons to choose a Creative Commons license &#151; not the least of which is that doing so helps enrich the world we live in. Check out \<a href=\"http://creativecommons.org/\" target=\"_BLANK\"\>CreativeCommons.org\</a\> for more information.\</p\>'))
Session.add(License(name='Creative Commons Attribution 2.0', shortname='Attribution', abbreviation='by/2.0', link='http://creativecommons.org/licenses/by/2.0/', thumbnail='http://i.creativecommons.org/l/by/2.0/88x31.png' shareable=True, description='\<p\>Others are free to:\</p\>
#!/bin/bash
#
# Varables
#
hostname="$(hostname)"
toaddrs="root@${hostname} <root@${hostname}>"
fromaddr="root@${hostname} <root@${hostname}>"
@georgyo
georgyo / gist:3310987
Created August 10, 2012 04:09
gpsd info, and distance from NYCR
#!/usr/bin/python
import gps, os, time
session = gps.gps()
session.stream()
session.waiting()
while 1:
os.system('clear')
session.read()
2013-05-27 20:40:57 [INFO] [ForgeModLoader] Forge Mod Loader version 5.2.12.712 for Minecraft 1.5.2 loading
2013-05-27 20:40:57 [INFO] [ForgeModLoader] Java is Java HotSpot(TM) 64-Bit Server VM, version 1.6.0_45, running on Mac OS X:x86_64:10.8.3, installed at /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
2013-05-27 20:40:57 [FINE] [ForgeModLoader] Java classpath at launch is /Users/shammas/Downloads/TechnicLauncher.jar
2013-05-27 20:40:57 [FINE] [ForgeModLoader] Java library path at launch is .:/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java
2013-05-27 20:40:57 [FINE] [ForgeModLoader] Enabling runtime deobfuscation
2013-05-27 20:40:57 [FINEST] [ForgeModLoader] All core mods are successfully located
2013-05-27 20:40:57 [FINEST] [ForgeModLoader] Discovering coremods
2013-05-27 20:40:57 [FINEST] [ForgeModLoader] Found a candidate coremod CoFHCore-1.5.2.2.jar
2013-05-27 20:40:57 [FINEST] [ForgeModLoader] Loading coremod CoFHCore-1.5.2.2.jar
2013-05-27 20:40:57 [WARNING]
@georgyo
georgyo / gist:6143350
Created August 2, 2013 20:49
lib/pg support for net.IPNet, net.IP and net.HardwareAddr
diff --git a/encode.go b/encode.go
index 98b32ca..d8c5b82 100644
--- a/encode.go
+++ b/encode.go
@@ -7,6 +7,7 @@ import (
"github.com/lib/pq/oid"
"strconv"
"time"
+ "net"
)
#!/bin/bash
release=`facter lsbmajdistrelease`
mkdir /root/centos
cd /root/centos
## Stuff to do if we're RHEL6
if [ $release -eq 6 ]; then
class Vlan(Base):
__tablename__ = 'vlans'
vlan = Column(Integer, unique=True)
cidr = Column(CIDR, primary_key=True)
name = Column(String)
def __init__ (self, vlan, cidr, name):
self.vlan = vlan

Keybase proof

I hereby claim:

  • I am georgyo on github.
  • I am georgyo (https://keybase.io/georgyo) on keybase.
  • I have a public key whose fingerprint is D0CF 440A A703 E0F9 73CB A078 82BB 70D5 41AE 2DB4

To claim this, I am signing this object: