How to make an application icon for macOS using
iconset&iconutil
This file contains hidden or 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 | |
| cd /opt/bitnami | |
| sudo ./ctlscript.sh stop | |
| sudo cp -f apache-tomcat/webapps/jenkins.war apps/jenkins/jenkins.war.bak | |
| sudo wget http://mirrors.jenkins-ci.org/war/latest/jenkins.war | |
| sudo mv jenkins.war apache-tomcat/webapps/ | |
| sudo rm -rf apache-tomcat/work/Catalina/localhost | |
| sudo rm -rf apache-tomcat/webapps/jenkins | |
| sudo ./ctlscript.sh start |
This file contains hidden or 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
| function myFunction() { | |
| var mainSheet = SpreadsheetApp.getActiveSpreadsheet().getSheetByName('Form Responses 1'); | |
| var data = mainSheet.getDataRange().getValues(); | |
| var doneValue = "Done"; | |
| for (var i = 0; i < data.length; i++) { | |
| Logger.log(mainSheet.getRange(i+1, 10).getValue()); | |
| if (mainSheet.getRange(i+1, 10).getValue() != doneValue) { | |
| var email = data[i][2]; // Assume email is in column 3 | |
This file contains hidden or 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
| #!/usr/bin/env python3 | |
| def solve(customer, warehouses): | |
| """ | |
| Choose warehoues to take products for customer base on some rules. | |
| Input: | |
| `customer`: Dictionary contains city & product list of a customer | |
| Eg: {"city": "Hanoi", "product": {"book": 1, "pen": 2}} |
This file contains hidden or 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
| from googleads import adwords | |
| CAMPAIGN_ID = 'YOUR_CAMPAIGN_ID' | |
| BLOCK_IP = '1.1.1.1' | |
| def main(client, campaign_id, block_ip): | |
| # Initialize appropriate service. | |
| campaign_criterion_service = client.GetService('CampaignCriterionService', |
This file contains hidden or 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
| from __future__ import print_function | |
| import boto3 | |
| from datetime import datetime, timedelta | |
| from os import getenv | |
| from sys import stdout | |
| from time import time | |
| DEFAULT_RETENTION_DAYS = 1 | |
| AUTO_SNAPSHOT_SUFFIX = 'auto' |
This file contains hidden or 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
| import requests | |
| import bs4 | |
| import os | |
| root = "https://learninglink.oup.com" | |
| url = root + "/access/laitz-4e-student-resources" | |
| def get_page_links(): | |
| res = requests.get(url) |
OlderNewer