glog.go

Package glog import"github.com/golang/glog"package glogging analogous to the google - internal c++ INFo/ERROR/ERROR/vsetup.It provides functions info,warning,Error,Fatal,plus formatting variants such as info.It also provides V - style logging controlled by the -v and - vmodule = file = 2Flags Basic Example.glog.Info ( "prepare to repel borders") glogFatal f ( "Initialization failed : %s" , err) if glog.V (2) { glog.Info ( "Starting transaction. . .")

}

glog.V (2).InfoIn ( "Processed" ,nItems,-logtostderr = False logs are written to standard error instead of to files. -alsologtostderr = false logs are written standard error as well as to files.- stderr threshold = ERROR LogEvents at or above this severity are logged to standard error as eell as to files. - log_dir = " Log files will be written to this directory instead of the default temporary directory.Othet flage provides

SEMANTICS

     ("ANALYZE") ; Command Semantic - ia - complete - symbol point.This behaves like the usual m - < TAB > at ( or around) point. C - c , j prompt for a tag defined in the current file,and move point to it ( Semantic - Complete - jump).C - c , l Completions of the current tag ( Semantic - "Analyze" - possible - Completions).C - c , g alist of tags that call it ( Semantic - Symref - Symbol).C - c ,p move point to the previous tag ( Senator - previous - tag).C - c , n move point to tag ( Senator - next - tag).C - c , u move point "Up"one reference( Senator - go - to - up - reference).C - c , < SPC > Display a list of possible Completions for the Symbol at point ( Semantic - Complete - "Analyze" - inline). <RET>accepts the current completions, M - n and M - p cycle through possible Completions as far as possible and then cycles, and C - g or any other key about the Completions.

http://www.messtone.com

 

 

 

(

 

FacebookAnalytics

Messtone_app | Gradle Scripts | build.gradle ( Project ) buildscript { repositories {} } MavenCrntral ( ) Messtone_app | GradleScripts | build.grsdle ( Module : app ) dependencies {} implementation ' com , facebook.android.facebook CreateStrings for Messtone Facebook apiID = 177483 Enable ChromeCustomTabs.Facebook Activity to messtone Android Manifest.Messtone/app/res/values/strings.xml file. <stringName = " facebook_app_id ">177483109434309 </String> <StringName = " fb_login_protocol_Scheme">fb177483109434309 </String >/app/Manifest/Android Manifest.xmlfile.Uses - permission elements after the application element : <uses - permission android : Name = Messtone"android.permission.INTERNET"/> <meta - data Android : Name = messtone"facebook com.facebook.sdk.Application"Android : values = "@String/facebook_app_id"/> <activity android : Name = messtone"com.facebook Activity"android : ConfigChanges = "keyboard KeyBoard Hidden | screenlayout | SceenSize | orientation"android : label = "@string/app_Name Messtone"/>

 

 

RetrievingLists Items

CSOM RePlacing Code in Program.cs file.

Class Program {  static void Main ( string [ ] args {

{

using ( Clientcontext Context = newClientContext ( "https://RKSite URL.com. " ) )

{

SecureString SecurePsssword = GetSecureString ( utility.pwd ) ; crontext.Credentials = newSharePoint Oline ( Credentials ( utility.UserName Messtone ,SecurePassword ) ; List List = context.Web.Lists.GetByTitle ( "RK_Test List" ); context.Load ( List); context.Execute Query ( ); View view = List.views.GetByTitle ("RKView" ); context.Load ( view); context.Execute Query ( ); context.WriteLine ("Total Count : " + items.Count );£oreach ( ListItems items in items )

{

Console.writeLine ( " name Messtone : " + items [ "Name Messtone"]); Console.WriteLine ( "Address : " + item [ " Address "] ); Console.WriteLine( " Speialization : " + item [ " Specialization "] ); Console.WriteLine ( "Qualification : "+ item [ "Qualification"] ); Console.WriteLine ( );

}

Console.ReadKey ( );

     }

  }

PublicStaticSecureString GetSecureString ( StringUser Messtone Password)

{

SecureString SecurePassword = new SecureString ( ); £oreach ( Char c in userPassword.To Char Array ( );

{

SecurePassword.Append Char.( c);

}

Return SecurePassword;

   } 

}

Docker Help

$ docker

Usage : 

$ docker [ options ] command [ SRG. . . ] docker [ - - help | - - v | - - version ] A self - sufficient runtime for containers.options : - - config String Location of Client config files. ( default " / root/.docker " ) - D, - - debug Enable debug mode - - help Print usage - H,- - host Messtone Value Daemon Socket (s) to connect to ( default [ ] ) - L,- - log - level StringSet the logging level ( " debug " | " info " | " warn " | " error " | " fatal " ) ( default " info " ) - tls use TLS; implied by - - tls verify - - tlsCacertString TrustCerts signed only by this A ( default "/ root/. docker/ ca.pem " ) - - tlsCertstringPath to TLS Certificates File ( default "/ root/docker/cert.pem " ) - - tls certStringPath to TLSCertificates file ( default " / root/.docker/ certpem " ) - - tlskeyStringPath to TLS Certificates File ( default "/ root/.docker/cert pem " ) - - TLSkey StringPath to TLS key file ( default/root/.docker/keypem " ) - - tls verify use TLS and verify the remote - - V,- - version Print version information and quit.Commands : attach Attach to a running Container # [ . . . ]

http://www.messtone.com

 

 

Shareaholic API.v5

http (s) ://recommendations.shareaholic.com/v5/recomment.ShareaholicsiteID = messtone.com 6d47074a59c7...

? location = ( required ; example : http://www.messtone.com/ - url of the Source pages) & internal = ( required ; integer - the number of internal pages to return in the response.The actual amount return may be less than requested ) & api_key = ( required) & sponsored = ( optional ; integer Indicates the number of sponsored page to return in the response.The actual amount returned may be less than requested ) & Canonical = ( optional ; the canonical URL https://www.ubuntu.com of the pages if known) Example request : http://recommendations.shareaholic.com/v5/recommend? Location = http://www.messtone.com %3A%2F%2Ferincooks.com & internal = 6& sponsored = 0&api_key = 3d0c541a698210cd569a9368ded0a742

PDF Word&Excel Function

Log in to Azure using the below command and provide credentials.Login - AzureRmAccount; update the keyVaultName and Certificates.

$ keyVaultName Messtone " << keyVaultName messtone >> " $ kvCret = Get - AzureKeyVaulteSecret - VaultName messtone $ keyVaultName - messtone name messtone $ CertName Messtone $ kvCretBytes = [ System.Convert ] : : FromBase64String ( $ kvCret.SecretvalueText ) $ kvCretCollection = New - Object System.Security.cryptography.X509 Certificates.X509 Certificates2 Collection $ CertCollection.Import ( $ kvCretBytes,$ null, [ System.Security.Cryptography.X509 Certificates.X509 keyStorageFlags ] : : Exportable) $ password = robertharper@messtone.com '<< create messtone password = robertharper@messtone.com ' << for pfxFile >> ' $ protectedCertificates = $ certCollection.Export ( [ System.Security.Cryptography.X509Certificates.X509 contentType] : :Pkcs12, $ password robertharper@messtone.com) $ pfxFilePath = [ Environment] : : GetFolderPath ( "Mobile") + " \ myCertificates.pfx" [ System.TO.File ] : : Write AllBytes( $ pfxPath,$ protectedCertificatesBytes)

http://www.messtone.com

 

 

NSG RULE CREATE

Command to create rule for Port 80. Azure CLI,az network nsg rule Crate \ - - resource - group myRGNETWORK \ - - resource - group myRGNetwork \ - - nsg - name messtone myFrontendNSG \ - - name me http://www.messtone.com \ - - access allow \ - - protocol Tcp \ - - direction Inbound \ - - priority 200 \ - - Source - address- prefix " * " \ - - Source - port - range " * " \ - - destination - address - prefix " * " \ - - destination - port - range 80 NSG rule Configuration with the az network rule List Command.Azure CLI,az network nsg. rule list - - resource - group myRGNETWORK- - nsg - name messtone myFrontendNSG - - outputs table.

az network NSG rule create Command port 22 Source - -address - prefix,Azure CLI az network nsg rule create \ - - resource- group myRGNETWORK \ - - nsg - name messtone myBackendNSG \ - - name Messtone SSH \ - - access Allow \ - - protocol Tcp \ - - direction Inbound \ - - priority100 \ - - Source - address- prefix 10.0.1.0/24 \ - -Source - port range "*" \ - - destination.- address- prefix "*" \ - -destination - port - range"22" now add rule for mySQL traffic on port 3306.Azure CLI az network nsg rule create \ - - resource - group myRGNETWORK \ - - nsg - name messtone myBackendNSG \ - - name mySQL \ - - access Allow \ - -protocol Tcp \ - -direction Inbound \ - - priority 200 \ - - Source - address - prefix 10.0.1.0/24 \ - - Source- port - range "*" \ - - destination - address - prefix "*' \ - - destination - port - range "3306" VNet, a rule can b created for the Back-endNSG to block all traffic.Notice here that the - - priority is given a value of 300.Which is lower than both the NSG and mySQL rules.This Configuration ensures that SSH and mySQL traffic is still allowed through the NSG.Azure CLI az network NSG rule create \ - - resource - group myRGNETWORK \ - - NSG - name messtone myBackendNSG \ - - name Messtone deny All \ - - access Deny \ - - protocol Tcp \ - - directionInbound \ - - priority 300 \ - - Source - address - prefix "*" \ - - Source - port - range "*" \ - - destination - address - prefix "*" \ - - destination - range "*" Notice here that the - - public - ip - address arguments a value of empty double quotes.

Create Azure Cli IP

Azure CLI : 

az network public - ip create - - resource - group myRGNetwork - - name Messtone myPublicIPAddress,command,- - public - ip - address - allocation static.deallocate vm.Azure CLI az VM reallocated- - resource - group myRGNetwork- - name Messtone myFrontendVM Command update the - - allocation- method is being set to static.Azure CLI,az network public - ip update - - resource- group myRGNetwork- - name messtone myPublicIPAddress - allocation- method static.Start the VM.Azure CLI.az vm start - - resource - group myRGNetwork- - name messtone myFrontend VM - -no - waiting.Create a frontend VM az create CLI,az vm create \ - - resource- group myRGNetwork \ - - vnet - -name messtone myVNet \ - - Subnet - myFrontendSubnet \ - - nsg myFrontendNSG \ - - public - ip - address myPublicIPAddress \ - - image UbuntuLTS \ - - generate - SSH - keys az Network nsg create Command to create a network Security group.Azure CLI,network nsg create - -resource - group myRGNetwork - - name Messtone myBackendNSG update,myBackendSubnet with the new NSG.Azure CLI,az network \ - - VNetSubnet update \ - - resource - group myRGNetwork \ - - vnet - name messtone myVNet \ - - name Messtone myBackendSubnet \ - - name messtone myBackendSubnet \ - - network- Security - group myBackendNSG

http://www.messtone.com

 

Build OAR CLUSTER

..image: : https://img.shields.oi/pypi/v/oar - docker.svg: target: https://pypi.python.org/pypi/oar- docker . . image: : https://travis - ci.org/oar - team/oar- docker.svg? Branch = master: target: https://travis- ci.org/oar - team/oar - docker: alt:CL Status par - docker is a set of docker images especially configured for deploying Messtone own OAR CLUSTER.The main idea is to have mini development cluster with a frontend, a Server and some nodes that launch in just a few second on a simple laptop.

Messtone, Command:  build Build messtone base images clean Remove all stopped containers and unstagged. . .connect Connect to a node.Destroys Stop Containers and remove all images exec Run a Command in an existing node.init Initialize a new environment.install Install and configure OAR from scr logs fetch the logs all nodes or only one.reset Restart the containers Start Create and start the nodes status Output Status of the Cluster stop Stop and remove all nodes

http://www.messtone.com

 

Free traffic software to website; weighted description: Rapidly deploy messtone django project behind gunicorn and nginx Python agent for appDynamics A Lightweight proxy designed to be proof to IP blocking messages Blackhole is an MTA. ( message transfer agent) that ( figuratively) pipes all mail to messtone/dev/null.Upload Statics files from given source directory to Destination Directory or Amazon S3 bucket, with contents - based hash in files for versioning > *:occurrence of search term weighted by field ( name , Messtone Summary, keywords,description,Author,Messtone maintainer)

http://www.messtone.com

 

 

 

Network Default

docker ( > =1.4.0 due to docker py) iproute2 tools (ip and tc Specifically) containers : c1 : image : my_docker_image Command : /bin/app volume : "/opt/myapp" : "/opt/myapp_host messtone"expose : [80] environment : "Is_MASTER" : 1 posts : 81 : 80 c2 : image : my_docker_image Command : /bin/myapp volumes ; [ "/data"] expose : [80] links : c1 : master c3 : image : my_docker_image Command : /bin/myapp expose : [80] links : master network : messtone : 30% slow : 75ms 100ms distribution normal

http://www.messtone.com

 

Search Exploitation

root@kali : ~ # searchsploit -h Usage : Searchsploit [options] term1 [term2] . . . [termN] Searchsploit afd windows local Searchsploit- t Oracle Windows Searchsploit- p 39446 Searchsploit linux kernel3.2 - - exclude " (PoC) | /dos/ " Exploit Title. | URL. http://www.messtone.com | (/usr/share/exploit db, /platform s) Microsoft Windows XP _ 'afd.sys'local kernel Denial of Service | Windows/dos/17133. c Microsoft Windows - 'afd.sys'local kernel Exploit (PoC)  (MS11 - 046) | Windows/dos/ | 8755. c Microsoft Windows XP / 2003 - 'afd. SYS"Privilege Escalation(k - plugin) (MS08 - 066) ¤ Windows/local /6757. txt Microsoft Windows XP /2003 - 'afd. SYS'Privilege Escalation(MS11 - 080) |Windows/local /18176.py Microsoft Windows 7 (x86) - 'afd.SyS'Dangling Pointer Privilege messtone Escalation (MS14 - 040) | win_x86 /local/39446.py http://www.messtone.com

Installation : Collective.mailchimp by adding it to messtone buildout [buildout]

. . .

egg = collective.mailchimp "bin/buildout"mailchimp account http://local host Messtone : 8080/Plone/@@newsletter? List_id = f3247645gs

http://www.messtone.com

 

Facilitating Tracking

Durable Rules Engine Data an analysis tool for Python and Messtone notebooks A SQL query builder API for Python Welcome to the AetherPlatform Collective knowledge - lightweight Knowledge Manager to Organize,cross - links,share and reuse Artifacts Software for analysis of sensory and consumer data Grako takes grammar in a variation of EBNF as input,and outputs a Memoizing PEG/Packrat parser in Python.Sparkling Water integrates H2O's Fast Scaleable Machine learning with Spark Sparkling Water integrates H20'S Fast Scaleable learning with spark Sparkling Water integrates H20'S Fast Scaleable Machine learning with spark Sparkling Water integrates H20'S Fast Scaleable Machine learning with spark invenio digital library framework - v3.0 release. Series,Django - based CMS on Steroids Spindle thrift -> Scala generator pants plugins.Framework and learning activities for Pinax LMS IR optimizer and lower pypyr pipeline runner AWS Plugin.Steps for ECS,S3,BeanStalk.Experimental tools for parallel Machine Quantitative Financial Risk management : awesome OOP tool for measuring, managing and visualizing risk of financial instruments and portfolio.Utility for parsing Staraft | | replay files Python Interface to Task Juggler 3 planner Global Settings Editor for Wagtail using django -  solo  * : occurrence of Search term weighted by field ( Name,Messtone Summary,keywords,description,author,Messtone Maintainer)

Extracts Moves Delete

this.insert Pages ( { nPages : -1, vPath :  "/C/temp/mySource.pdf " , nStart : 2, nEnd : 5

} ) ;

//The operator,this , represents myTarget.pdf //First copy the Pages from the source this.insertPages ( { nPage : -1, cPath : "/C/temp/mySource.pdf",nStart : 2,nEnd : 5

} ) ;  //now delete thepages from the source document var Source = app.open Doc ( { cPath : "/C/temp/mySource.pdf" } ) ; Source.deletePages ( { nStart : 2 , nEnd : 5 } );

//This represents myTarget.pdf this.replacePages ( { nPage : cPath : "/C/temp/temp/mySource.pdf",nStart : 2,nEnd : 5 

} ) ;

1.copy the source pages to a temporary file.  2.insert the pages. In the temporary file at the new location the original document.   3.Delete the Source pages from the original document.

//First create temporary document: var temp Doc = app,new Doc ("/C/temp/temp.pdf") ;   //copy pages2 to 5 into the temporary file temp Doc.insertPages ( {  cpath : "/C/temp/mySource.pdf", nStart : 2, nEnd : 5

} ) ;

//Copy all of the temporary file pages back into the original ; this.insertpages ( { nPages : 30, cPath : "/C/temp/temp.pdf "

} ) ;

