Skip to content

Instantly share code, notes, and snippets.

View UchihaCFC's full-sized avatar

Carolina Fernández UchihaCFC

View GitHub Profile
@midudev
midudev / animations.sh
Last active January 12, 2021 17:47
Make your OSX great again
# sh ./animations.sh
# set keyboard repeat rate to 0, so instant
defaults write -g InitialKeyRepeat -int 10 # normal minimum is 15 (225 ms)
defaults write -g KeyRepeat -int 1 # normal minimum is 2 (30 ms)
# instant quick look animation
defaults write -g QLPanelAnimationDuration -float 0
# increase speed of animation when resizing window of Cocoa apps

NEW EXERCISES

Lesson

The HTML goes inside the question attribute

Flashcards

Each question is a flashcard, back and front. The attribute answers in an array with this estructure:

@marktopper
marktopper / PageController.php
Last active December 24, 2020 20:55
[Voyager] Routes for Pages BREAD
<?php
class PageController extends \App\Http\Controllers\Controller
{
public function show()
{
$slug = request()->segment(1);
$page = \TCG\Voyager\Models\Page::where('slug', $slug)
->firstOrFail();

Required binary

  • ffmpeg
  • rtmpdump

Channel

超!A&G+

rtmpdump -r "rtmpe://fms1.uniqueradio.jp/" -a ?rtmp://fms-base2.mitene.ad.jp/agqr/ -y aandg22 -B %1 -v | ffmpeg -i pipe:0 %2

param

Guía de colaboración para proyectos

Objetivo

Dado que existen numerosos desarrolladores contribuyendo a varios proyectos en paralelo, he creado esta guía para esclarecer el proceso que llevamos a cabo para manejar el modelo de branching. Para esto voy a listar una serie de pasos que es proceso adecuado que debemos llevar a cabo una vez que nos llega una tarea.

Comencemos

Después de aceptar la tarea revisando que todo esté en orden, vamos a nuestra terminal y nos pasamos a la rama de develop.

@RileyBlue
RileyBlue / architecture-sass-project
Last active January 26, 2017 04:59
Architecture for a Sass Project
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *\
| |
| Architecture for Sass Files |
|_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _|
| |
|– base/ |
| |– _reset.scss # Reset/normalize |
| |– _typography.scss # Typography rules |
| ... # Etc… |
@onel0p3z
onel0p3z / Instructions for deploying to Nodejitsu
Created July 13, 2013 05:20
Simple instructions for deploying an application to Nodejitsu
sudo npm install -g jitsu
jitsu login
vim package.json
{
"name": "CHANGE_ME",
"subdomain": "CHANGE_ME",
"description": "CHANGE_ME",
@matchy256
matchy256 / rec_radiko.sh
Last active February 15, 2026 14:37 — forked from saiten/rec_radiko.sh
簡易Radiko録音スクリプト
#!/bin/bash
LANG=ja_JP.utf8
pid=$$
date=`date '+%Y-%m-%d-%H_%M'`
outdir="."
if [ $# -le 1 ]; then
@cgdangelo
cgdangelo / mage-constraints.sql
Created March 23, 2012 22:11
Recreate foreign keys for a Magento installation, after you fire the idiot who deleted all of them.
# one-liner for generating this: mysqldump --no-data -uroot magento1600 | nawk '{if(match($0, /CREATE TABLE `(.*)`/, matchesT)) { the_table = matchesT[1]; } if(match($0, /(CONSTRAINT .*),?/, matchesK) && the_table) { the_key = gensub(/,?$/, "", matchesK[1]); the_key = gensub(/^ */, "", the_key); print "ALTER TABLE `" the_table "` ADD", the_key ";"; }}'
ALTER TABLE `admin_rule` ADD CONSTRAINT `FK_ADMIN_RULE_ROLE_ID_ADMIN_ROLE_ROLE_ID` FOREIGN KEY (`role_id`) REFERENCES `admin_role` (`role_id`) ON DELETE CASCADE ON UPDATE CASCADE;
ALTER TABLE `api_rule` ADD CONSTRAINT `FK_API_RULE_ROLE_ID_API_ROLE_ROLE_ID` FOREIGN KEY (`role_id`) REFERENCES `api_role` (`role_id`) ON DELETE CASCADE ON UPDATE CASCADE;
ALTER TABLE `api_session` ADD CONSTRAINT `FK_API_SESSION_USER_ID_API_USER_USER_ID` FOREIGN KEY (`user_id`) REFERENCES `api_user` (`user_id`) ON DELETE CASCADE ON UPDATE CASCADE;
ALTER TABLE `catalog_category_entity_datetime` ADD CONSTRAINT `FK_CAT_CTGR_ENTT_DTIME_ATTR_ID_EAV_ATTR_ATTR_ID` FOREIGN KEY (`attribute_id