Skip to content

Instantly share code, notes, and snippets.

@jeryckho
jeryckho / batch
Last active October 27, 2018 18:48
ElectronVue
npm install -g @vue/cli
vue create [PROJECT]
cd [PROJECT]
vue add electron-builder
<?xml version="1.0" encoding="UTF-8"?>
<simplicite xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.simplicite.fr/base" xsi:schemaLocation="http://www.simplicite.fr/base https://www.simplicite.io/resources/schemas/base.xsd">
<object>
<name>Module</name>
<action>upsert</action>
<data>
<mdl_name>Formation</mdl_name>
<mdl_version>0.1</mdl_version>
<mdl_url/>
<mdl_lastupd>2018-10-04 11:20:18</mdl_lastupd>
@jeryckho
jeryckho / config.md
Created September 24, 2018 07:24 — forked from 0xDE57/config.md
Firefox about:config privacy settings

ABOUT

about:config settings to harden the Firefox browser. Privacy and performance enhancements.
To change these settings type 'about:config' in the url bar. Then search the setting you would like to change and modify the value. Some settings may break certain websites from functioning and rendering normally. Some settings may also make firefox unstable.

I am not liable for any damages/loss of data.

Not all these changes are necessary and will be dependent upon your usage and hardware. Do some research on settings if you don't understand what they do. These settings are best combined with your standard privacy extensions (HTTPS Everywhere, NoScript/Request Policy, uBlock origin, agent spoofing, Privacy Badger etc), and all plugins set to "Ask To Activate".

@jeryckho
jeryckho / uniq.js
Created September 20, 2018 15:46 — forked from telekosmos/uniq.js
Remove duplicates from js array (ES5/ES6)
var uniqueArray = function(arrArg) {
return arrArg.filter(function(elem, pos,arr) {
return arr.indexOf(elem) == pos;
});
};
var uniqEs6 = (arrArg) => {
return arrArg.filter((elem, pos, arr) => {
return arr.indexOf(elem) == pos;
});