Skip to content

Instantly share code, notes, and snippets.

View seveibar's full-sized avatar
💭
twitter dms or mentions to get my attenion!

Severin Ibarluzea seveibar

💭
twitter dms or mentions to get my attenion!
View GitHub Profile
# This is the default .slate file.
# If no ~/.slate file exists this is the file that will be used.
config defaultToCurrentScreen true
config nudgePercentOf screenSize
config resizePercentOf screenSize
alias full move screenOriginX;screenOriginY screenSizeX;screenSizeY
alias lefthalf move screenOriginX;screenOriginY screenSizeX/2;screenSizeY
alias righthalf move screenOriginX+screenSizeX/2;screenOriginY screenSizeX/2;screenSizeY
// Copyright (c) 2015, <your name>. All rights reserved. Use of this source code
// is governed by a BSD-style license that can be found in the LICENSE file.
/// The SiaIExx library.
library SiaIExx;
import 'dart:async';
import 'dart:convert';
import 'package:http/http.dart' as http;
@seveibar
seveibar / feeder.bash
Last active August 29, 2015 14:02
Constantly feeds user input to given command and displays output
#!/bin/bash
# feeder script
# Constantly feeds user input to given command and displays output
fullStr=""
while true; do
read -n 1 -s nextChar
@seveibar
seveibar / repeat.bash
Created March 24, 2014 04:26
Simple script to repeat command specified number of times
#!/bin/bash
for i in $(seq 1 $1)
do
${@:2}
done
@seveibar
seveibar / repeat-click-recorder.rb
Last active August 29, 2015 13:56
Repeatedly clicks a location on the screen then outputs a region of the screen.
class Point
def initialize(x,y)
@x = x
@y = y
end
def x
@x
end
def y
@y
@seveibar
seveibar / roc.bash
Last active August 29, 2015 13:56
Used on my system to run a command on any change in a file in the current directory
#!/bin/bash
# RUN ON CHANGE
if [[ "$unamestr" == 'Linux' ]]; then
while [ 1 ]; do
clear\
&& echo "[Running \"$@\" on files changes in $(pwd) at $(date +'%r')]"\
&& echo ""\
&& echo "$@" > /home/seve/Desktop/lastroc.sh\
@seveibar
seveibar / make_fiddle.rb
Created March 1, 2014 05:41
Used on my system to create a new "fiddle" project, which is used for small web projects
#!/usr/bin/env ruby
mode = "workspace"
style = nil
markup = nil
if ARGV[0] then
mode = "nothing"
style = ARGV[0]