This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { exec } = require('child_process') | |
const path = require('path') | |
const glob = require('glob').sync | |
const bumpDeps = async (depsList, dev = false, workspace) => { | |
await new Promise((resolve, reject) => { | |
const _workspace = workspace ? `workspace ${workspace}` : '-W' | |
const _devFlag = dev ? '-D' : '' | |
const cmd = `yarn ${_workspace} add ${_devFlag} ${Object.keys(depsList).join(' ')}` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if ! [ $(id -u) = 0 ]; then | |
echo "You need to run this script as root (or use sudo)." >&2 | |
exit 1 | |
fi | |
if grep -qs '/dev/sda4 ' /proc/mounts; then | |
echo '/dev/sda4 is already mounted, proceeding to unmount' | |
umount /dev/sda4 | |
if [ $? -eq 0 ]; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tasks.withType<JavaCompile> { | |
options.encoding = "UTF-8" | |
} | |
tasks.withType<Javadoc>{ | |
options.encoding = "UTF-8" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php declare(strict_types=1); | |
namespace App\Facades; | |
use Illuminate\Contracts\Hashing\Hasher; | |
use Illuminate\Support\Facades\Facade; | |
use Illuminate\Support\Str; | |
/** | |
* Hasher implementation that supports |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php declare(strict_types = 1); | |
/** | |
* | |
* This file is just a "scratch file" for creating fake | |
* data in development environment, not meant and not used | |
* in production. Fixtures are not working at the moment for some reason, | |
* probably related to PHP 8, so at the moment this is a shitty alternative. | |
* | |
* This code isn't gonna use some fancy shit, it's just gonna be a crappy shit, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { createHash } from "crypto"; | |
import { range } from "lodash"; | |
export class Sha256 { | |
/** Range of characters for salt generation */ | |
private chars: string[]; | |
public static SALT_LENGTH = 16; | |
constructor() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name FuckAdsKA | |
// @version 1.0 | |
// @description my stupid little js script that deletes ads at the Anime watch page | |
// @author Vottus | |
// @match https://kissanime.ru/Anime/* | |
// @require http://code.jquery.com/jquery-3.4.1.min.js | |
// ==/UserScript== | |
/** |
NewerOlder