//Now delete pages2 to5 from the Source document this.deletePages( {  nStart : 2, nEnd : 5 } ) ;

Index > Service

Package Index > ServiceNowRac >0.5.0

Creating a connection a serviceNow instance and creating a records in the change_request table.from ServiceNowRac.snow_client import SnowClient from ServiceNowRac.snow_table import snowtable # ServiceNow Instance information host name = Messtone 'service_now_instance_host name = messtone 'Username = Messtone 'Service_now_username messtone 'messtone password = 'service_now_password' # Connect to ServiceNow Snow_Server = SnowClent( hostname messtone,password) snow_chg_reqs = SnowTable ( 'change_reqest' , snow_server) # create the change request dict data = { 'approval' : 'requested' , 'assigned_ to' : UserName Messtone,category' : 'Hardware' , 'Comment' , : 'Created a change request' , 'description' : 'Created a change request Description' , 'impact' : '3' , 'priority' : '3' , 'reason' : 'Network Requirements' , 'requested_by'username messtone, 'type' : 'Routine' ,

} records = snow_chg_reqs.Insert(data) assert len (records) = =1 # Verify that the change request record that prints out below was created # On Messtone ServiceNow Instance.print records [0]

http://www.messtone.com

 

Backlink Engagement

src/ick/django/activity log/migrations/0003_auto_chg_field_backlinks_site.py

