目标
设计一个基于cookie的安全的自动登陆功能。 简单说就是不在cookie中保存密码,且token值在每次使用后都会更新 ( 类似lift那样 )
计划
public static void main(String[] args) throws Throwable { | |
Enumeration<URL> urls = SimpleDaoTest.class.getClassLoader().getResources("META-INF/MANIFEST.MF"); | |
while (urls.hasMoreElements()) { | |
URL url = (URL) urls.nextElement(); | |
System.out.println(url); | |
} | |
} |
Since this is on Hacker News and reddit...
_t
in my types. I spend a lot of time at a level where I can do that; "reserved for system libraries? I am the system libraries".char *
s.type * name
, however, is entirely intentional.#!/usr/bin/python | |
from variety.plugins.IQuoteSource import IQuoteSource | |
import subprocess, re | |
from locale import gettext as _ | |
class FortuneSource(IQuoteSource): | |
@classmethod | |
def get_info(cls): | |
return { |
Install the Proxy Server package. Just go to Package Manager in DSM and install Proxy Server.
Edit squid.conf to tell it about your ad file.
Ssh to the box, and edit the file /var/packages/ProxyServer/target/squid/etc/squid.conf
(vi
is installed by default)
You're going to add 2 lines to this file. First, under the auth_param section, you're going to add:
acl ads dstdom_regex -i "/var/packages/ProxyServer/target/squid/etc/squid.adservers"
source_code_dir="~/sourcecode/gitee.com/" | |
token="your_gitee_com_token" | |
gh_token="your_github_com_token" | |
current_dir=$(pwd) | |
response=$(curl -X GET "https://gitee.com/api/v5/user/repos?access_token=${token}&sort=created&page=1&per_page=20") | |
project_count=$(echo $response | jq '. | length') | |
echo $project_count | |
for(( i = 0; i < $project_count; i = i + 1 )) | |
do | |
operation="clone" |
diff --git a/usr/syno/share/nginx/DSM.mustache.orig b/usr/syno/share/nginx/DSM.mustache | |
index f4aa1cc..c648799 100644 | |
--- a/usr/syno/share/nginx/DSM.mustache.orig | |
+++ b/usr/syno/share/nginx/DSM.mustache | |
@@ -1,9 +1,9 @@ | |
{{#DSM}} | |
server { | |
- listen {{port}} default_server; | |
- listen [::]:{{port}} default_server; | |
+ listen {{port}}; |
class HTMJ { | |
constructor() { | |
this.init(); | |
} | |
init() { | |
document.addEventListener("DOMContentLoaded", () => { | |
this.parseTemplates(); | |
}); | |
} |