first thing first you should get access token from bitly with following instructions:
run following command for installation and refresh your bash session
| const headerStorage = {}; // keeps request headers | |
| function interceptXHR(interceptor) { | |
| const open = XMLHttpRequest.prototype.open; | |
| const send = XMLHttpRequest.prototype.send; | |
| const setRequestHeader = XMLHttpRequest.prototype.setRequestHeader; | |
| XMLHttpRequest.prototype.setRequestHeader = function (header, value) { | |
| headerStorage[header] = value; | |
| setRequestHeader.call(this, header, value); | |
| }; |
| const randomNumberGenerator = () => String.fromCharCode(parseInt(Math.random() * (57 - 49) + 49, 10)); | |
| const randomStringGenerator = () => String.fromCharCode(parseInt(Math.random() * (122 - 97) + 97, 10)); | |
| const randomPasswordGenerator = (len = 8, skip = ['l', '0', 'o', 'j']) => { | |
| let password = ''; | |
| for (let i = 0; i < len; i++) { | |
| const gen = i < 2 ? randomStringGenerator() : randomNumberGenerator(); | |
| if (skip.indexOf(gen) >= 0) { | |
| i--; | |
| continue; |
| { | |
| "name": "Yemeksepeti Webgüvercin Printable", | |
| "description": "Injects printable css into webguvercin webpage in order to print order trough thermal printer", | |
| "version": "1.0", | |
| "permissions": ["activeTab"], | |
| "manifest_version": 3, | |
| "content_scripts": [ | |
| { | |
| "matches": ["https://siparistakip.yemeksepeti.com/*"], | |
| "css": ["print.css"] |
first thing first you should get access token from bitly with following instructions:
run following command for installation and refresh your bash session
| #!/bin/bash | |
| # Searchs $FILE's $TEXT changes in all branches | |
| # Author: Yunus Oksuz <[email protected]> | |
| # track all remote branches | |
| git branch -a | grep -v HEAD | perl -ne 'chomp($_); s|^\*?\s*||; if (m|(.+)/(.+)| && not $d{$2}) {print qq(git branch --track $2 $1/$2\n)} else {$d{$_}=1}' | csh -xfs | |
| TEXT="1\\.8\\.76" | |
| FILE="build.gradle" |
| // | |
| // Credentials.swift | |
| // | |
| // Created by Yunus Oksuz on 30.12.2017. | |
| // Copyright © 2017 Yunus Oksuz. All rights reserved. | |
| // | |
| import Foundation | |
| class Credentials { |
| public Response fileUpload(URL url, String fieldName, String fileName, InputStream content, List<BasicNameValuePair> params, List<Header> headers) throws IOException { | |
| HttpClient client = getHttpClient(); | |
| HttpPost post = new HttpPost(url.toString()); | |
| if (null != headers) { | |
| for (Header h : headers) { | |
| post.addHeader(h); | |
| } | |
| } |
| // plunker | |
| // http://plnkr.co/edit/fYTqD8qYPcULRKZ2zqdA | |
| (function() { | |
| var app1 = angular.module('myApp1', ['myApp2']); | |
| app1.directive('myApp', function() { | |
| return { | |
| scope: {}, | |
| template: '<inside-directive chart-config="vm.chartConfig"></inside-directive>', | |
| bindToController: true, |
| { | |
| "color_scheme": "Packages/User/SublimeLinter/Monokai (SL).tmTheme", | |
| "ignored_packages": | |
| [ | |
| "Vintage" | |
| ], | |
| "translate_tabs_to_spaces": true, | |
| "word_wrap": false, | |
| "line_padding_bottom": 0, | |
| "draw_white_space": "selection", |
| input { | |
| beats { | |
| port => 5044 | |
| type => "php5-fpm" | |
| ssl => true | |
| ssl_certificate => "/etc/pki/tls/certs/logstash-forwarder.crt" | |
| ssl_key => "/etc/pki/tls/private/logstash-forwarder.key" | |
| } | |
| } |