Skip to content

Instantly share code, notes, and snippets.

View pbrilius's full-sized avatar
🏠
Working from home

Povilas Brilius pbrilius

🏠
Working from home
View GitHub Profile
@pbrilius
pbrilius / stem.json
Last active July 17, 2025 19:53
Zed IDE settings hint plėtiniams su Hisense part-time MTF le loom!
// Zed settings
//
// For information on how to configure Zed, see the Zed
// documentation: https://zed.dev/docs/configuring-zed
//
// To see all of Zed's default settings without changing your
// custom settings, run `zed: open default settings` from the
// command palette (cmd-shift-p / ctrl-shift-p)
{
"icon_theme": "Light Charmed Icons",
@pbrilius
pbrilius / jumper.sh
Last active March 2, 2025 11:20
OSS tree lokalus džemperis Ubuntu OS flavour basis
#!/usr/bin/env sh
# PB ERASMUS - povilas-ThinkPad-E565
sudo apt install -y htop neofetch httpie \
clamav xclip gufw \
nala bat aptitude apt-file \
git git-flow \
libreoffice \
gimp epiphany-browser \
@pbrilius
pbrilius / LEMP.md
Last active July 17, 2025 19:26
WAMP basis XP on streetz

LEMP

Analitinis deskriptyvas, iliustruojantis AD feasibility SaaS e-paskolose virtual KVM class foo {}; ir class bar {} extends foo {}.

  1. SoundCloud
  1. Spotify
@Bnux256
Bnux256 / Crostini.md
Last active August 19, 2025 12:00
Chromebook Crostini Python Development Setup

Chromebook Crostini Python Development Setup

Updating the Debian container

sudo apt update
sudo apt dist-upgrade

Installing Nano

sudo apt install nano

Installing Python

sudo apt-get install python3 python3-dev python3-pip\

@enzinier
enzinier / install_font_adobe_source_code_pro.sh
Created March 4, 2017 03:38
Install font Adobe Source Code Pro on Ubuntu 16.04 LTS
#!/bin/sh
# Userland mode (~$USER/), (~/).
# ~/.fonts is now deprecated and that
#FONT_HOME=~/.fonts
# ~/.local/share/fonts should be used instead
FONT_HOME=~/.local/share/fonts
echo "installing fonts at $PWD to $FONT_HOME"
mkdir -p "$FONT_HOME/adobe-fonts/source-code-pro"
@Jeff-Russ
Jeff-Russ / Array Objects in PHP.md
Last active July 8, 2024 08:05
PHP: ArrayObject, IteratorAggregate , ArrayAccess , Serializable , Countable

Array Objects in PHP

Array are not object in PHP but PHP does give us some ways to make object that act like arrays. First, there is the ArrayObject class which is pretty close to what you have with a normal array (you can iterate it, use [] etc.) If you use it as a parent for your class you can add methods to it.

class ArrObj extends ArrayObject{
	// add methods here
@odan
odan / xampp_php7_xdebug.md
Last active September 9, 2025 06:43
Installing Xdebug for XAMPP
@Nervengift
Nervengift / rofi-pulse-sink.sh
Last active August 10, 2022 08:30
Choose pulseaudio sink via rofi/dmenu
#!/usr/bin/bash
# choose pulseaudio sink via rofi or dmenu
# changes default sink and moves all streams to that sink
sink=$(ponymix -t sink list|awk '/^sink/ {s=$1" "$2;getline;gsub(/^ +/,"",$0);print s" "$0}'|rofi -dmenu -p 'pulseaudio sink:' -location 6 -width 100|grep -Po '[0-9]+(?=:)') &&
# alternate version using dmenu:
# sink=$(ponymix -t sink list|awk '/^sink/ {s=$1" "$2;getline;gsub(/^ +/,"",$0);print s" "$0}'|dmenu -p 'pulseaudio sink:'|grep -Po '[0-9]+(?=:)') &&
ponymix set-default -d $sink &&
for input in $(ponymix list -t sink-input|grep -Po '[0-9]+(?=:)');do
@mattparker
mattparker / installing gcov and ltp for php.md
Last active December 3, 2023 05:08
trying to compile php with gcov
vagrant@php7dev:~/php-src$ ./configure --enable-gcov --prefix=/usr/local/php70-gcov

gives, eventually:

configure: error: To enable code coverage reporting you must have LTP installed