Skip to content

Instantly share code, notes, and snippets.

@mwagena
mwagena / gist:88672e7e1f38781b730df58991ed07ba
Created August 22, 2023 13:50
Scaleway gitlab runner cache config.toml
[runners.cache]
Type = "s3"
Shared = true
[runners.cache.s3]
Debug = true
ServerAddress = "s3.nl-ams.scw.cloud"
AccessKey = "<ACCESS_KEY>"
SecretKey = "<SECRET_KEY>"
BucketName = "<BUCKET_ID>"
BucketLocation = "<BUCKET_REGION: eg: nl-ams>"
@mwagena
mwagena / gist:c2672a3f79ec263f72cfe98a8ef1eda8
Last active June 17, 2019 09:58
Make use of Ionicon Web components in Angular

npm install ionicons

add the code below to "assets" in the angular.json file.

{
   "glob": "**/*",
   "input": "./node_modules/ionicons/dist/ionicons/",
   "output": "./ionicons/"
}
@mwagena
mwagena / settings.json
Created May 13, 2019 11:41
VS Code settings.json
{
"gitlens.keymap": "alternate",
"workbench.startupEditor": "newUntitledFile",
"gitlens.advanced.messages": {
"suppressCommitHasNoPreviousCommitWarning": false,
"suppressCommitNotFoundWarning": false,
"suppressFileNotUnderSourceControlWarning": false,
"suppressGitVersionWarning": false,
"suppressLineUncommittedWarning": false,
"suppressNoRepositoryWarning": false,
@mwagena
mwagena / extensions.list
Created May 13, 2019 11:38
VS Code extensions.list
code --install-extension KTamas.laravel-blade
code --install-extension Kasik96.format-indent
code --install-extension Sophisticode.php-formatter
code --install-extension Angular.ng-template
code --install-extension bmewburn.vscode-intelephense-client
code --install-extension codingyu.laravel-goto-view
code --install-extension Dart-Code.dart-code
code --install-extension Dart-Code.flutter
code --install-extension DotJoshJohnson.xml
code --install-extension eamodio.gitlens
@mwagena
mwagena / delete-confirm.component.ts
Created March 21, 2017 10:46
Button with confirmation
import { Component, EventEmitter, Output, Input } from '@angular/core';
@Component({
selector: 'delete-confirm',
template: `
<button class="btn btn-danger" (click)="showConfirm()">
{{btn_txt}}
</button>
`,
})
@mwagena
mwagena / ng-really.js
Last active November 22, 2017 16:34 — forked from asafge/ng-really.js
Updatet script to use Bootstrap Modals
/**
* A generic confirmation for risky actions.
* Usage: Add attributes: ng-really-message="Are you sure"? ng-really-click="takeAction()" ng-really-title="Delete this?" function
*/
angular.module('app').directive('ngReallyClick', ["$modal", "$timeout", function($modal, $timeout) {
return {
restrict: 'A',
link: function(scope, element, attrs) {
return element.bind('click', function() {
var message, title;