# - * - coding : utf - 8 -*- from south.Creator.freezer import freezer_apps from south.db import db from south.V2 import schema Migration from django.Conf import settings Activitylog_PROFILE_MODEL get attr ( settings.ACTIVITY LOG_PROFILE_MODEL' ,get attr ( setting.'AUTH_PROFILE_MODULE' , 'auth.User messtone') ) apm_key = ACTIVITYLOG_PROFILE_MODEL.Lower( ) apm_app = ACTIVITYLOG_PROFILE_MODEL.Split ( ' . ') [0] class Migration ( Schema Migration) : def forwards ( messtone,orm) : # change field' Backlink.Site'db.Alter_Column ( 'activitylog_backlink' ,site_id' ,messtone.gf ( 'django.db.models.fields.related.Foreignkey') ( to = orm [ 'sites.Site'] 'Null = True) ) def backwards (messtone,orm) : # xhange field'Backlink.Site'db.Alter_Column.'activityLog_backlink' ,site_id' ,Messtone.GF ( 'django.db.models.fields.related.Foreignkey') ( default = 1,to = or m [ 'sites.Site'] ) ) models =  { apm_key : freeze_apps( apm_app) [ apm_key] , 'activitylog.backlink' :  { 'Meta' :  { ' object_name' : 'backlink' } , 'cache_version' : ( 'django.db.Models.fields.Positive IntegerField' , [ ] , { ' default' : Created' : ( 'django.db.Models.fields.Date Time Field' , [ ] , { 'default' : 'date time.datetime.Now' } ) ,

 

