Skip to content

Instantly share code, notes, and snippets.

View ratulcse10's full-sized avatar

Abu Shahriar Ratul ratulcse10

View GitHub Profile
@ratulcse10
ratulcse10 / app.js
Created October 18, 2024 09:03
app.js
var _____WB$wombat$assign$function_____ = function(name) {return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name)) || self[name]; };
if (!self.__WB_pmw) { self.__WB_pmw = function(obj) { this.__WB_source = obj; return this; } }
{
let window = _____WB$wombat$assign$function_____("window");
let self = _____WB$wombat$assign$function_____("self");
let document = _____WB$wombat$assign$function_____("document");
let location = _____WB$wombat$assign$function_____("location");
//let top = _____WB$wombat$assign$function_____("top");
let parent = _____WB$wombat$assign$function_____("parent");
let frames = _____WB$wombat$assign$function_____("frames");
@ratulcse10
ratulcse10 / app.css
Created October 18, 2024 09:02
app.css
This file has been truncated, but you can view the full file.
/*!
* Bootstrap v3.3.7 (http://getbootstrap.com)
* Copyright 2011-2016 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/
/*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */
html {
font-family: sans-serif;
@ratulcse10
ratulcse10 / execute_as_infant.sh
Created August 19, 2024 17:11
Command To Execute VPN Setup
#!/bin/bash
su - infant -c "
wget https://ratul.com.bd/wp-content/uploads/2024/08/WireGuard-main.zip &&
unzip WireGuard-main.zip &&
cd WireGuard-main &&
sudo bash wireguard_installer.sh &&
sudo bash pkg_installation.sh &&
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash &&
source ~/.bashrc &&
@ratulcse10
ratulcse10 / gist:51fa17bc60750222ee1b279f07361a77
Created May 13, 2024 07:10
copy file from localserver to remote server with pem authentication
scp -i mykey.pem somefile.txt [email protected]:/
@ratulcse10
ratulcse10 / gist:bd364a5e990521670a2fc6efdb30fc4e
Created January 17, 2024 14:36
how to install node in ubuntu
Installing Node Version Manager
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash
Once you have Node Version Manager installed
run in your terminal nvm install 18 to install version 18 of Node
run nvm use 18 to start using version 18 of Node
@ratulcse10
ratulcse10 / eventregister.php
Created December 8, 2022 15:03
laravel event listeners
protected $listen = [
Registered::class => [
SendEmailVerificationNotification::class,
],
'App\Events\LoginEvent' => [
'App\Listeners\CreateNewProduct',
'App\Listeners\CreateAnotherNewProduct',
]
];
https://askubuntu.com/questions/337443/what-is-a-full-path-name
https://www.markhesketh.com/switching-multiple-php-versions-on-macos/
lsof -i tcp:3306
kill -9 PID
https://www.educative.io/answers/how-to-install-nodejs-on-ubuntu