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
View kermit.base64
data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEAYABgAAD/2wBDAAIBAQIBAQICAgICAgICAwUDAwMDAwYEBAMFBwYHBwcGBwcICQsJCAgKCAcHCg0KCgsMDAwMBwkODw0MDgsMDAz/2wBDAQICAgMDAwYDAwYMCAcIDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAz/wAARCAEEAOEDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwD9+tlCptp1FABRRRQAUUUUAR0UUUAFFFFABRL3ool70AOTpTqQDAoY4FJuwC0jHAoDZqOSQ0ubS6Aj+07DgnHU5PAwD659KL2+W1t2kY7UTq2M/pX5Y/tlf8FIvjX+yZ+2/wCLtK1COLS/Ddw8J8O2V5Eklnf2iqE85JMruLtu3
@hitautodestruct
hitautodestruct / closeport.sh
Created Jun 4, 2019
MacOS How to close app that is taking up port
View closeport.sh
lsof -i :5000 # Search for app
(sudo) kill <PID>
@hitautodestruct
hitautodestruct / MultiRoot.vue
Last active Apr 10, 2019
Trying to cheat vue 2 into allowing multiple root components
View MultiRoot.vue
<script>
export default {
name: 'MultiRoot',
functional: true,
render(h, { children }) {
return children.map(vnode => <components is={vnode.context.$options.name} />)
},
}
</script>
@hitautodestruct
hitautodestruct / reset.md
Created Jul 17, 2018
Reset root password on scaleway.com
View reset.md
@hitautodestruct
hitautodestruct / rsync.sh
Last active Aug 2, 2018
Synch files using rsync on mac
View rsync.sh
rsync -rav /source /destination
# in order to exlude files
rsync -rav --exclude=node_modules --exclude=.DS_Store /source /destination
@hitautodestruct
hitautodestruct / external.sh
Created Jul 12, 2018
cd into external hard disk macos terminal
View external.sh
cd /Volumes && ls
@hitautodestruct
hitautodestruct / shrinkpdf.sh
Created Jun 24, 2018
Reduce pdf file size on linux/osx cli
View shrinkpdf.sh
# !/bin/sh
# Possible values are: /screen, /ebook, /printer, /prepress
# https://www.techwalla.com/articles/reduce-pdf-file-size-linux
gs -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/ebook -sOutputFile=output.pdf top-decor-prospect.pdf
View split_and_reassembale.sh
# 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 - https://medium.com/@denny.headrick/mixins-and-plugins-in-vuejs-ecee9b37d1bd
//lodashPlugin.js
import _ from 'lodash';
let lodashPlugin = {};
lodashPlugin.install = function (Vue, options) {
Vue.prototype.$_ = _;
@hitautodestruct
hitautodestruct / mysql-dump.sh
Last active Aug 12, 2019
An example of exporting an sql db from mysql from a cli
View mysql-dump.sh
# export dump
mysqldump -u [username] -p[password] [dbname] | gzip > ~/[dbname].sql.gz
# import
mysql -u username -p database_name < file.sql
You can’t perform that action at this time.