bild.de #2
First shipping the site (with all the articles, images, headlines, etc.) let the browser render it (for a split second) and than replace the whole html body with a little message.
(function(){ var str = '<div style="height:1000px;position:fixed; [...] Aktivieren Sie Javascript jetzt, um unsere Artikel wieder lesen zu können.</span> </div> </div>'; if(!de || !de.bild || !de.bild.user || !de.bild.env || !de.bild.events) { document.querySelector('body').innerHTML = str; } })();
Resulting in this: (meaning something like; You've disabled JavaScript. Reactivate it, so you can read our articles again.).
bild.de #1 (Browser dev console)
Engineer: AI, are we alone in the universe?
AI: Not anymore.
What is new in HTTP/2?
Gentoo and Intel Corporation Centrino Advanced-N 6235
emerge sys-kernel/linux-firmware and locate iwlwifi-6000g2b-6.ucode (which sould be located at /lib64/firmware/iwlwifi-6000g2b-6.ucode)
set the following options in your kernel config.
Device Drivers --->
Generic Driver Options --->
-*- Userspace firmware loading support
[*] Include in-kernel firmware blobs in kernel binary
(iwlwifi-6000g2b-6.ucode) External firmware blobs to build into the kernel binary
(/lib64/firmware) Firmware blobs root directory
[*] Fallback user-helper invocation for firmware loading
[*] Network device support --->
[*] Wireless LAN --->
<M> Intel Wireless WiFi Next Gen AGN - Wireless-N/Advanced-N/Ultimate-N (iwlwifi)
<M> Intel Wireless WiFi DVM Firmware support
If it work you should see somthing similar within dmesg like this:
[ 3.695960] iwlwifi 0000:03:00.0: Detected Intel(R) Centrino(R) Advanced-N 6235 AGN, REV=0xB0
...
[ 40.945526] iwlwifi 0000:03:00.0: L1 Disabled - LTR Disabled
[ 40.953509] iwlwifi 0000:03:00.0: Radio type=0x2-0x1-0x0
[ 41.226936] iwlwifi 0000:03:00.0: L1 Disabled - LTR Disabled
[ 41.233974] iwlwifi 0000:03:00.0: Radio type=0x2-0x1-0x0
References:
https://wireless.wiki.kernel.org/en/users/Drivers/iwlwifi
https://forums.gentoo.org/viewtopic-p-7715914.html
https://forums.gentoo.org/viewtopic-t-1001638.html
https://forums.gentoo.org/viewtopic-t-1023622.html
https://fitzcarraldoblog.wordpress.com/2012/09/08/how-to-install-the-linux-firmware-package-in-gentoo/
My "secure" Apache (2.4) config snippet.
<VirtualHost *:80>
DocumentRoot /var/www/
ServerName example.com
ErrorLog /var/log/apache/error_example.com.log
Header always set Strict-Transport-Security "max-age=15552000"
Header always set Public-Key-Pins "pin-sha256=\"reIKrQPC+mmj+0OSUhJW0gQmUxXSm2O3N3bhso/ENzs=\"; pin-sha256=\"m7bewwT8Jlkt3bTr5dQAdZbVprj4FWAZ6Czi41APvzw=\"; max-age=15552000; includeSubDomains; preload"
# https://developer.mozilla.org/en-US/docs/Web/HTTP/X-Frame-Options
Header always set X-Frame-Options "SAMEORIGIN"
# https://blogs.msdn.com/b/ie/archive/2008/09/02/ie8-security-part-vi-beta-2-update.aspx
#Header always set X-Content-Type-Options "nosniff"
</VirtualHost>
<IfModule mod_ssl.c>
SSLStaplingCache shmcb:/tmp/stapling_cache(128000)
<VirtualHost *:443>
DocumentRoot /var/www/
ServerName example.com
ErrorLog /var/log/apache/error_example.com.log
SSLEngine on
SSLCertificateFile /etc/ssl/apache2/example.com.crt
SSLCertificateKeyFile /etc/ssl/apache2/example.com.key
SSLProtocol all -SSLv3
SSLCipherSuite ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:DHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:DHE-RSA-AES256-SHA256:DHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:ECDHE-RSA-AES256-CBC-SHA:ECDHE-RSA-AES128-CBC-SHA:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!3DES:!MD5:!PSK
SSLHonorCipherOrder on
SSLCompression off
SSLUseStapling on
SSLCACertificateFile /etc/ssl/apache2/example.com_CA.crt
SSLStaplingResponderTimeout 5
SSLStaplingReturnResponderErrors off
Header always set Strict-Transport-Security "max-age=15552000"
Header always set Public-Key-Pins "pin-sha256=\"reIKrQPC+mmj+0OSUhJW0gQmUxXSm2O3N3bhso/ENzs=\"; pin-sha256=\"m7bewwT8Jlkt3bTr5dQAdZbVprj4FWAZ6Czi41APvzw=\"; max-age=15552000; includeSubDomains; preload"
# create using: openssl x509 -noout -in example.com_CA.crt -pubkey | openssl asn1parse -noout -inform pem -out tmp.key; openssl dgst -sha256 -binary tmp.key | openssl enc -base64
# example.com_CA.crt
# reIKrQPC+mmj+0OSUhJW0gQmUxXSm2O3N3bhso/ENzs=
# example.com_CA.crt
# m7bewwT8Jlkt3bTr5dQAdZbVprj4FWAZ6Czi41APvzw=
# Header always set Public-Key-Pins-Report-Only "pin-sha256=\"reIKrQPC+mmj+0OSUhJW0gQmUxXSm2O3N3bhso/ENzs=\"; pin-sha256=\"m7bewwT8Jlkt3bTr5dQAdZbVprj4FWAZ6Czi41APvzw=\"; max-age=15552000; includeSubDomains; preload"
# Header always set Public-Key-Pins "pin-sha256=\"reIKrQPC+mmj+0OSUhJW0gQmUxXSm2O3N3bhso/ENzs=\"; pin-sha256=\"m7bewwT8Jlkt3bTr5dQAdZbVprj4FWAZ6Czi41APvzw=\"; max-age=15552000; includeSubDomains; preload"
# https://developer.mozilla.org/en-US/docs/Web/HTTP/X-Frame-Options
Header always set X-Frame-Options "SAMEORIGIN"
# https://blogs.msdn.com/b/ie/archive/2008/09/02/ie8-security-part-vi-beta-2-update.aspx
#Header always set X-Content-Type-Options "nosniff"
</VirtualHost>
</IfModule>
Develop for p≡p! (link)
p≡p is hiring now. There are open positions in Luxembourg, Barcelona (Spain) and Zurich (Switzerland).
Are you an iOS developer? An Android specialist? Do you like to build Windows solutions with C#? Or are you just amazed by developing Free Software on free platforms? Then send us your resume!
p≡p is based on an engine which is a small C library. Then there are adapters to different application development environments. And there is the work on the apps.
If you like being part of a Cypherpunk project, please don't hesitate to contact us here: mailto:jobs-dev@pep-project.org using this key (919A B074 4CC2 0F84 0E37 2D32 4B4A 2423 D041 C63D).
Find all boinc accounts at boincstats.com.
var iCount = 300;
var i = 0;
for (var i = 0; i < iCount; i++) {
try {
document.getElementById("find_" + i).click();
} catch (e) {
console.log(e);
}
};
Someone is speaking well of you.
How unusual!
Get all manual selected/installed packages from a debian system.
This does not include packages installed during the last logrotation iteration.
gunzip -c /var/log/apt/history.log.*.gz | grep "apt-get install" | cut -f4- -d" " | sort | uniq
When you are new to VIM:
My dotfiles on githib, which includes some other stuff too
A good introduction into VIM
Q: "Best Linux Distro for Hacking/Programming"
A: "Arch is a good option to get your hands dirty, Gentoo allows you to roll in the mud."
Q: "What IDE (or text editor) do you use?"
A: "Visual Studio; It's the best IDE ever (though I wish Microsoft learned to implement the standards)."
Q: "Bad, terrible or simply funny code examples"
A: "Java."
A:
if(condition) return true else return false
A: // Happy debugging, suckers
# define true (rand() > 10)
A: void get_tomorrow_date( struct timeval *date ) {
sleep( 86400 ); // 60 * 60 * 24
gettimeofday( date, 0 );
}
Source: linustechtips.com