- Create or find a gist that you own.
- Clone your gist (replace
<hash>with your gist's hash):# with ssh git clone [email protected]:<hash>.git mygist # with https
git clone https://gist.github.com/.git mygist
| clear-host; | |
| #Remove-Variable * -ErrorAction SilentlyContinue | |
| #get-item Variable:* | |
| #Get-Variable | Select-Object -ExpandProperty Name | |
| . C:\Users\linda_l\Desktop\PowerShell\GoogleOauth.ps1 | |
| Add-Type -Path "C:\Users\linda_l\Documents\visual studio 2015\Projects\TestingLibrary\packages\AE.Net.Mail.1.7.10.0\lib\net45\AE.Net.Mail.dll" | |
| Add-Type -AssemblyName System.IO | |
| Add-Type -AssemblyName System.Text.Encoding |
| FROM ubuntu:xenial | |
| MAINTAINER alex | |
| # update and install dependencies | |
| RUN apt-get update \ | |
| && apt-get install -y \ | |
| software-properties-common \ | |
| wget \ | |
| && add-apt-repository -y ppa:ubuntu-toolchain-r/test \ | |
| && apt-get update \ |
| -- | |
| -- Yaroslav Fedorov <[email protected]> | |
| -- 11/14/2016 | |
| -- URL (http://indy-world.net/2016/11/cisco-anyconnect-secure-mobility-client-on-macos-autofill-password-and-connect-apple-script-version-2-0/) | |
| set userLoginName to "<<user_login>>" | |
| set keychainRecordName to "cisco_any_connect_auth" | |
| set serverUri to "vpn.company.com" | |
| on getPassword(keychainItemName) |
| import com.google.inject.AbstractModule; | |
| import com.google.inject.Guice; | |
| import com.google.inject.Inject; | |
| import com.google.inject.Injector; | |
| import javax.inject.Singleton; | |
| public class MainApp { | |
| public static void main(String[] args) { | |
| Injector injector = Guice.createInjector(new AppInjector()); |
<hash> with your gist's hash):
# with ssh
git clone [email protected]:<hash>.git mygist
# with httpsgit clone https://gist.github.com/.git mygist
ansible-playbook --connection=local 127.0.0.1 playbook.yml127.0.0.1 ansible_connection=local| node { | |
| echo 'Results included as an inline comment exactly how they are returned as of Jenkins 2.121, with $BUILD_NUMBER = 1' | |
| echo 'No quotes, pipeline command in single quotes' | |
| sh 'echo $BUILD_NUMBER' // 1 | |
| echo 'Double quotes are silently dropped' | |
| sh 'echo "$BUILD_NUMBER"' // 1 | |
| echo 'Even escaped with a single backslash they are dropped' | |
| sh 'echo \"$BUILD_NUMBER\"' // 1 | |
| echo 'Using two backslashes, the quotes are preserved' | |
| sh 'echo \\"$BUILD_NUMBER\\"' // "1" |
| MIT License | |
| Copyright (c) 2016 Xavier Plantefeve | |
| Permission is hereby granted, free of charge, to any person obtaining a copy | |
| of this software and associated documentation files (the "Software"), to deal | |
| in the Software without restriction, including without limitation the rights | |
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| copies of the Software, and to permit persons to whom the Software is | |
| furnished to do so, subject to the following conditions: |