- Log into BF4 Battlelog.
- Visit the Customize emblem page.
- Select the emblem you wish to export.
- Open the console (Ctrl-Shift-J).
- Enter the following code snippet to copy the raw emblem data to the clipboard:
copy('emblem.emblem.load('+JSON.stringify(emblem.emblem.data,null,2)+');');
- Paste somewhere useful, like a gist. Whatever.
- Close the console (Ctrl-Shift-J).
import time | |
import requests | |
import json | |
class DownloadStationAPI(): | |
def __init__(self, host=None, username=None, password=None): | |
self.name = 'DownloadStation' |
Others have recently developed packages for this same functionality, and done it better than anything I could do. Use the packages instead of this script:
-
Gargoyle package by @lantis1008
-
OpenWRT package by @dibdot
In its basic usage, this script will modify the router such that blocked addresses are null routed and unreachable. Since the address blocklist is full of advertising, malware, and tracking servers, this setup is generally a good thing. In addition, the router will update the blocklist weekly. However, the blocking is leaky, so do not expect everything to be blocked.
#!/bin/sh | |
#Put in /etc/adblock.sh | |
#Script to grab and sort a list of adservers and malware | |
#Check proper DHCP config and, if necessary, update it | |
uci get dhcp.@dnsmasq[0].addnhosts > /dev/null 2>&1 || uci add_list dhcp.@dnsmasq[0].addnhosts=/etc/block.hosts && uci commit | |
#Leave crontab alone, or add to it | |
grep -q "/etc/adblock.sh" /etc/crontabs/root || echo "0 4 * * 0,3 sh /etc/adblock.sh" >> /etc/crontabs/root |
<?php | |
/** | |
* Instructions: | |
* | |
* 1. Put this into the document root of your Kirby site | |
* 2. Make sure to setup the base url for your site correctly | |
* 3. Run this script with `php statify.php` or open it in your browser | |
* 4. Upload all files and folders from static to your server | |
* 5. Test your site |
# pass the default character set | |
AddDefaultCharset utf-8 | |
php_flag short_open_tag on | |
ErrorDocument 404 /error | |
# Kirby .htaccess | |
# exclude panel from trailing slash removal |
<? | |
///////////////////// | |
// slack2html | |
// by @levelsio | |
///////////////////// | |
// | |
///////////////////// | |
// WHAT DOES THIS DO? | |
///////////////////// | |
// |
<!-- create the complete html img tag for a given image --> | |
<?= $page->image()->html() ?> | |
<!-- modify the attributes of the img tag --> | |
<?= $page->image()->html(['class' => 'myImage']) ?> | |
<!-- resize an image first and then get the img tag for it --> | |
<?= $page->image()->resize(300,200)->html() ?> |
<?php | |
kirbytext::$tags['srcset'] = array( | |
'attr' => array( | |
'retina', | |
'alt', | |
'class' | |
), | |
'html' => function($tag) { |
First install vscode and configure it as you please. During setup ensure the checkbox for the PATH is checked
https://davidtranscend.com/blog/windows-terminal-workflow-guide/ (enabling developer mode is not required anymore)
https://nodejs.org/en/download/package-manager/#debian-and-ubuntu-based-linux-distributions