Skip to content

Instantly share code, notes, and snippets.

This file has been truncated, but you can view the full file.
(function() {
/*
Copyright The Closure Library Authors.
SPDX-License-Identifier: Apache-2.0
*/
var g;
function aaa(a) {
var b = 0;
return function() {
@weibeu
weibeu / README.md
Created August 10, 2020 12:21
Love open source? This basic scripts lets you inject license into your all source files.

License Injector

Injects license into your all source files.

Basic Usage

Assuming you have Python project and LICENSE file in project root.

  • Download the script and move it to your project root.
  • Execute the script double click or however you prefer.

Use as command line tool

@weibeu
weibeu / squid.sh
Last active July 4, 2020 03:46
Script to automatically install and configure squid proxy server with basic NCSA authorization.
echo "--- Installing squid ---"
sudo apt update
sudo apt install squid -y
sudo apt install apache2-utils -y
echo "--- Creating default user surepass ---"
sudo htpasswd -b -c /etc/squid/users yourUsername yourPassword@Secret
echo "--- Performing configurations ---"
@weibeu
weibeu / build-react.py
Created May 17, 2020 10:10
A script which builds react application and moves the build files to Python web framework template directories.
import os
import shutil
JS_BASE_DIR = "build/static/js/"
CSS_BASE_DIR = "build/static/css/"
JS_TARGET_DIR = "build/js/"
CSS_TARGET_DIR = "build/css/"
{
"BOTS": "https://discordapp.com/api/webhooks/420924453292343306/o9TEgk4OfmD2IAS6QZ93RohIwiWCwCEjjulWKqNbgGlIr78ycdBWTn4rkZga9C_IOwF6",
"DEVELOPERS" : "https://discordapp.com/api/webhooks/420951616468942860/KNjRGMoIUK-gptli3NKDn62E2NOTJsPPtQKcTPv72dHCeTseWvaiEUi-Pml1WtZHfu_U"
}