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 / da-fit!.php
Last active March 22, 2025 17:31
Blaivininkas
<?php
global $FORMAT;
global $DISTRO_FLAG;
$FORMAT = 'bz2';
$DISTRO_FLAG = '!';
$clipFormat = 'mkv';
$designPattern = '';
@pbrilius
pbrilius / college.sh
Last active April 24, 2025 05:49
College!
#!/usr/bin/env sh
cd;
mkdir -v $HOME/.streetz; cd ~/.streetz
touch e-star.txt
echo "https://youtu.be/Z31z1Euz9b4?si=2EZyUdkOQRSR3bxv tArsiIlyEp2q" > ./e-star.txt
cd
mkdir -v ~/.botz
cd $HOME/.botz
@pbrilius
pbrilius / ide.sh
Last active January 11, 2025 14:23
Velnio tuzinas - le Luftwaffe!
#!/usr/bin/env sh
mkdir -vp $HOME/.local/bin
# PTTY exec MS-DOS tinklo MBR e-machines rupa/z
touch $HOME/.local/bin/z.sh
# ZSH_CUSTOM lokacija AD ad-hoc
mkdir -pv $HOME/.local/env.d/scrib.d/x-path.d
touch $HOME/.local/env.d/proxy.env.sh
cd; ln -sv /etc/environment.d/proxy.env.sh .proxy.env.inc.sh
@pbrilius
pbrilius / proxy.env.sh
Last active January 11, 2025 11:43
Ubuntu OS
#!/usr/bin/env sh
PC="."
alias brexit="clear && exit;"
ZSH_THEME="typewritten/typewritten"
@pbrilius
pbrilius / ad-hoc.env.college.inc.sh
Last active January 6, 2025 15:41
Typing les skills!
#!/usr/bin/env sh
source $HOME/"$PC"antigen.zsh
# Load the oh-my-zsh's library.
antigen use oh-my-zsh
# Bundles from the default repo (robbyrussell's oh-my-zsh).
antigen bundle git
antigen bundle command-not-found
@pbrilius
pbrilius / ĮV.sh
Created September 23, 2024 15:03
Starship lxml
#!/usr/bin/env sh
# PB
. $HOME/.local/bin/z.sh
eval "$(starship init bash)"
starship preset jetpack -o ~/.config/starship.toml
LAMP="/opt/lamp"
PATH="$PATH:$LAMP/bin:$HOME/.config/composer/vendor/bin"
@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 March 15, 2025 19:16
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
@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