This only works on debian stretch (stable)
gpg --verify check-apt-update.sh.asc
ansible-playbook upgrade-apt.yml -i <YOURINV>Thanks to @eighthave for original script.
Ref:
| #!/bin/bash | |
| # | |
| # Workaround CVE-2019-5736 via patched runc provided by | |
| # https://github.com/rancher/runc-cve | |
| # The script does: | |
| # 1) find "docker-runc" executable and docker version | |
| # 2) download corresponding patched runc | |
| # 3) dpkg-divert (ie "permanently move") pkg installed runc and replace it by 2) | |
| # | |
| # Run with "-n" for dry-run. |
This only works on debian stretch (stable)
gpg --verify check-apt-update.sh.asc
ansible-playbook upgrade-apt.yml -i <YOURINV>Thanks to @eighthave for original script.
Ref:
| #!/bin/bash | |
| # NB: First install nscd with sudo apt-get install nscd | |
| # run this command to flush dns cache: | |
| sudo /etc/init.d/dns-clean restart | |
| # or use: | |
| sudo /etc/init.d/networking force-reload | |
| # Flush nscd dns cache: | |
| sudo /etc/init.d/nscd restart |
AWS 학습 링크집 시리즈
AWS 공식문서 중 보안에 관련된 자료들을 한글 자료 중심으로 정리한 페이지 입니다.
| #!/bin/sh | |
| # ////////////////////////////////////////////////////////////////////// | |
| # | |
| # linespace.sh | |
| # A shell script that modifies all .otf and .ttf fonts in the | |
| # working directory to $PERCENT_UPM% UPM line spacing | |
| # Copyright 2018 Christopher Simpkins | |
| # MIT License | |
| # |
| These instructions are an amalgamation of those posted at http://jdevel.wordpress.com/2011/03/26/running-opengrok-on-windows/ and my own experience. | |
| To setup OpenGrok on Windows running under Tomcat: | |
| 1. Download OpenGrok binary. Just go to OpenGrok Home and download the latest (0.10, currently) binary | |
| 2. Download ctags. Just go to ctags, download windows zip file and extract it somewhere. | |
| 3. Edit web.xml. You need to extract lib/source.war somewhere and modify WEB-INF/web.xml slightly. I’ve modified the CONFIGURATION param to point to my generated configuration.xml file(more about it later) and added SRC_ROOT and DATA_ROOT to point to folder with sources to index and folder that OpenGrok should keep it’s data in (I’m not sure if these two are needed if you pass in configuration.xml) | |
| <context-param> | |
| <param-name>CONFIGURATION</param-name> | |
| <param-value>D:/GrokTest/configuration.xml</param-value> |
| import boto3 | |
| import json | |
| client = boto3.client('iam') | |
| paginator = client.get_paginator('list_policies') | |
| response_iterator = paginator.paginate(Scope='AWS') | |
| managed_policies = [] | |
| for response in response_iterator: | |
| for policy in response['Policies']: |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <opml version="1.0"> | |
| <head> | |
| <title>AWS RSS Feeds</title> | |
| </head> | |
| <body> | |
| <outline title="AWS Status" text="AWS Status"> | |
| <outline text="Amazon Mobile Analytics (N. Virginia) Service Status" title="Amazon Mobile Analytics (N. Virginia) Service Status" type="rss" xmlUrl="http://status.aws.amazon.com/rss/analytics-us-east-1.rss" htmlUrl="http://status.aws.amazon.com/" rssfr-favicon="http://status.aws.amazon.com/favicon.ico"/> | |
| <outline text="Amazon AppStream (N. Virginia) Service Status" title="Amazon AppStream (N. Virginia) Service Status" type="rss" xmlUrl="http://status.aws.amazon.com/rss/appstream-us-east-1.rss" htmlUrl="http://status.aws.amazon.com/" rssfr-favicon="http://status.aws.amazon.com/favicon.ico"/> | |
| <outline text="Auto Scaling (Tokyo) Service Status" title="Auto Scaling (Tokyo) Service Status" type="rss" xmlUrl="http://status.aws.amazon.com/rss/autoscaling-ap-northeast-1.rss" htmlUrl="http://status.a |
| import pandas as pd | |
| from sklearn import linear_model | |
| from sklearn.ensemble import VotingClassifier | |
| from sklearn.feature_extraction.text import CountVectorizer, TfidfVectorizer | |
| from sklearn.model_selection import GridSearchCV | |
| from sklearn.naive_bayes import MultinomialNB | |
| from sklearn.pipeline import Pipeline | |
| Y_COLUMN = "author" | |
| TEXT_COLUMN = "text" |