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
| id=$(xrandr | sed -n 2p | awk '{print $1}') | |
| read -p "Enter turned on seconds : " on | |
| read -p "Enter turned off seconds : " off | |
| while [ 1 ] | |
| do | |
| xrandr --output $id --brightness 1 | |
| sleep $on | |
| xrandr --output $id --brightness 0 |
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
| # see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
| # for examples | |
| # If not running interactively, don't do anything | |
| [ -z "$PS1" ] && return | |
| # don't put duplicate lines in the history. See bash(1) for more options | |
| # ... or force ignoredups and ignorespace | |
| HISTCONTROL=ignoredups:ignorespace |
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
| local user='%{$fg[magenta]%}%n%{$reset_color%}' | |
| local pwd='%{$fg[blue]%}%~%{$reset_color%}' | |
| local tme='%{$fg[red]%}⌚ %*%{$reset_color%}' | |
| local rvm='' | |
| if which rvm-prompt &> /dev/null; then | |
| rvm='%{$fg[green]%}‹$(rvm-prompt i v g)›%{$reset_color%}' | |
| else | |
| if which rbenv &> /dev/null; then | |
| rvm='%{$fg[green]%}‹$(rbenv version | sed -e "s/ (set.*$//")›%{$reset_color%}' |
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/python | |
| # -*- coding:utf-8 -*- | |
| import smtplib | |
| from email.MIMEMultipart import MIMEMultipart | |
| from email.MIMEBase import MIMEBase | |
| from email.MIMEText import MIMEText | |
| from email import Encoders | |
| from email import Utils | |
| from email.header import Header |
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
| docker-compose up / down | |
| docker images | |
| docker rm {{ ps -al }} | |
| docker rmi {{ image id }} | |
| docker ps -a | |
| ex) | |
| docker-compose run web bash |
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
| Lambda function handler & role | |
| * Handler | |
| index.handler | |
| File.Function | |
| ex) name.js with function exampleFunc | |
| name.exampleFunc | |
| * Role | |
| Granual control for rolse |
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
| for i in * | |
| do | |
| if $( file -i "${i}"|grep -q iso-8859-1 ); then | |
| iconv -f euc-kr -t utf-8 "$i" -o "out/${i}" | |
| fi | |
| done |
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
| asgi-redis==1.0.0 | |
| asgiref==1.0.0 | |
| attrs==15.2.0 | |
| autobahn==0.17.1 | |
| blinker==1.3 | |
| channels==1.0.2 | |
| chardet==2.3.0 | |
| cloud-init==0.7.8 | |
| command-not-found==0.3 | |
| configobj==5.0.6 |
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
| <!doctype html> | |
| <html> | |
| <head> | |
| <script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script> | |
| <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/js/bootstrap.min.js" integrity="sha384-h0AbiXch4ZDo7tp9hKZ4TsHbi047NrKGLO3SEJAg45jXxnGIfYzk4Si90RDIqNm1" crossorigin="anonymous"></script> | |
| <script src="https://unpkg.com/vue/dist/vue.js"></script> | |
| <script src="https://unpkg.com/axios/dist/axios.min.js"></script> | |
| <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/css/bootstrap.min.css" integrity="sha384-/Y6pD6FV/Vv2HJnA6t+vslU6fwYXjCFtcEpHbNJ0lyAFsXTsjBbfaDjzALeQsN6M" crossorigin="anonymous"> |
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 | |
| quiz_id = '1' | |
| score = 18 | |
| name = 'test name 11' | |
| headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36'} | |
| r = requests.get('https://grandedesafio.com/ko/quiz/' + quiz_id, headers=headers) | |
| idx = r.text.find('<input id="key"') | |
| key = r.text[idx+23:] |
OlderNewer