Skip to content

Instantly share code, notes, and snippets.

This is a small collection of scripts showing how to use require.js. It's only one of several ways of setting up a require.js project, but it's enough to get started.

At its core, require.js is about three things:

  1. Dependency management
  2. Modularity
  3. Dynamic script loading

The following files show how these are achieved.

@An0nYm0u5101
An0nYm0u5101 / web-servers.md
Created June 11, 2022 12:02 — forked from willurd/web-servers.md
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@An0nYm0u5101
An0nYm0u5101 / .htaccess
Created February 23, 2022 00:00 — forked from mhulse/.htaccess
Wordpress demo .htaccess file...
# http://perishablepress.com/press/2006/01/10/stupid-htaccess-tricks/
<FilesMatch "\.(htaccess|htpasswd|ini|phps|fla|psd|log|sh)$">
order allow,deny
deny from all
</FilesMatch>
# http://css-tricks.com/snippets/htaccess/shock-teenage-gangsters-with-wp-config-redirect/
Redirect 301 /wp-config.php http://svr.gov.ru/
# Turn on the rewrite engine:

This process requires Superuser privilages.

Step-1: Installing requirements:

we need systmd-nspawn application for doing this whole process. so we need to install it first. This pacakge is name as systemd-container in most of the linux distributions and system-nspwan in some distributions

sudo apt install -y systemd-container

if this dosent work the try this

sudo apt install -y systemd-nspawn
@An0nYm0u5101
An0nYm0u5101 / CAP_LAST_CAP dbus in termux.bash
Created January 7, 2022 01:19 — forked from SaicharanKandukuri/CAP_LAST_CAP dbus in termux.bash
way to run dbus inside termux | A way to run Gnome in termux with root
# https://elixir.bootlin.com/linux/v4.3/ident/CAP_LAST_CAP
# first creating a file with 0 inside file
echo 0 > ~/cap_last_cap
# Next step is to bind the file cap_last_cap to /proc/sys/kernel/cap_last_cap
#for proot-distro with ubuntu-18.04 the command looks like
proot-distro login ubuntu-18.04 --bind cap_last_cap:/proc/sys/kernel/cap_last_cap
@An0nYm0u5101
An0nYm0u5101 / nethunter.sh
Created January 6, 2022 22:20 — forked from SaicharanKandukuri/nethunter.sh
modified nethunter rootless script | based on proot-distro
#!/data/data/com.termux/files/usr/bin/bash -e
cd "${HOME}"
## termux-exec sets LD_PRELOAD so let's unset it before continuing
unset LD_PRELOAD
## Workaround for Libreoffice, also needs to bind a fake /proc/version
## Default user is "kali"
user="kali"
home="/home/$user"
start="sudo -u kali /bin/bash"
The credit/debit card number is referred to as a PAN, or Primary Account Number. The first six digits of the PAN are taken from the IIN, or Issuer Identification Number, belonging to the issuing bank (IINs were previously known as BIN — Bank Identification Numbers — so you may see references to that terminology in some documents). These six digits are subject to an international standard, ISO/IEC 7812, and can be used to determine the type of card from the number.
Unfortunately the actual ISO/IEC 7812 database is not publicly available, however there are unofficial lists, both commercial and free, including on Wikipedia.
Anyway, to detect the type from the number, you can use a regular expression like the ones below: Credit for original expressions
Visa: ^4[0-9]{6,}$ Visa card numbers start with a 4.
MasterCard: ^5[1-5][0-9]{5,}$ MasterCard numbers start with the numbers 51 through 55, but this will only detect MasterCard credit cards; there are other cards issued using the MasterCard system that do not f
@An0nYm0u5101
An0nYm0u5101 / Linux32.sh
Created November 11, 2020 10:56 — forked from ddavison/Linux32.sh
Chromedriver Download Scripts
#!/bin/sh
####
# Author: ddavison
# Description: Download the Linux chromedriver into the current directory
####
function downloadchrome {
# latest=`curl http://chromedriver.storage.googleapis.com/LATEST_RELEASE`
version="2.9"
download_location="http://chromedriver.storage.googleapis.com/$version/chromedriver_linux32.zip"
rm /tmp/chromedriver_linux32.zip
@An0nYm0u5101
An0nYm0u5101 / docker-on-android.md
Created September 24, 2020 18:41
Docker on Android

WORK IN PROGRESS

Docker on Android

Setup:

Samsung Galaxy Tab S5e SM-T720
Android Pie on Linux 4.9.112 (not rooted)
Termux
@An0nYm0u5101
An0nYm0u5101 / docker-on-android.md
Created September 24, 2020 18:41
Docker on Android

WORK IN PROGRESS

Docker on Android

Setup:

Samsung Galaxy Tab S5e SM-T720
Android Pie on Linux 4.9.112 (not rooted)
Termux