This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Dong { | |
private int lenght; | |
public void setLenght(int l) { | |
this.lenght = l; | |
} | |
public int getLenght() { | |
return this.lenght; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class DicksOnParade { | |
public static void main(String[] args) { | |
Dong aDick = new Dong(); | |
String cockname = aDick.getName(); | |
System.out.println("Dick length: " + cockname.length()); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Why a proper DVCS is awesome. | |
[0:538] callisto:Pong $ git remote add upstream https://github.com/Knifa/Pong.git | |
[0:540] callisto:Pong $ git pull upstream master | |
From https://github.com/Knifa/Pong | |
* branch master -> FETCH_HEAD | |
Merge made by recursive. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:version | |
VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Jan 5 2011 00:48:03) | |
Rustines incluses : 1-98 | |
Compilé par Alexandre Gauthier <[email protected]> | |
Énorme version avec interface graphique GTK2-GNOME. Fonctionnalités incluses (+) ou non (-) : | |
+arabic +autocmd +balloon_eval +browse ++builtin_terms +byte_offset +cindent +clientserver +clipboard +cmdline_compl +cmdline_hist | |
+cmdline_info +comments +conceal +cryptv +cscope +cursorbind +cursorshape +dialog_con_gui +diff +digraphs +dnd -ebcdic +emacs_tags | |
+eval +ex_extra +extra_search +farsi +file_in_path +find_in_path +float +folding -footer +fork() +gettext -hangul_input +iconv | |
+insert_expand +jumplist +keymap +langmap +libcall +linebreak +lispindent +listcmds +localmap -lua +menu +mksession +modify_fname | |
+mouse +mouseshape +mouse_dec +mouse_gpm -mouse_jsbterm +mouse_netterm -mouse_sysmouse +mouse_xterm +multi_byte +multi_lang |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Building shit with multi core | |
============================== | |
Or: make vs make -j9 on a dual Xeon quad core | |
./configure --prefix=$HOME/local --enable-mzschemeinterp --enable-perlinterp=yes --enable-pythoninterp=yes --enable-tclinterp --enable-rubyinterp=yes --enable-cscope --enable-multibyte --enable-fontset --enable-gui=gnome --enable-gnome-check --with-features=huge --with-gnome --with-compiledby="Alexandre Gauthier <[email protected]>" | |
Normal compile: | |
---------------- | |
real 1m12.588s | |
user 1m7.800s |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# | |
# Shittiest script to scrape http://irssi.org/themes and fetch the theme | |
# image screenshots, because frankly, that shit is unviewable. | |
from os import path, mkdir | |
import re | |
import sys | |
import urllib2 | |
from urlparse import urlsplit, urljoin |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for i in `find /var/www -name wp-admin -type d` ; do unset host ; unset dir ; host=$(echo $i | cut -d '/' -f4) && echo -n ${host:?NOHOST} && dir=$(echo $i | sed 's/^\/var\/www\/[^/]\+\/htdocs\(\/[^/]*\)\/\?wp-admin/\1/') && echo ${dir:?NODIR} && sudo webapp-config -U -h ${host} -d $([[ ${dir} = "/" ]] && echo "/") ${dir#/} wordpress 3.0.5 ; if [ $? -ne 0 ] ; then logger -s -- "Webapp-Upgrade FAILED: $host -> $dir" ; fi ; done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Dee's tmux configuration file | |
# start window indexing at one instead of zero | |
set -g base-index 1 | |
# Bell in any window results in term bell | |
set -g bell-action any | |
# Home as default path | |
set -g default-path ~/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#------------------------------------------------------------------------------ | |
# startx-ssh-nested | |
# | |
# Remote connect to 'kitsune.underwares.org' in a nested X server (Xephyr), | |
# tunelling everything through ssh. It's no NX but in a pinch, it will work. | |
# | |
# Copyright (C) 2011-2012, Alexandre Gauthier <[email protected]> | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# $DOTFILESREPOS should be defined by now. | |
# Let's still make an extra effort because it is most useful. | |
if [-z "$DOTFILES"] ; then | |
# ZOMG env var not found. I suspect a failing .boostrap.rc | |
# or some similar horror. Let's manually load the cache. | |
echo -n "PROFILE: WARNING DOTFILES not exported?" 1>&2 | |
if [ -f "$HOME/.bootstrap.rc.cache" ] ; then | |
. "$HOME/.bootstrap.rc.cache" | |
# Check if cache contained proper value |