Skip to content

Instantly share code, notes, and snippets.

@barik
barik / token
Created February 21, 2015 00:55
{
"WARC-Record-ID": "0028b23e-9d4d-462a-9636-0ac7281f75ea",
"Tokens": [
"analyses",
"cbp",
"cd",
"code",
"collection",
"com",
"container",
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.CSharp.Syntax;
namespace RoslynDemo
private static boolean isParentOf(char[] folderName, char[] fileName) {
if (folderName.length >= fileName.length) {
return false;
}
if (fileName[folderName.length] != '\\' && fileName[folderName.length] != '/') {
return false;
}
for (int i = folderName.length - 1; i >= 0; i--) {
if (folderName[i] != fileName[i]) {
return false;
TB
SCRWIN001-5EFB-R1JJ-AWJC-40SG-50Q1
G3WFE8-TECB-A132ZE-QG7Q-3040C2
61QC04-QHK5-1RJJFB-2C22-WW5C3A NRK362-T768-UUT6G4-B6VZ-Z7G8JF
if msg_uids:
server.uid("COPY", msg_uids, INBOX_FOLDER)
server.uid("STORE", msg_uids, "+FLAGS.SILENT", r"(\Deleted)")
server.uid("EXPUNGE", msg_uids)
import imaplib
HOST = "mail.messagingengine.com"
USER = "[email protected]"
PASSWORD = "password"
BATCH_FOLDER = "INBOX.Batch"
INBOX_FOLDER = "INBOX"
@barik
barik / gist:1f6f4c7a505d6c29e080
Created December 31, 2015 03:20 — forked from mrtimp/gist:6987519
Cisco IOS IPsec/L2TP VPN
!
aaa new-model
!
!
aaa authentication login VPN local
aaa authorization network VPN local
!
!
vpdn enable
!
USAGE: scan-build [options] <build command> [build options]
OPTIONS:
-analyze-headers
Also analyze functions in #included files. By default, such functions
are skipped unless they are called by functions within the main source file.
-o <output location>
<?xml version="1.0" encoding="UTF-8"?>
<Licenses><License><![CDATA[CPU sockets (Hyper-V)=0
CPU sockets (vSphere)=32
Company=ITSS
Description=Copyright 2016 Veeam, Inc. All Rights Reserved. The Software Product is protected by copyright and other intellectual property laws and treaties. Veeam or its suppliers own the title, copyright, and other intellectual property rights in the Software Product. Veeam reserves all rights not expressly granted to you in EULA. The Software Product is licensed, not sold. Veeam grants to you a nonexclusive nontransferable license to use the Software Product, provided that you agree with EULA.
[email protected]
Edition=Enterprise Plus
Expiration date=13/02/2016
First name=Titus
Last name=Barik
<?xml version="1.0" encoding="UTF-8"?>
<Licenses><License><![CDATA[CPU sockets (Hyper-V)=0
CPU sockets (vSphere)=32
Company=ITSS
Description=Copyright 2016 Veeam, Inc. All Rights Reserved. The Software Product is protected by copyright and other intellectual property laws and treaties. Veeam or its suppliers own the title, copyright, and other intellectual property rights in the Software Product. Veeam reserves all rights not expressly granted to you in EULA. The Software Product is licensed, not sold. Veeam grants to you a nonexclusive nontransferable license to use the Software Product, provided that you agree with EULA.
[email protected]
Edition=Enterprise Plus
Expiration date=26/03/2016
First name=Michael
Last name=Everett