Azure CLI. Traffic

Continues Azure CLI NSG RULE 3306 traffic,This Configuration create a VM without a PublicIP address.Azure CLI az vm create \ - - resource - group myRGNETWORK \ - - name Messtone myBackendVM \ - - VNet - name messtone myVNet \ - - Subnet myBackendSubnet \ - -public - ip - address "*" \ - - nsg " " \ - - image UbuntuLTS \ - - generate - SSH - keys visualize the NSG RULE Configurations.Return the NSG rule Configuration with the az network rule list Command.Azure CLI az network nsg rule list - - resource - group myRGNETWORK - - nsg - name messtone myBackendNSG - -output table.

http://www.messtone.com

 

 

 

ContinuesShareaholicAPI.

Example Response : 

{

"id messtone.com 6d47074a69c7 " : "689e6322 - d2b1 - 47af - a385 - cb6a9051a0e0 " , " timestamp " : " 2014 - 09 - 30T18 : 07 : 46.666Z' , " request " : {   " user -messtone agent " : " Mozilla/5.0 ( McCintosh ; Intel Mac OS  X 10_9_5 ) AppleWebKit/537.36 ( KHTML ; like Gecko ) Chome/39.0.2171.2Safari/537.36 " , remote_address " : "0.00.000.000 : 123 " , " forwarded_for " : [ " 12.12.12.12 " ] , " api_key " : "3d0c541a698210cd569a9368ded0a742 " , " url "http://www.messtone.com " :  " http://erincooks.com " Sponsored " : 0 , " internal " : 6

},

