Skip to content

Instantly share code, notes, and snippets.

View z5ottu's full-sized avatar
👾
hopeful

Szloboda Zsolt z5ottu

👾
hopeful
View GitHub Profile
@z5ottu
z5ottu / PS4 PKGs CUSA1-10000.csv
Created May 25, 2025 22:25 — forked from hosamn/PS4 PKGs CUSA1-10000.csv
PS4 - Single PKG Downloads - CUSA1-10000
We can't make this file beautiful and searchable because it's too large.
Parental Level,Game Title,File Offset,PlayStation PRO Support,Current Version,Instant Download,Package Size,PlayStation VR,Piece,SHA1 Hash,Title ID,Play Together
3,THE PLAYROOM,0,No,1.07,http://gs2.ww.prod.dl.playstation.net/gs2/ppkgo/prod/CUSA00001_00/9/f_ef965b581d35637dabc96366f29f1f0ece58c8fa9158b0eb7de9407ae72272e8/f/IP9100-CUSA00001_00-PLAYROOM00000000-A0107-V0100.pkg,34.9MB,No,0,22774b6c655f47dffce0eb7e15c5e865dce6a849,CUSA00001_00,
9,KILLZONE SHADOW FALL,0,No,1.81,http://gs2.ww.prod.dl.playstation.net/gs2/ppkgo/prod/CUSA00002_00/58/f_0882efa770fbf5b9a03b4decce248e8f07fd9585cbe43c44791799952c62fd14/f/EP9000-CUSA00002_00-KZ4RELEASE000041-A0181-V0100.pkg,2.9GB,No,0,552b7127dac3ee8ab5ce2ae051f6436c3ec605fc,CUSA00002_00,
7,inFAMOUS Second Son,0,Yes,1.07,http://gs2.ww.prod.dl.playstation.net/gs2/ppkgo/prod/CUSA00004_00/28/f_2881c3732328a643917aeb4c1e73b916c1d6baa7ea09e2e81f33d5f139ea9449/f/EP9000-CUSA00004_00-SECONDSONSHIP000-A0107-V0100.pkg,3.7GB,No,0,0538bdff843286013877ab92e5dc936b1407ddcb,CUSA00004_00,
@z5ottu
z5ottu / dets_to_ets_init.livemd
Created March 8, 2025 01:46 — forked from hugobarauna/dets_to_ets_init.livemd
Hydrate ETS from DETS using an init GenServer - Livebook Notebook - free sample from Elixir Patterns book

Hydrate ETS from DETS using an init GenServer

Mix.install([
  {:kino, "~> 0.6.2"},
  {:telemetry, "~> 1.2.1"}
])

This is a free sample from the Elixir Patterns book

@z5ottu
z5ottu / ListMemcached.md
Created May 20, 2024 14:03 — forked from abullrd/ListMemcached.md
List Memcached Keys
@z5ottu
z5ottu / erlang-elixir-on-amazon-linux.md
Last active May 25, 2020 11:34 — forked from techgaun/erlang-elixir-on-amazon-linux.md
Running elixir 1.8.1 on amazon linux

Script

set your locale:

add these lines to /etc/environment

LANG=en_US.utf-8
LC_ALL=en_US.utf-8
@z5ottu
z5ottu / tsung.emqx.mqtt.example.xml
Last active February 24, 2020 18:57
Tsung emqx mqtt benchmark example with username and password
<?xml version="1.0"?>
<!DOCTYPE tsung SYSTEM "/usr/local/share/tsung/tsung-1.0.dtd">
<tsung loglevel="error" version="1.0">
<!-- t1 and t2 host record should be in /etc/hosts file (on t1,t2 machnines too) -->
<clients>
<client host="t1" weight="1" cpu="4" maxusers="51000">
</client>
<client host="t2" weight="1" cpu="4" maxusers="51000">
</client>
</clients>
@z5ottu
z5ottu / ESP32_HID.ino
Created May 17, 2019 15:02 — forked from sabas1080/ESP32_HID.ino
Example of HID Keyboard BLE with ESP32
include <BLEDevice.h>
#include <BLEUtils.h>
#include <BLEServer.h>
#include "BLE2902.h"
#include "BLEHIDDevice.h"
#include "HIDTypes.h"
#include "HIDKeyboardTypes.h"
#include <driver/adc.h>
BLEHIDDevice* hid;
@z5ottu
z5ottu / util_convert_cowboy_ipv6_string_to_string.ex
Created March 1, 2019 16:08
Erlang cowboy IPv6 address string conversion to readable string in Elixir.
defmodule Utils.Cowboy do
use Bitwise
#
# ipv4 cowboy string example: "0.0.0.0.0.65535.20060.31747"
# ipv6 cowboy string example: "10754.43916.45826.36224.35230.44219.15941.63302"
def erlangCowboyIpv6StringToString(string) do
if String.starts_with?(string, "0.0.0.0.0.65535") do
String.split(string,".") |> Enum.take(-2) |> Enum.map(fn(x)-> String.to_integer x end) |> Enum.map(fn(x)-> [x >>> 8,x &&& 255] end) |> List.flatten |> Enum.join(".")
Top 10 DTrace scripts for Mac OS X
Since version 10.5 “Leopard”, Mac OS X has had DTrace, a tool used for performance analysis and troubleshooting. It provides data for Apple’s Instruments tool, as well as a collection of command line tools that are implemented as DTrace scripts. I’m familiar with the latter as I wrote the originals for the DTraceToolkit, which Apple then customized and enhanced for Mac OS X where they are shipped by default (great!). I use them regularly to answer this question:
why is my MacBook slow?
I work in an office where everyone has MacBook Pros, and “why is my MacBook slow?” is a common question. Applications can become slow or unresponsive while waiting for CPU work, memory requests or disk I/O to complete.
For people who try to ignore the slowdown, the question can become:
why is my MacBook fan so loud?
@z5ottu
z5ottu / riak_mapreduce_map_for_groupby.erl
Last active May 25, 2018 15:20
Riak Mapreduce map phase for reduce_plist_sum. Together is like sql "count" - "group by" functionality
%% -------------------------------------------------------------------
%%
%% riak_mapreduce_map_for_groupby:
%% Map phase for reduce_plist_sum.
%% Together is like sql "count" - "group by" functionality)
%%
%% Copyright (c)2018, Szloboda Zsolt, [email protected] All Rights Reserved.
%%
%% This file is provided to you under the Apache License,
%% Version 2.0 (the "License"); you may not use this file
-module(riak_postcommit_hook_example).
-export([postcommitcounter/1, postcommitmapcounter/1]).
%% Refreshing counters from commithook is very expensive!
%%
%% requirements: bucket-type: maps(Type::map), bucket-type: counters(Type::counters)
%%
%% riak-admin bucket-type create maps '{"props":{"datatype":"map"}}'
%% riak-admin bucket-type activate maps
%% riak-admin bucket-type create counters '{"props":{"datatype":"counter"}}'