Skip to content

Instantly share code, notes, and snippets.

Samuel samuelololol

Block or report user

Report or block samuelololol

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
def wrap_class_command(instance, method_name, *args, **kwargs):
return getattr(instance, method_name)(*args, **kwargs)
class ParallelDispatcher(object):
def __init__(self):
self.flow = [] = []
def add_parallel_process(self, instance, method_name, *args, **kwargs):
job = (instance, method_name, args, kwargs)
samuelololol /
Created Nov 12, 2015
comics scrollers backup

Linux Chromium

~/.config/chromium/Default/Local Extension Settings/mccpalfmlnjadfnojmphffidnbemnkec


~/Library/Application Support/Google/Chrome/Default/Local Extension Settings/mccpalfmlnjadfnojmphffidnbemnkec

samuelololol /
Created Apr 9, 2014
add the line 25-30 to make nullprpl protocol plugin can be compiled by the command `make`
Makefile.mingw \
pkgdir = $(libdir)/purple-$(PURPLE_MAJOR_VERSION)
NULLSOURCES = nullprpl.c
AM_CFLAGS = $(st)
samuelololol /
Created Sep 24, 2013
angularjs with yeoman

install yeoman

npm version 1.3.8 > 1.2.10

$ npm install -g yo
$ npm install -g grunt-cli bower

install angularjs from generator/scaffolding

samuelololol / gist:6562545
Created Sep 14, 2013
fix gentoo preserved libs bugs for ffmpeg and oracle-jdk-bin
View gist:6562545

error message:

!!! existing preserved libs: 
>>> package: media-video/ffmpeg-1.0.7 
* - /usr/lib64/ 
* - /usr/lib64/ 
* used by /opt/oracle-jdk-bin- (dev-java/oracle-jdk-bin- 
* - /usr/lib64/ 
* - /usr/lib64/ 
samuelololol / gist:6547247
Last active Dec 22, 2015
setting nodejs environment on centos6.4 as a vmware vm
View gist:6547247
  1. edit MAC address
$ vi /etc/udev/rules.d/70-persistent-net.rules #ATTR{address}=="$MAC", NAME="eth0"
$ vi /etc/sysconfig/network-scripts/ifcfg-eth0 #HWADDR=$MAC, onboot=yes
  1. edit IP address
$ ifconfig eth0 <ip> netmask <netmask>
$ route add default gw <gateway>
samuelololol / gist:6463305
Last active Dec 22, 2015
install angularjs from yeoman
View gist:6463305
  1. install nvm
  2. install npm
  3. install yeoman bower grunt
  sudo npm install -g yo grunt-cli bower karma
  npm install -g generator-angular
  yo angular
  npm install
samuelololol / gist:6453717
Created Sep 5, 2013
PostgresQL TroubleShooting
View gist:6453717


  1. connect psql with local account(pgsql user) without parameter -h localhost : success
  2. connect psql with local account(pgsql user) with parameter -h localhost : fail


  1. use Ident Server
  2. or edit pg_hba.conf, replace ident with md5
samuelololol / gist:6440354
Last active Dec 22, 2015
PostgreSQL on CentOS6
View gist:6440354
samuelololol / gist:6433175
Last active Dec 22, 2015
weechat setting
View gist:6433175

Easy Steps to WeeChat


    /server add freenode -ssl
    /set irc.server.freenode.ssl_dhkey_size 1024
    /connect freenode
You can’t perform that action at this time.