Skip to content

Instantly share code, notes, and snippets.

View peel's full-sized avatar

Piotr Limanowski peel

View GitHub Profile
@peel
peel / gist:ca8c5b25efbe3052fdb5
Last active May 11, 2022 21:17
SJ4000 WIFI Protocol

#Base URL http://192.168.1.254

File Management Panel

GET / file management panel

Configuration options

all options follow the template: /?custom=1&cmd={Command}&par={Option} Command - setting/mode of the device

@peel
peel / forgetting-java.md
Last active April 27, 2022 11:39
Java is old. Java is verbose. Java is ugly. Java is mocked and ridiculed but everyone and their dog. Hell, Java is dead. Well it's not but I'm preaching to the choir. Or am I? However convenient to say so, it's not exclusively Oracle to blame for Java's current state of the art. Java developers are guilty of laziness (the wrong kind), not questi…

slidenumbers: true footer: @peel #tricityjug

^ Abstract: Java is old. Java is verbose. Java is ugly. Java is mocked and ridiculed but everyone and their dog. Hell, Java is dead. Well it's not but I'm preaching to the choir. Or am I? However convenient to say so, it's not exclusively Oracle to blame for Java's current state of the art. Java developers are guilty of laziness (the wrong kind), not questioning the tools they use (wrong again), following patterns (pretty much the right kind) they believe are blessed upon them yadda yadda yadda. Yet the communities around languages we find to be even lesser than Java offer world of a difference. The talk shows the tools, experiences and mindset we lack in the Java world. The virtues present elsewhere but needed here for Java to wipe the "enterprise-grade" solutions off the face of the world. Let's do this people. Let's do the right thing and get rid of the "enterprise" Java developers.

^ Contents: PART I: Is Java Dead? Tries to find the right angle at why

# nix-shell / nix run fails due to "unexpected end-of-file"
# it seems to be failing once starting up shell
bash-4.4$ nix-shell -p nix-info --run "nix-info -m"
these paths will be fetched (0.50 MiB download, 3.24 MiB unpacked):
/nix/store/1xa9zfa3l38wwb2q80wflqfdhsr0gsvd-bash-interactive-4.4-p23-doc
/nix/store/5c5gkamjgn6g4ya7pq7ly5h6240n8yzg-ed-1.14.2
/nix/store/6xvgmf7b38844my7jz34smw0mjkrmard-bash-interactive-4.4-p23-dev
/nix/store/84gsb3q644hwhp5ra15fb3x9669br9ib-patch-2.7.6
/nix/store/8qai18dv0nqyw6s61g9p91n8684rnlg8-stdenv-darwin
accepted connection from pid <unknown>, user peel
objc[30266]: +[__NSPlaceholderArray initialize] may have been in progress in another thread when fork() was called.
objc[30266]: +[__NSPlaceholderArray initialize] may have been in progress in another thread when fork() was called. We cannot safely call it or ignore it in the fork() child process. Crashing instead. Set a breakpoint on objc_initializeAfterForkError to debug.
-bash-3.2$ nix-store -r /nix/store/dz3gy7gqn1z5sva4x0gzkr67givl5m0v-nix-2.2pre6526_9f99d624 && /nix/store/dz3gy7gqn1z5sva4x0gzkr67givl5m0v-nix-2.2pre6526_9f99d624/bin/nix doctor
these paths will be fetched (1.30 MiB download, 5.93 MiB unpacked):
/nix/store/dz3gy7gqn1z5sva4x0gzkr67givl5m0v-nix-2.2pre6526_9f99d624
/nix/store/kpl066g4nw98rj3c6csxjxjf6v9mnw3k-nix-2.2pre6526_9f99d624-man
copying path '/nix/store/kpl066g4nw98rj3c6csxjxjf6v9mnw3k-nix-2.2pre6526_9f99d624-man' from 'https://cache.nixos.org'...
copying path '/nix/store/dz3gy7gqn1z5sva4x0gzkr67givl5m0v-nix-2.2pre6526_9f99d624' from 'https://cache.nixos.org'...
warning: you did not specify '--add-root'; the result might be removed by the garbage collector
/nix/store/dz3gy7gqn1z5sva4x0gzkr67givl5m0v-nix-2.2pre6526_9f99d624
Store uri: daemon
Last login: Tue Nov 13 19:51:03 on ttys007
-bash: _have: command not found
-bash: _have: command not found
-bash: _have: command not found
-bash: _realcommand: command not found
-bash: _realcommand: command not found
-bash: _realcommand: command not found
-bash: _realcommand: command not found
-bash: _realcommand: command not found
-bash: _realcommand: command not found
@peel
peel / openinvim
Created February 10, 2013 12:42
Open in Vim automator script
on run {input, parameters}
if (count of input) > 0 then
tell application "System Events"
set runs to false
try
set p to application process "iTerm"
set runs to true
end try
end tell
tell application "iTerm"
{ stdenv, lib, fetchurl, undmg }:
let
appName = "Firefox";
in
stdenv.mkDerivation rec {
name = "${lib.toLower appName}-darwin-${version}";
version = "57.0b7";
dlName = name;
#!/usr/bin/env bash
#install dependencies
brew install gstreamer gst-plugins-good gst-plugins-ugly gst-python
#menubar ui
brew cask install kmbmpdc
#mopidy plus spotify and web ui
pip install mopidy mopidy-spotify mopidy-iris
#set spotify credentials
@peel
peel / keybase.md
Created February 11, 2017 10:59
keybase.md

Keybase proof

I hereby claim:

  • I am peel on github.
  • I am peel (https://keybase.io/peel) on keybase.
  • I have a public key ASCn60IC2NPQNIw6_-82br-Z27fYMMfaJ0kzx61aFFmcbAo

To claim this, I am signing this object: