Põhineb sellel juhendil: https://www.digitalocean.com/community/tutorials/how-to-protect-ssh-with-two-factor-authentication.
sudo apt-get install libpam-google-authenticator
| from fractions import gcd | |
| def lcm(a, b): | |
| """Least common multiple""" | |
| return a * b // gcd(a, b) | |
| def factor(n): | |
| """Factor natural number into primes and their powers""" | |
| factors = {} | |
| /trigger addreplace cmd_pass2 modifier "6000|input_text_display;6000|history_add;6000|irc_command_auth" "" "/.*/${tg_string}/tg_modifier X^((/(msg|m|quote) +nickserv +(id|identify|register|ghost +[^ ]+|release +[^ ]+|regain +[^ ]+) +)|/oper +[^ ]+ +|/quote +pass +|/set +[^ ]*password[^ ]* +|/secure +(passphrase|decrypt|set +[^ ]+) +)(.*)|.*X${re:+}Xtg_modifier /[^\ ]/*/tg_modifier X^((/(msg|m|quote) +nickserv +(id|identify|register|ghost +[^ ]+|release +[^ ]+|regain +[^ ]+) +)|/oper +[^ ]+ +|/quote +pass +|/set +[^ ]*password[^ ]* +|/secure +(passphrase|decrypt|set +[^ ]+) +)(.*)X${re:1}${tg_modifier}X" |
Põhineb sellel juhendil: https://www.digitalocean.com/community/tutorials/how-to-protect-ssh-with-two-factor-authentication.
sudo apt-get install libpam-google-authenticator
install-esteid-ubuntu.sh)chmod +x install-esteid-ubuntu.sh./install-esteid-ubuntu.shC:\Program Files\boost_1_59_0.C:\Program Files\boost-build.C:\Program Files\boost_1_59_0\build.C:\Program Files\boost.| #include "simLCD.h" | |
| simLCD::simLCD() | |
| { | |
| clear(); | |
| } | |
| simLCD& simLCD::setSCLK(int pin) | |
| { | |
| pinSCLK = pin; |
| --- /src/main/java/ee/shy/cli/command/AddCommand.java | |
| +++ /src/main/java/ee/shy/cli/command/AddCommand.java | |
| @@ -2,21 +2,21 @@ | |
| import ee.shy.cli.Command; | |
| import ee.shy.cli.HelptextBuilder; | |
| import ee.shy.core.Repository; | |
| -import java.io.File; | |
| import java.io.IOException; |
| public final class ArrayUtils { | |
| private ArrayUtils() { | |
| } | |
| public static <T extends Comparable<T>> int compare(T[] arr1, T[] arr2) { | |
| int length = Math.min(arr1.length, arr2.length); | |
| for (int i = 0; i < length; i++) { | |
| int compare = arr1[i].compareTo(arr2[i]); | |
| if (compare != 0) |
| public class Ch5_q7 { | |
| public static void main(String[] args) { | |
| int[] mateArray = new int[21]; | |
| int counter = 1, starter = 1; | |
| mateArray[0] = 0; | |
| while (counter < 21) { | |
| if (starter != dividerSum(starter) && starter == dividerSum(dividerSum(starter))) { | |
| if (starter != mateArray[counter-1]) { | |
| mateArray[counter] = starter; | |
| mateArray[counter+1] = dividerSum(starter); |
A less-sensational and less-conspiratory follow-up to [Bryan Lunduke's "HTTPS is Dangerous"][lunduke].
While Lunduke focuses on numerous high-level and theoretical issues with HTTPS, which are very controversial, this writing rant looks at actual practical issues regarding HTTPS advocacy and adoption. It is mainly from the point of view of a web application developer, who make up a fraction of web users, but also gives insight into related average user experience. I am basing this off of my own (probably somewhat unique) experiences during a project regarding the topic as there isn't similar discussion elsewhere.
I don't consider myself a web developer, let alone a professional one; in fact I despise webdev for many reasons, including the ones discussed below. Nevertheless, a side project of mine, for now ~8 months (on and off), has been a [small webdev project][einstein-js] (referred to as "my webapp" below). **It is a purely