Skip to content

Instantly share code, notes, and snippets.

Yotam hitautodestruct

Block or report user

Report or block hitautodestruct

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
hitautodestruct /
Created Jun 4, 2019
MacOS How to close app that is taking up port
lsof -i :5000 # Search for app
(sudo) kill <PID>
hitautodestruct / MultiRoot.vue
Last active Apr 10, 2019
Trying to cheat vue 2 into allowing multiple root components
View MultiRoot.vue
export default {
name: 'MultiRoot',
functional: true,
render(h, { children }) {
return => <components is={vnode.context.$} />)
hitautodestruct /
Created Jul 17, 2018
Reset root password on
hitautodestruct /
Last active Aug 2, 2018
Synch files using rsync on mac
rsync -rav /source /destination
# in order to exlude files
rsync -rav --exclude=node_modules --exclude=.DS_Store /source /destination
hitautodestruct /
Created Jul 12, 2018
cd into external hard disk macos terminal
cd /Volumes && ls
hitautodestruct /
Created Jun 24, 2018
Reduce pdf file size on linux/osx cli
# !/bin/sh
# Possible values are: /screen, /ebook, /printer, /prepress
gs -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/ebook -sOutputFile=output.pdf top-decor-prospect.pdf
# Will split files into segment.aa, segment.ab in 100 megabyte chunks
split -b 100m myfile segment.
# To reassembale the pieces
cat segment.* > myfile
View vuejs-lodash-plugin.js
//Original here -
import _ from 'lodash';
let lodashPlugin = {};
lodashPlugin.install = function (Vue, options) {
Vue.prototype.$_ = _;
hitautodestruct /
Created Jan 4, 2017
An example of exporting an sql db from mysql from a cli
mysqldump -u [username] -p[password] [dbname] | gzip > ~/[dbname].sql.gz
hitautodestruct / directionless.scss
Last active Mar 2, 2016
mixins for supporting direction independent scss
View directionless.scss
@mixin ltr (){
@mixin rtl (){
.rtl & { @content; }
@mixin direction-start ($param, $value) {
@include ltr { #{$param}-left: $value; }
You can’t perform that action at this time.