Skip to content

Instantly share code, notes, and snippets.

@rdpascua
rdpascua / AppName.php
Created April 13, 2020 19:42 — forked from isluewell/AppName.php
[6.0] Command app:name
<?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
use Illuminate\Support\Composer;
use Symfony\Component\Finder\Finder;
use Illuminate\Filesystem\Filesystem;
use Symfony\Component\Console\Input\InputArgument;
@rdpascua
rdpascua / gist:1f3efc1cccd4321244dfbaedd9d6058e
Created June 14, 2018 10:07
Reboot every 4am + 5 minutes
(crontab -l 2>/dev/null; echo "0 4 * * * /sbin/shutdown -r +5") | sudo crontab -
@rdpascua
rdpascua / gitlg.sh
Created May 6, 2018 14:43
Pretty git log
git config --global alias.lg "log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
@rdpascua
rdpascua / Alert.vue
Created March 16, 2016 01:20 — forked from laracasts/Alert.vue
Alert .vue example.
<template>
<div class="Alert Alert--{{ type | capitalize }}">
<slot></slot>
</div>
</template>
<script>
export default {
props: {
type: {
{
"revision": 35,
"lat_lon": {
"atl": [ 33.76, -84.39 ],
"bom": [ 18.58, 72.49 ],
"cpt": [ -33.93, 18.42 ],
"dxb": [ 25.25, 55.30 ],
"eat": [ 47.61, -122.17 ],
"iad": [ 39.01, -77.43 ],
ffmpeg -i in.mp4 -b 1000000 -strict -2 out.mp4
@rdpascua
rdpascua / zsh.md
Created February 19, 2016 01:07 — forked from tsabat/zsh.md
Getting oh-my-zsh to work in Ubuntu
import Sortable from 'sortablejs';
export default {
bind() {
var self = this;
Sortable.create(this.el, {
animation: 150,
dataIdAttr: 'data-id',
sudo apt-get -y --force-yes install autoconf automake build-essential libass-dev libfreetype6-dev \
libsdl1.2-dev libtheora-dev libtool libva-dev libvdpau-dev libvorbis-dev libxcb1-dev libxcb-shm0-dev \
libxcb-xfixes0-dev pkg-config texi2html zlib1g-dev
mkdir ~/ffmpeg_sources
cd ~/ffmpeg_sources
sudo apt-get install yasm
sudo apt-get install libx264-dev
<?php namespace App\Console\Commands;
use Illuminate\Support\Str;
use Illuminate\Console\Command;
use Symfony\Component\Console\Input\InputOption;
class KeyGenerateCommand extends Command
{
/**
* The console command name.