[JS]脚本自动查找未注册的域名
这是我在万网注册域名时写的脚本,两位的已经试过了,完全没有可注册的,现在是在搜三位的。 var url_wang = "https://wanwang.aliyun.com/domain/searchresult/"; var cq=['a','b','c','d','e','f','g','h','i','j', 'k','l','m','n','o','p','q','r','s','t', 'u','v','w','x','y','z']; var a=2; var b=6; var c=-1; var result = ""; fu...标签: JS
[JS]Object and String in ajax function
The difference between json object and json string while post with ajax: var login = function(){ var user = $("input[name=username]").val(); var password = $("input[name=password]").val(); var data = { username:user, password:password }; data = JSON.stringify(data); co...标签: JS
[linux]useradd与adduser的区别
1. 在root权限下,useradd只是创建了一个用户名,如 (useradd +用户名 ),它并没有在/home目录下创建同名文件夹,也没有创建密码,因此利用这个用户登录系统,是登录不了的,为了避免这样的情况出现,可以用 (useradd -m +用户名)的方式创建,它会在/home目录下创建同名文件夹,然后利用( passwd + 用户名)为指定的用户名设置密码。 2. 可以直接利用adduser创建新用户(adduser +用户名)这样在/home目录下会自动创建同名文件夹 3. 删除用户,只需使用一个简单的命令“userdel 用户名”即可。不过最好将它留...标签: linux
[c]mosquitto编码实现websockets协议
mosquitto虽然本身是支持websockets协议的,但却依懒libwebsockets库,而libwebsockets库是基于poll的,所以如果想把mosquitto改为epoll模式很容易,却不能兼容websockets了。 为了解决这个纠结的问题,这几天把websockets协议用C语言重新实现了一遍,然后将mosquitto中调用libwebsockets的部分用自己的代码取代,今天终于实现了websockets下的mqtt通讯功能。 首先一些websockets的结构放在websockets.h中: typedef struct _WebSo...[c]uthash
An example about uthash #include "uthash.h" #include <stdlib.h> /* malloc */ #include <stdio.h> /* printf */ typedef struct _user_t { int id; char name[25]; UT_hash_handle hh; } USER_T,*PUSER_T; void main() { int i; PUSER_T user, users=NULL; ...标签: C
[c]strtok_r,strtok_s, _strtok_s_l, wcstok_s, _wcstok_s_l, _mbstok_s, _mbstok_s_l
On the first call to strtok_s the function skips leading delimiters and returns a pointer to the first token in strToken, terminating the token with a null character. More tokens can be broken out of the remainder of strToken by a series of calls to strtok_s. Each call to strtok_s modifies strToken ...标签: C
[ubuntu]Debug a running process by gdb
1.Find the pid; ps aux|grep xxxxx 2.Bind; gdb (gdb) attach 111111 3.Show stack (gdb) bt 4.Go next (gdb)next 5. (gdb) detach 6.Exit (gdb)q标签: ubuntu
[ubuntu]Install and set subversion server
1.Install sudo apt-get install subversion 2.Create root fold of svn mkdir /var/svn 3.Create project svnadmin create /var/svn/project 4.Edit config /var/svn/project/svnserve.conf [general] anon-access = none auth-access = write password-db = /var/svn/conf/passwd authz-db = /...标签: ubuntu
[JS]javascript solution for md5
(function($){ var rotateLeft = function(lValue, iShiftBits) { return (lValue << iShiftBits) | (lValue >>> (32 - iShiftBits)); } var addUnsigned = function(lX, lY) { var lX4, lY4, lX8, lY8, lResult; lX8 = (lX & 0x80000000); lY8 = (lY & 0x80000000); lX4 = (l...标签: JS
[ubuntu]Set static ip address for ubuntu
1.Edit file /etc/network/interfaces auto lo iface lo inet loopback auto eth0 iface eth0 inet static address 192.168.1.52 netmask 255.255.255.0 gateway 192.168.1.1 dns-nameservers 222.246.129.80 114.114.114.114 2.Reboot the system.标签: ubuntu
日历
最新微语
- 有的时候,会站在分叉路口,不知道向左还是右
2023-12-26 15:34
- 繁花乱开,鸟雀逐风。心自宁静,纷扰不闻。
2023-03-14 09:56
- 对于不可控的事,我们保持乐观,对于可控的事情,我们保持谨慎。
2023-02-09 11:03
- 小时候,
暑假意味着无忧无虑地玩很长一段时间,
节假意味着好吃好喝还有很多长期不见的小朋友来玩...
长大后,
这是女儿第一个暑假,
一个半月...
2022-07-11 08:54
- Watching the autumn leaves falling as you grow older together
2018-10-25 09:45
分类
最新评论
- Goonog
i get it now :) - 萧
@Fluzak:The web host... - Fluzak
Nice blog here! Also... - Albertarive
In my opinion you co... - ChesterHep
What does it plan? - ChesterHep
No, opposite. - mojoheadz
Everything is OK!... - Josephmaigh
I just want to say t... - ChesterHep
What good topic - AnthonyBub
Certainly, never it ...