Skip to content

Instantly share code, notes, and snippets.

View Kasp42's full-sized avatar
👻

Vladislav Kasperov Kasp42

👻
View GitHub Profile
#!/bin/bash
if test "$BASH" = ""; then
echo "You must use: bash $0"
exit 1
fi
s_project_dir="$1"
if [[ ! -d "$s_project_dir" ]]; then
#!/bin/bash
if test "$BASH" = ""; then
echo "You must use: bash $0"
exit 1
fi
s_project_dir="$1"
if [[ ! -d "$s_project_dir" ]]; then
#!/bin/bash
if test "$BASH" = ""; then
echo "You must use: bash $0"
exit 1
fi
s_project_dir="$1"
if [[ ! -d "$s_project_dir" ]]; then
#!/bin/bash
if test "$BASH" = ""; then
echo "You must use: bash $0"
exit 1
fi
s_project_dir="$1"
if [[ ! -d "$s_project_dir" ]]; then
#!/bin/bash
if test "$BASH" = ""; then
echo "You must use: bash $0"
exit 1
fi
s_project_dir="$1"
if [[ ! -d "$s_project_dir" ]]; then
@Kasp42
Kasp42 / install_less_4.1.3.sh
Created March 27, 2023 06:09
Install Less 4.1.3
#!/bin/bash
if test "$BASH" = ""; then
echo "You must use: bash $0"
exit 1
fi
s_project_dir="$1"
if [[ ! -d "$s_project_dir" ]]; then
@Kasp42
Kasp42 / LICENSE
Created July 30, 2019 17:40 — forked from noelbundick/LICENSE
Exclude WSL installations from Windows Defender realtime protection
MIT License
Copyright (c) 2018 Noel Bundick
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@Kasp42
Kasp42 / script.sh
Created November 29, 2018 07:07 — forked from haisum/script.sh
comment and uncomment lines in bash script via sed
sed -i '/<pattern>/s/^/#/g' file #comment
sed -i '/<pattern>/s/^#//g' file #uncomment
@Kasp42
Kasp42 / rc4.js
Created January 11, 2016 22:02 — forked from farhadi/rc4.js
RC4 encryption in javascript and php
/*
* RC4 symmetric cipher encryption/decryption
*
* @license Public Domain
* @param string key - secret key for encryption/decryption
* @param string str - string to be encrypted/decrypted
* @return string
*/
function rc4(key, str) {
var s = [], j = 0, x, res = '';