sudo apt-get update
sudo apt-get install gnome-session gnome-shell-extension-manager gdm3
> select gdm3 in config windowsudo dpkg-reconfigure gdm3
> select gdm3 in config window
sudo rebootsudo apt-get update
sudo apt-get install gnome-session gnome-shell-extension-manager gdm3
> select gdm3 in config windowsudo dpkg-reconfigure gdm3
> select gdm3 in config window
sudo reboot| I have Lua script that manipulates cookies and headers based at GET parameters. | |
| This script didnt work well at one location, strangely the ngx.var.args was empty with ordinary request. | |
| The trick was that in location we have: | |
| location /x/ { | |
| header_filter_by_lua_file /etc/nginx/lua/referrer_cookie.lua; | |
| rewrite ^/x/(.*) /$1 break; | |
| try_files $uri /x/index.htm; |
| #!/bin/bash | |
| function fzf_container() { | |
| docker container ls -a | fzf -m | awk '{print $1}' | |
| } | |
| function fzf_running_container() { | |
| docker ps | fzf -m | awk '{print $1}' | |
| } | |
| function container() { |
| [Unit] | |
| Description=Job that runs the python SimpleHTTPServer daemon | |
| Documentation=man:SimpleHTTPServer(1) | |
| [Service] | |
| Type=simple | |
| WorkingDirectory=/tmp/letsencrypt | |
| ExecStart=/usr/bin/python -m SimpleHTTPServer 80 & | |
| ExecStop=/bin/kill `/bin/ps aux | /bin/grep SimpleHTTPServer | /bin/grep -v grep | /usr/bin/awk '{ print $2 }'` |
| #!/usr/bin/env python | |
| """ | |
| Very simple HTTP server in python. | |
| Usage:: | |
| ./dummy-web-server.py [<port>] | |
| Send a GET request:: | |
| curl http://localhost |
#Unix Toolbox
##Unix Toolbox revision 14.4
| --- ----------------- ---- | |
| Map Quick Explanation Link | |
| --- ----------------- ---- | |
| < <F1> Causes Netrw to issue help | |
| <cr> Netrw will enter the directory or read the file |netrw-cr| | |
| <del> Netrw will attempt to remove the file/directory |netrw-del| | |
| <c-h> Edit file hiding list |netrw-ctrl-h| | |
| <c-l> Causes Netrw to refresh the directory listing |netrw-ctrl-l| | |
| <c-r> Browse using a gvim server |netrw-ctrl-r| | |
| <c-tab> Shrink/expand a netrw/explore window |netrw-c-tab| |
| ## Consumer Throughput: Single consumer thread, no compression | |
| ## Consumer Throughput: 3 consumer thread, no compression | |
| bin/kafka-consumer-perf-test.sh --topic benchmark-3-3-none \ | |
| --zookeeper kafka-zk-1:2181,kafka-zk-2:2181,kafka-zk-3:2181 \ | |
| --messages 15000000 \ | |
| --threads 1 |
| # -*- coding: utf-8 -*- | |
| import airflow | |
| from airflow.executors.celery_executor import CeleryExecutor | |
| from airflow.models import DAG | |
| from airflow.operators.bash_operator import BashOperator | |
| from airflow.operators.dummy_operator import DummyOperator | |
| from airflow.operators.subdag_operator import SubDagOperator | |
| def get_id_list(): | |
| """ idのリストを返す. 例のためとりあえず簡単に0〜99. """ |