How to make an application icon for macOS using
iconset
&iconutil
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
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) |
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
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 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 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 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 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 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 | |
import base64 | |
import json | |
import logging | |
logging.basicConfig() | |
logger = logging.getLogger() | |
logger.setLevel(logging.DEBUG) |
- How to Build a Successful Information Security Career (Daniel Miessler)
- The First Steps to a Career in Information Security (Errata Security - Marisa Fagan)
- Hiring your first Security Professional (Peerlyst - Dawid Balut)
- How to Start a Career in Cyber security
- How to Get Into Information Security (ISC^2)
- https://www.isc2.org/how-to-get-into-information-security.aspx
I hereby claim:
- I am manhtai on github.
- I am manhtai (https://keybase.io/manhtai) on keybase.
- I have a public key ASAGaIx-aeYCP7eija_x4KxghP4CvhKrvvIMACWFJ2npQwo
To claim this, I am signing this object:
NewerOlder