This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Check if .gitignore file exists | |
if [ ! -f .gitignore ]; then | |
echo ".gitignore file not found!" | |
exit 1 | |
fi | |
# Read each line in .gitignore | |
while IFS= read -r line |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Taps | |
tap 'caskroom/cask' | |
tap 'homebrew/cask-fonts' | |
tap 'homebrew/cask-versions' | |
tap 'homebrew/bundle' | |
## Shell Utilities | |
brew 'coreutils' | |
brew 'zsh' | |
brew 'zsh-completions' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#metric-group-PatientPregnancyOutcomes-6 > div > table > tbody > tr:nth-child(19) | |
#metric-group-PatientPregnancyOutcomes-6 > div > table > tbody > tr:nth-child(19) > td |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DefaultReportingYear: 2017 | |
IsApprovePreviousYearFinalReport: False | |
ReportingYear: 2016 | |
Diagnosis: -1 | |
CycleType: 1 | |
AdditionalFilters[0].CsrAdditionalFilterID: 1 | |
AdditionalFilters[0].IncludeOnly: false | |
AdditionalFilters[0].Exclude: false | |
AdditionalFilters[1].CsrAdditionalFilterID: 2 | |
AdditionalFilters[1].IncludeOnly: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'selenium-webdriver' | |
module ScrapeTools | |
def self.connect(base_url) | |
loop do | |
# proxy | |
proxy = ProxyServer.get_round_robin # get a proxy that hasent been used lately | |
puts "[ScrapeTools] trying proxy: #{proxy.as_string}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# == Schema Information | |
# | |
# Table name: proxy_servers | |
# | |
# id :uuid not null, primary key | |
# ip_addr :string | |
# port :string | |
# country :string | |
# last_used_at :datetime | |
# active :boolean |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
commands: | |
create_post_dir: | |
command: "mkdir -p /opt/elasticbeanstalk/hooks/appdeploy/post" | |
ignoreErrors: true | |
files: | |
"/etc/init/que.conf": | |
mode: "000755" | |
owner: root | |
group: root |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -e | |
# -------------------------------------------------------- | |
# Generate app icons and xcassets file from a single image | |
# Ben Clayton, Calvium Ltd. | |
# https://gist.github.com/benvium/2be6d673aa9ac284bb8a | |
# -------------------------------------------------------- | |
# | |
# Usage with an input of 1024x1024 PNG file | |
# generateAppIcon.sh AppIcon.png |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
deb http://deb.debian.org/debian stretch main contrib non-free | |
deb-src http://deb.debian.org/debian stretch main contrib non-free | |
deb http://deb.debian.org/debian stretch-updates main contrib non-free | |
deb-src http://deb.debian.org/debian stretch-updates main contrib non-free | |
deb http://security.debian.org/ stretch/updates main contrib non-free | |
deb-src http://security.debian.org/ stretch/updates main contrib non-free |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Whammy = require('node-whammy'), | |
sharp = require('sharp'); | |
function canvasToWebp(canvas, callback) { | |
sharp(canvas.toBuffer()).toFormat(sharp.format.webp).toBuffer(function(e, webpbuffer) { | |
var webpDataURL = 'data:image/webp;base64,' + webpbuffer.toString('base64'); | |
callback(webpDataURL); | |
}); |
NewerOlder