Skip to content

Instantly share code, notes, and snippets.

View miguelcostero's full-sized avatar
💻

Miguel Costero miguelcostero

💻
View GitHub Profile
@pniel-cohen
pniel-cohen / app.module.ts
Last active November 18, 2019 20:18 — forked from katowulf/app.component.ts
Dynamically set page title based on active route in Angular 4
import ...
@NgModule({
...
providers: [ TitleService ],
})
export class AppModule {
constructor(titleService: TitleService) {
titleService.init();
}
@zthxxx
zthxxx / Activate Office 2019 for macOS VoL.md
Last active July 3, 2025 17:11
crack activate Office on mac with license file
@jhurtadojerves
jhurtadojerves / redux.js
Last active January 4, 2018 16:45
Reto de la clase de Redux, buscar en todas las playlist
const data = ( state, action ) => {
switch (action.type) {
case 'SEARCH_VIDEO': {
let results = [];
if (action.payload.query) {
const categories = state.data.categories
categories.map(category => {
let tempResults = category.playlist.filter(item => {
return item.author.toLowerCase().includes(action.payload.query.toLowerCase())
})
@katowulf
katowulf / app.component.ts
Last active October 16, 2024 04:59
Dynamically set page title based on active route in Angular 4
// This can probably be simplified somehow. Not sure why I need to add it in the component to init the service.
import { Component, OnInit } from '@angular/core';
import {TitleService} from "./@core/utils/title.service";
@Component({...})
export class AppComponent implements OnInit {
constructor(private titleService: TitleService) {...}
@remy
remy / .eslintignore
Last active April 13, 2021 04:48
My Next.js eslint config + `npm install --save-dev eslint eslint-plugin-react babel-eslint`
.next
out
@kovagoz
kovagoz / Dockerfile
Created September 2, 2016 05:03
Alpine Linux with PHP 5.6 FPM and Mongo module
FROM php:5.6-fpm-alpine
RUN apk update && apk add autoconf openssl-dev g++ make && \
pecl install mongo && \
docker-php-ext-enable mongo && \
apk del --purge autoconf openssl-dev g++ make
@rootical
rootical / browserify_watchify_babelify.js
Last active September 23, 2017 16:40
Gulp task example of using Browserify, Watchify, Babelify, Browser Sync, ngAnnoatate with ES6 source maps.
var gulp = require('gulp');
var gulpif = require('gulp-if');
var sourcemaps = require('gulp-sourcemaps');
var util = require('util');
var source = require('vinyl-source-stream');
var buffer = require('vinyl-buffer');
var watchify = require('watchify');
var browserify = require('browserify');
var browserSync = require('browser-sync');
var babelify = require('babelify');
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active July 3, 2025 16:10
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

@tsabat
tsabat / zsh.md
Last active April 21, 2025 07:22
Getting oh-my-zsh to work in Ubuntu