Skip to content

Instantly share code, notes, and snippets.

View isa's full-sized avatar
☀️
Working, whatd'ya think..

Isa Goksu isa

☀️
Working, whatd'ya think..
View GitHub Profile
@isa
isa / gist:1776881
Created February 9, 2012 02:58
Windows 2000 Source Code
/* Source Code Windows 2000 */
#include "win31.h"
#include "win95.h"
#include "win98.h"
#include "workst~1.h"
#include "evenmore.h"
#include "oldstuff.h"
#include "billrulz.h"
#include "monopoly.h"
function ll
command /opt/homebrew/opt/coreutils/libexec/gnubin/ls --color=auto -Falh --group-directories-first $argv
end
function wget
command wget -cq --show-progress $argv
end
function myip
command dig +short myip.opendns.com @resolver1.opendns.com
@isa
isa / MultiLineString.java
Created March 20, 2011 21:47
Demonstrates how you can do multi-line string literals in java.. It's very good especially for unit-testing.
// More info: http://blog.efftinge.de/2008/10/multi-line-string-literals-in-java.html
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
public class MultilineStringDemo {
public static String S() {
@isa
isa / Dockerfile
Created October 12, 2020 15:00 — forked from davidcarboni/Dockerfile
Flask in Docker - productionised with simplicity
FROM python
# From the python:onbuild image
# For discussion of onbuild variant images see: https://hub.docker.com/_/python/
WORKDIR /usr/src/app
COPY . /usr/src/app
RUN pip install --no-cache-dir -r requirements.txt
# Install uWSGI
RUN pip install uwsgi
@isa
isa / gist:2571012
Created May 1, 2012 20:10
Convert in less than 30 lines
Question: Convert following into the latter data structure in less than 30 lines:
List:
A, B, C
A, C, E
E, F, D
D, A, J
E, D, J
List
@isa
isa / gist:5727570
Created June 7, 2013 07:24 — forked from anonymous/gist:2523336
Change the author info of a git repo
#!/bin/sh
git filter-branch --env-filter '
an="$GIT_AUTHOR_NAME"
am="$GIT_AUTHOR_EMAIL"
cn="$GIT_COMMITTER_NAME"
cm="$GIT_COMMITTER_EMAIL"
if [ "$GIT_COMMITTER_EMAIL" = "your@email.to.match" ]
#!/bin/sh
# This program has two feature.
#
# 1. Create a disk image on RAM.
# 2. Mount that disk image.
#
# Usage:
# $0 <dir> <size>
#
@isa
isa / index.html
Created February 9, 2013 22:08
A CodePen by Isa Goksu. CSS3 Working Analog Clock - Working CSS3 analog clock, using CSS animations and shapes, without any images or JavaScript.
<div id="watch">
<div class="frame-face"></div>
<ul class="minute-marks">
<li></li><li></li><li></li><li></li><li></li><li></li>
<li></li><li></li><li></li><li></li><li></li><li></li>
<li></li><li></li><li></li><li></li><li></li><li></li>
<li></li><li></li><li></li><li></li><li></li><li></li>
<li></li><li></li><li></li><li></li><li></li><li></li>
<li></li><li></li><li></li><li></li><li></li><li></li>
<li></li><li></li><li></li><li></li><li></li><li></li>
@isa
isa / gist:4713014
Created February 5, 2013 08:10
capybara-webkit with xvfb
Webkit needs an X server in order to be able to render. If you're running on any Linux server distribution then you won't have an X server running. You can use the xvfb package to generate a virtual framebuffer for the duration of your tests. For example:
DISPLAY=localhost:1.0 xvfb-run cucumber
If you are running this on a build server you might have something like this:
DISPLAY=localhost:1.0 xvfb-run cucumber -p default -f junit -o cucumber