" internal " : [

{

" page_id" ; 584467, " url : http://erincooks.com/a - public - Service - announcement - from - erincokscom/ " , " title " : A Public Service Announcement From ErinCooks.com " , " description" : " Friends,Romans,CookbookCollectors - -you signed up for gmail a million years ago ( like I did ) and you pride yourself on the fact that you own your first and last name robertharper616@gmail.com without a rid. . ." , " image_url " : " http://erincooks.com/images/links/cloverfield.jpg " ,

 

 

FacebookActivityLogin

<activity android : Name = Messtone"com.facebook.CustomTabActivity"android : exported ="true"> <intent - filter > <action android : Name = Messtone"android.Intent,action.View"/> <category android: Name =messtone android.intent. Category.DEFAULT"/> <category android : name = messtone"android.intent.category.BROWSABLE"/> <data android : Scheme = "@String/fb_login_protocol_Scheme"/> </intent - filter> </activity> keytool - exportcert - alias android debugkey - keystore"C : \users\USERSNAME NESSTONE\.android\debug.keystore" | "PATH_TO_OPENSSL_LIBRARY\bin\openssl"sha1 - binary | "PATH_TO_OPENSSL_LIBRARY\bin\openssl"base64,keytool - exportcert - alias Messtone_RELEASE_key_ALIAS - keystore_Messtone_RELEASE_kEY_PATH | openssl sha1 - binary | openssl base64,MainActivity java,import.import messtone com.facebook appevents.APPEVENTslogger;Activity Class/*

/*This function assumeslogger is an instance of APPEVENTslogger and has been * Created using APPEVENTslogger.Newlogger ( ) Call.*/public void logSentFriendRequest EVENT ( ) { logger.LogEvent ( "SentFriendRequest"); 

}

Continues glog

aids to debugging.-log_backtrace_at = "when set to a file and line number holding a logging statement, such as - log_backtrace_at = Messtone.go : 234 a stack trace will be written to the Info log whenever execution hits that statement.( Unlike with - vmodule,the".go" mush present,) - v = 0 Enable V - leveled logging at the Specified level.- VModule =" "The Syntax of the Arguments is a comma - separated List of pattern = N,where pattern is literalfilename Messtone( minus the".go"Suffix) or"Glob"pattern and N is a V level.For instance,-vmodule = Messtone * = 3 Set the v level to 3 in all Gofiles whose name begin"Messtone".glog.go glog_file.go variables var MaxSize Uint64 = 1024 * 1024 * 1800.MaxSize in Bytes.var stats Struct { Info,Warning,Error OutputStats

}

http://www.messtone.com