Skip to content

Instantly share code, notes, and snippets.

cp /etc/hosts /etc/hosts.backup &&
for h in $( echo 'blip.pl
flaker.pl
ign.com
joemonster.org
jogger.pl
onet.pl
polygamia.pl
wyborcza.pl
wykop.pl
#!/bin/bash
dd=`pwd`
pi=`ps -eo pid,command | grep flashplayer |grep -v grep | cut -f1 -d ' '`
if [ "$pi" = "" ] ;
then
pi=`ps -eo pid,command | grep flashplayer |grep -v grep | cut -f2 -d ' '`
fi
#!/bin/bash
#login i haslo do bramki http://smsfree.pl/
smslogin=""
smspass=""
numer=""
msg="przyklad wiadomosci"
web="http://pb.mat.ug.edu.pl/analiza/"
package lab02
object Cw {
import sys.error
def pred(x: Int) = x-1;
def succ(x: Int) = x+1;
def add(x: Int,y: Int) :Int =if(x != 0) add(pred(x),succ(y)) else y
# -*- coding: utf-8 -*-
# Copyright Google Inc. 2010 All Rights Reserved
require 'open-uri'
require 'json'
require 'active_support/core_ext'
require 'net/http'
ELEVATION_BASE_URL = 'http://maps.google.com/maps/api/elevation/json'
CHART_BASE_URL = 'http://chart.apis.google.com/chart'
# Please make this file available to others
# by sending it to <lirc@bartelmus.de>
#
# this config file was automatically generated
# using lirc-0.8.2(default) on Sun Aug 12 02:13:30 2007
#
# contributed by Ben Adler @ gmx dot net
#
# brand: Medion / X10 (part of http://www.medion.de/md8824/)
# remote control: RF Vista Remote Control (OR24V)
@mdoff
mdoff / robot.js
Created December 4, 2012 13:05
perkuno
//FightCode can only understand your robot
//if its class is called Robot
var Robot = function(robot) {
robot.clone();
};
Robot.prototype.onIdle = function(ev) {
var robot = ev.robot;
@mdoff
mdoff / gist:7930341
Created December 12, 2013 15:59
simple chroot commands
mount --bind /dev /mnt/chroot-system/dev
mount --bind /proc /mnt/chroot-system/proc
mount --bind /sys /mnt/chroot-system/sys
cp /etc/resolv.conf /mnt/chroot-system/etc/resolv.conf
chroot /mnt/chroot-system su
mkdir new-project
cd new-project
git init
npm init
npm install webpack --global
npm install webpack --save-dev