kubernetes-cli (v1.10.3) taken as example
- Downgrade Homebrew to the commit which upgrades the formula to the specific version that we want
$ cd "$(brew --repo homebrew/core)"
$ git log Formula/kubernetes-cli.rb
...
| CREATE OR REPLACE VIEW dbo.vwdependencies | |
| AS | |
| SELECT DISTINCT c_p.oid AS tbloid | |
| ,n_p.nspname AS schemaname | |
| ,c_p.relname AS NAME | |
| ,n_c.nspname AS refbyschemaname | |
| ,c_c.relname AS refbyname | |
| ,c_c.oid AS viewoid | |
| FROM pg_class c_p | |
| JOIN pg_depend d_p ON c_p.relfilenode = d_p.refobjid |
| <script type="text/javascript"> | |
| var space = window.space || { runs: [] }; | |
| var ADID = 'YOUR_AD_ID'; var WIDTH = 1; var HEIGHT = 1; | |
| space.runs.push(function () { | |
| space | |
| .ad(ADID) | |
| .setSize(WIDTH, HEIGHT) | |
| .setMacro('%%CLICK_URL_UNESC%%') | |
| .setCacheBuster('%%CACHEBUSTER%%') | |
| .fire(); |
| from googleads import dfp | |
| DFP_CLIENT = dfp.DfpClient.LoadFromStorage() | |
| ORDER_SERVICE = DFP_CLIENT.GetService('OrderService', version='v201705') | |
| LI_SERVICE = DFP_CLIENT.GetService('LineItemService', version='v201705') | |
| CTGT_SERVICE = DFP_CLIENT.GetService('CustomTargetingService', version='v201705') | |
| LICA_SERVICE = DFP_CLIENT.GetService('LineItemCreativeAssociationService', version='v201705') | |
| PREBID_CREATIVE_IDS = [1234567890, 9087654321, 1357924680, 2468013579, 1234509876] |
| const jsdom = require('jsdom'); | |
| const cheerio = require('cheerio'); | |
| const htmlTruncate = require('html-truncate'); | |
| const limit = 500; | |
| const text = "<p>O ex-presidente Luiz Inácio Lula da Silva defendeu que o direito de protestar não deve afetar o direito de assistir aos jogos da Copa. \"Quem quiser fazer passeata que faça, quem quer levantar faixa que levante, faça o que quiser. O importante é que as pessoas saibam que da mesma forma que alguém tem o direito de dizer que não quer Copa, o cidadão que comprou ingresso e quer ir ver a Copa tem que ter a liberdade de ver a Copa\" , afirmou em entrevista à revista Carta Capital. \"O meu direito de protestar não impede o meu direito de ir ao estádio e ver um jogo de futebol e ir tranquilo e em paz.\"</p> <p>Lula também defendeu os investimentos do governo com o Mundial. \"O governo federal tomou uma atitude exemplar. Decidimos que o Estado iria fazer um financiamento de R$ 400 milhões pelo BNDES para o governador do Estado e para as empresas que quisessem fazer es |
| function takeSS(cloudinary_name, cloudinary_key, cloudinary_unsigned_preset, main_element){ | |
| main_element = main_element || document.body; | |
| const imageUrlToBase64 = (url) => fetch( | |
| `https://get-base64-image.rafaelverger.now.sh/?url=${encodeURIComponent(url)}` | |
| ).then(res => res.text()); | |
| const _takeSS = () => { | |
| const elementImages = [].slice.call( | |
| main_element.querySelectorAll('img'), 0 | |
| ).filter(img => /^http/.test(img.src)); |
| all_user_agents = [ | |
| 'Mozilla/5.0 (compatible; U; ABrowse 0.6; Syllable) AppleWebKit/420+ (KHTML, like Gecko)', | |
| 'Mozilla/5.0 (compatible; ABrowse 0.4; Syllable)', | |
| 'Mozilla/5.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; Acoo Browser 1.98.744; .NET CLR 3.5.30729)', | |
| 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; Acoo Browser; GTB5; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; Maxthon; InfoPath.1; .NET CLR 3.5.30729; .NET CLR 3.0.30618)', | |
| 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; Acoo Browser; GTB5;', | |
| 'Mozilla/4.0 (compatible; Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6; Acoo Browser; .NET CLR 1.1.4322; .NET CLR 2.0.50727); Windows NT 5.1; Trident/4.0; Maxthon; .NET CLR 2.0.50727; .NET CLR 1.1.4322; InfoPath.2)', | |
| 'Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; Acoo Browser; GTB6; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; InfoPath.1; .NET CLR 3.5.30729; .NET CLR 3.0.30618)', | |
| 'Mozilla/4.0 (compatible; MSIE |
| #!/bin/bash | |
| PWD=$(pwd) | |
| GIT_ROOT="~/git-projects" | |
| CYAN='\033[36m' | |
| GREEN='\033[32m' | |
| NC='\033[0m' # No Color | |
| cd $GIT_ROOT > /dev/null |
| !function(a,b,c,d){ | |
| b._mrm=b._mrm||{}, | |
| b._mrm.hostId=a, | |
| d=c.createElement("script"), | |
| d.async=1, | |
| d.src="//umrum.io/dist/umrum-client.js", | |
| c.body.appendChild(d); | |
| }("UMRUM_KEY",window,document); |