This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Creates a "negative border-radius" | |
// | |
// Author: PMK | |
// License: MIT | |
@mixin negative-border-radius($color: #000, $contrast: transparent, $position: all, $size: 1rem) { | |
background-repeat: no-repeat; | |
@if $position == all { | |
background: | |
radial-gradient(circle at 0 100%, $contrast $size, $color $size), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get -qq -y install iptables ipset iprange fail2ban firehol &>/dev/null | |
sudo tee -a /etc/fail2ban/jail.local >/dev/null <<__EOF | |
[DEFAULT] | |
banaction = iptables-ipset-proto6-allports | |
__EOF | |
sudo tee -a /etc/firehol/firehol-defaults.conf >/dev/null <<__EOF | |
IPTABLES_CMD="/sbin/iptables -w" | |
__EOF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# blacklist | |
# | |
# The contents of this file (containing a listing of additional domains in | |
# 'hosts' file format) are appended to the unified hosts file during the | |
# update process. For example, uncomment the following line to block | |
# 'example.com': | |
# 0.0.0.0 example.com | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { mount } from '@vue/test-utils' | |
import { assert } from 'chai' | |
import Component from '../../../../src/components/TestComponent.vue' | |
describe('TestComponent.vue', () => { | |
it('renders', () => { | |
const wrapper = mount(Component) | |
assert.isTrue( | |
wrapper.is(true) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
function convertMp4ToMp3 { faad -q -w -f 2 "$1" | lame --quiet -r -h -b 320 - "${1%.mp4}.mp3"; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
##### | |
# Created by PMK | |
# https://github.com/PMK | |
# | |
# License: Public Domain | |
# | |
# Creates a tar archive of the current active profile of Mozilla Firefox. | |
# The profile contains sessions, addons, bookmarks and history. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:(function(){window.API.on(window.API.HISTORY_UPDATE,function(){setTimeout(function(){window.jQuery("#woot").click();},1000);});window.onbeforeunload=function(){window.API.off(window.API.HISTORY_UPDATE);};}()); |