Skip to content

Instantly share code, notes, and snippets.

View remix-run#2412-stuck.txt
fix(remix-dev): add ability to use tsconfig `paths` aliases other than `~` test #4883
Summary
Jobs
build (ubuntu-latest)
build (ubuntu-latest)
Started 11m 51s ago
Search logs
1s
Current runner version: '2.288.1'
Operating System
View Triage.md
@machour
machour / RbacMigration.php
Last active Sep 17, 2021
[yii2] How to migrate from PHP Rbac to DB Rbac
View RbacMigration.php
<?php
namespace console\controllers;
/**
* I needed to migrate from files-based RBAC to db-based RBAC, here's how I've done it
*
* - Before executing the migration, rename your old `authManager` component to `authManagerPhp`
* - Add the new `authManager` component as follow:
* 'authManager' => [
View yii3.md

Understanding Yii 3

Introduction

This document is intended for an audience already familiar with Yii2

Yii 3 is the second major rewrite of the Yii framework.

> Originally started in the 2.1 branch, it was later decided to switch to the 3.X series because of all the backward compatibility breakage. Starting with 3.0, Yii will follow the Sementic Versionning.

View http-vhost.conf.md
<VirtualHost *:80>
    Define SITE_BASE ${SERVER_BASE}/customer/example.com
    ServerName  example.com

    ProxyRequests Off
    ProxyPass / http://example.com/
    ProxyPassReverse / http://example.com/

 LogLevel warn
View ChangeLog.md

1.4.1 (2017-12-15)

Bug Fixes

  • Fix application version number (dd56652)

1.4.0 (2017-12-12)

View details.diff
diff --git a/src/components/github-htmlview.component.js b/src/components/github-htmlview.component.js
index 7d68ffb..2dc3eee 100644
--- a/src/components/github-htmlview.component.js
+++ b/src/components/github-htmlview.component.js
@@ -197,6 +197,8 @@ export class GithubHtmlView extends Component {
/<span class="email-hidden-toggle"><a href="#">…<\/a><\/span>/g,
''
)
+ .replace(/<\/summary>/g, '</summary><hidden>')
+ .replace(/<\/details>/g, '</hidden></details>')
View all-contributors-diff.js
const fs = require('fs');
const fetch = require('node-fetch');
fetch('https://api.github.com/repos/gitpoint/git-point/contributors?per_page=100').then(response => {
response.json().then(json => {
const realContributors = json.map(el => el.login);
const knownContributors = JSON.parse(fs.readFileSync('.all-contributorsrc')).contributors.map(el => el.login);
const diff = realContributors.filter(el => knownContributors.indexOf(el) === -1);
process.stdout.write(`Contributors length from GH: ${realContributors.length}\n`);
View mehdi.diff
diff --git a/package.json b/package.json
index 658cc8c..cb6aed8 100644
--- a/package.json
+++ b/package.json
@@ -42,6 +42,9 @@
},
"dependencies": {
"fuzzy-search": "^1.4.0",
+ "lingui-cli": "^1.3.2",
+ "lingui-i18n": "^1.3.0",
View gist:c6c423b8641cba8c3f68884731631392
if ($query) {
$values = array_filter($values, function($var) use($query) {
return stripos($var, $query) !== false;
});
}