Skip to content

Instantly share code, notes, and snippets.

View julesjanssen's full-sized avatar

Jules Janssen julesjanssen

View GitHub Profile
@julesjanssen
julesjanssen / dl-hello.tsx
Created April 23, 2018 21:23
dl-hello component
import { Component, State } from '@stencil/core'
@Component({
tag: 'dl-hello',
})
export class DlHello {
@State() booleanState: boolean = true
componentDidLoad() {
setInterval(() => {
@julesjanssen
julesjanssen / hosts
Created February 22, 2017 12:26
blokkeer achterlijke 'from the web' bullshit
# add lines to /etc/hosts
127.0.0.1 amplifypixel.outbrain.com paid.outbrain.com traffic.outbrain.com widgets.outbrain.com
127.0.0.1 cdn.taboolasyndication.com trc.taboolasyndication.com cdn.taboola.com images.taboola.com popup.taboola.com trc.taboola.com
127.0.0.1 trends.revcontent.com
@julesjanssen
julesjanssen / mailsync.sh
Last active December 4, 2023 18:27
imapsync from Gmail / Google apps to Fastmail
#!/bin/sh
imapsync --host1 imap.gmail.com --user1 email@gmail.com --ssl1 --password1 "xxxx" \
--host2 mail.messagingengine.com --user2 email@fastmail.fm --ssl2 --password2 "xxxx" \
--prefix1 "[Gmail]/" \
--exclude "All Mail" \
--nofoldersizes \
--skipcrossduplicates \
--folderlast "[Gmail]/All Mail" \
--regextrans2 's/\[Gmail\]/Gmail/' \
createBase64() {
echo -n `cat $1` | base64 | pbcopy
}
alias l='ls -halF'
alias passgen='openssl rand -base64 24 | pbcopy; echo "wachtwoord opgeslagen in klembord"'
alias lesscc='lessc -x style.less > style.css'
alias taile='tail -n 20 /var/log/apache2/error_log'
alias dnsflush='dscacheutil -flushcache; echo "flush!!"'
alias b64convert=createBase64
sed "`sed 's#.#s/&/#;s#$#/g#'<<Q
LMWe'veKn each o!r for-o longPr hearHzchJbutP're2o-hy2-@Insidexe bothKxhaHCJonMWeK ! game+we'reZpl@
TMI justxanna _UFGotta QuXerstaXR
RM~Squp~letqdown~runzrouX+desertU~Qcry~sayCodbye~_z lie+hurtU
E(Ooh)~S, neverZSM(GV
F how=feelingM
Ht's been
%(Ooh, gV
Vivequp)M
~MNeverZ
@julesjanssen
julesjanssen / gist:1017978
Created June 9, 2011 23:18
Magento XML productfeed voor Beslist.nl
<?php
/**
*
* @license MIT License
*
*/
// om 't script wat tijd te geven
ini_set("memory_limit","320M");
ini_set("max_execution_time", 240);