Skip to content

Instantly share code, notes, and snippets.

@rdpascua
rdpascua / zsh.md
Created February 19, 2016 01:07 — forked from tsabat/zsh.md
Getting oh-my-zsh to work in Ubuntu
ffmpeg -i in.mp4 -b 1000000 -strict -2 out.mp4
{
"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 ],
@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: {
@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 / 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 / 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;