Developers/projects that have proven, by past actions in their repositories, to be untrustworthy
#!/bin/bash |
#!/bin/bash | |
## Git | |
alias git-add="git add ." | |
alias git-commit="git commit -a -m" | |
alias git-push="git push origin master" | |
alias git-pull="git pull origin master" | |
alias git-s="git status" | |
alias git-d="git diff" |
<?php | |
namespace App\Http\Controllers\Web; | |
use App\Http\Controllers\Controller; | |
use Illuminate\Support\Facades\Blade; | |
use Illuminate\Support\Str; | |
use Spatie\RouteAttributes\Attributes\Fallback; | |
use Spatie\RouteAttributes\Attributes\Get; | |
use Spatie\RouteAttributes\Attributes\Where; |
#include <memory> | |
template <class T, class Deleter = std::default_delete<T>> | |
class owning_ptr { | |
private: | |
T* ptr; | |
Deleter deleter; | |
explicit owning_ptr(T* rawPtr, Deleter d = {}) : ptr{rawPtr}, deleter{d} {} | |
ffmpeg -i <input file> -acodec copy -vcodec libx264 -crf 20 <output file> | |
ffmpeg -i <input file> -acodec copy -vcodec hevc_nvenc -preset llhq -rc cbr_hq -gpu any <ouput file> | |
ffmpeg -i <input file> -acodec copy -vcodec h264_nvenc -preset llhq -rc cbr_hq -gpu any <ouput file> |
-- Install packer | |
local install_path = vim.fn.stdpath 'data' .. '/site/pack/packer/start/packer.nvim' | |
local is_bootstrap = false | |
if vim.fn.empty(vim.fn.glob(install_path)) > 0 then | |
is_bootstrap = true | |
vim.fn.system { 'git', 'clone', '--depth', '1', 'https://github.com/wbthomason/packer.nvim', install_path } | |
vim.cmd [[packadd packer.nvim]] | |
end | |
require('packer').startup(function(use) |
/** | |
* Quite the hack-ish mixin, allows to have reactive computed properties that | |
* depend on data from `$refs` despite not being reactive itself | |
*/ | |
export const reactiveRefsHackMixin = { | |
data() { | |
return { | |
/** | |
* Flag used to trigger computation of reactive data (do not edit manually) | |
* @private |
Copyright <YEAR> <COPYRIGHT HOLDER>
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:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. Copies or substantial portions of the Software cannot be used with malevolence, with the intent to cause harm, or for any other nefarious purposes (targetted or otherwise).
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOL
export type MethodsOf<Obj> = { | |
[Key in keyof Obj]: Obj[Key] extends (...args: unknown[]) => unknown ? Key : never; | |
}[keyof Obj]; |