Skip to content

Instantly share code, notes, and snippets.

View byk0t's full-sized avatar

Pavel K. byk0t

  • Belarus, Spain, Europe, Earth
View GitHub Profile
@byk0t
byk0t / killer
Created September 19, 2013 07:59
Snippet for killing several unix processes
kill $(ps aux | grep '[p]hp /var/www/html/filename.php' | awk '{print $2}')
@byk0t
byk0t / delete-tons-files
Last active December 23, 2015 10:19
This command deletes tons of files from current directory
find . -type f -delete
@byk0t
byk0t / useful-links
Last active December 23, 2015 10:49
useful links
function PhysicsBody( aNode ) {
this.userData = aNode;
}
PhysicsBody.prototype.pbMethod = function () {};
function DynamicBody( aNode ) {
PhysicsBody.call( this, aNode );
}
@byk0t
byk0t / php-main
Created February 6, 2014 12:52
php analogue of python's `if __name__ == "__main__"`
#!/usr/bin/php
<?php
if( basename($argv[0]) == basename(__FILE__) ) {
echo "\n-----main------\n\n";
}
?>
@byk0t
byk0t / smartsvn-unity-launcher.txt
Created December 23, 2016 12:14
How to create ubuntu unitiy dash launcher for smartsvn application
1.Create desktop config file
sudo nano /usr/share/applications/smartsvn.desktop
2. Put the text below
[Desktop Entry]
Name=SmartSVN
Name[en]=SmartSVN
Name[ru]=SmartSVN
@byk0t
byk0t / fix.txt
Created August 2, 2018 14:45
fixing "sign_and_send_pubkey: signing failed: agent refused operation" error on ubuntu 18.04
chmod 600 ~/.ssh/id_rsa
@byk0t
byk0t / docker-compose.yml
Last active January 26, 2024 16:08
Docker compose for odoo:14 and PostgreSQL:13
version: '3'
services:
db:
image: postgres:13
volumes:
- db-data:/var/lib/postgresql/data/pgdata
ports:
- 5432:5432/tcp
environment:
- POSTGRES_PASSWORD=odoo
@byk0t
byk0t / solution.sh
Created March 29, 2019 10:00
Solution for Unable to load script from assets ‘index.android.bundle’
rm -rf android/app/build/outputs/apk/debug/*
@byk0t
byk0t / run-avd-cli.txt
Last active May 21, 2019 13:41
Run android virtual device (avd) from command line
1. Check existed avds
emulator -list-avds
2. Run (in my case it is Nexus_5X_API_28_x86)
emulator -avd Nexus_5X_API_28_x86