I hereby claim:
- I am akash0x53 on github.
- I am akash0x53 (https://keybase.io/akash0x53) on keybase.
- I have a public key whose fingerprint is C28B 886D E4E1 BF10 8455 8568 1CC7 6E55 586B 5E22
To claim this, I am signing this object:
| Use command :CocConfig to edit coc-settings.json, add | |
| { | |
| "https.rejectUnauthorized": false, | |
| "http.proxyStrictSSL": false | |
| } |
| char_map = {'1': u'\u200C', '0': u'\u200B'} | |
| def str_to_zwstr(inp): | |
| bininp = ''.join(map(lambda x:bin(x).lstrip('0b'), map(ord, inp))) | |
| return ''.join(map(lambda x:char_map[x], bininp)) | |
| genpass() | |
| { | |
| #usage: genpass some-random-website.com 12 | |
| #generate random password for some-random-website.com and saves in ~/.pass | |
| FOR=$1 | |
| LEN=$2 | |
| shift | |
| if [ "$LEN" == "" ];then | |
| LEN=8 |
I hereby claim:
To claim this, I am signing this object:
| genpass() | |
| { | |
| LEN=$1 | |
| shift | |
| if [ "$LEN" == "" ];then | |
| LEN=8 | |
| fi | |
| head -c200 /dev/urandom |tr -cd [:alnum:]+[\!\@\#\$]|head -c $LEN|xclip -selection c | |
| echo "Copied to clipboard" | |
| } |
| def users= | |
| [ | |
| [name: "User1", | |
| email: "[email protected]" | |
| ], | |
| ] | |
| import hudson.tasks.Mailer | |
| users.each{ |
| ## Configure eth0 | |
| # | |
| # vi /etc/sysconfig/network-scripts/ifcfg-eth0 | |
| DEVICE="eth0" | |
| NM_CONTROLLED="yes" | |
| ONBOOT=yes | |
| HWADDR=A4:BA:DB:37:F1:04 | |
| TYPE=Ethernet |
| >>> import uuid | |
| >>> mac="%12X" % uuid.getnode() | |
| >>> mac | |
| '48D224921B7C' | |
| >>> mac[::2] | |
| '4D2917' | |
| >>> mac[1::2] | |
| '8242BC' | |
| >>> map(None, *(mac[::2], mac[1::2])) |
| a = { | |
| "a": 123, | |
| "b": 456 | |
| } | |
| l = [a, a] | |
| print l | |
| remove_dups = [dict(t) for t in set([tuple(d.items) for d in l])] |
| def extract_cert_key(certpath=None): | |
| """ | |
| Extracts private key & certificate and returns as pem string. | |
| params: | |
| certpath = Valid P12 certificate file path. | |
| returns: | |
| (certificate, privatekey) | |
| """ | |
| import os | |
| import getpass |