-
Enable
#enable-devtools-experiments
flag inchrome://flags
section. -
Open Chorme Devtools and check
Settings > Experiments > Allow custom UI themes
. -
Create the following four files in a dedicated folder.
3.1.
devtools.html
<html> <head></head> <body><script src="devtools.js"></script></body>
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 ubuntu:16.04 | |
RUN apt-get update && \ | |
apt-get install -y \ | |
build-essential \ | |
zlib1g-dev \ | |
libreadline-dev \ | |
libssl-dev \ | |
libffi-dev \ | |
libncurses-dev \ |
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 java.io.Console; | |
import java.io.IOException; | |
import java.io.Reader; | |
import java.lang.Runtime; | |
public class Main { | |
public static void main(String[] args) throws IOException, InterruptedException { | |
System.out.println("Press the \"z\" key to exit!"); | |
String[] cmd = {"/bin/sh", "-c", "stty raw </dev/tty"}; |
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
# Enable syntax-highlighting in less. | |
# Last tested on CentOS 6.3. | |
# | |
# First, add these two lines to ~/.bashrc | |
# export LESSOPEN="| /usr/bin/src-hilite-lesspipe.sh %s" | |
# export LESS=" -R " | |
sudo yum -y install boost boost-devel ctags | |
wget http://springdale.math.ias.edu/data/puias/unsupported/6/x86_64/source-highlight-3.1.6-3.puias6.x86_64.rpm |
We define super digit of an integer x
using the following rules:
- If
x
has only 1 digit, then its super digit isx
. - Otherwise, the super digit of
x
is equal to the super digit of thedigit-sum
ofx
. Here,digit-sum
of a number is defined as the sum of its digits.
For example, super digit of 9875 will be calculated as:
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
package main | |
import ( | |
"fmt" | |
"os" | |
"time" | |
"github.com/brianvoe/gofakeit" | |
"github.com/getsentry/raven-go" | |
"github.com/pkg/errors" |
- Download docker-compose.yml to dir named
sentry
- Change
SENTRY_SECRET_KEY
to random 32 char string - Run
docker-compose up -d
- Run
docker-compose exec sentry sentry upgrade
to setup database and create admin user - (Optional) Run
docker-compose exec sentry pip install sentry-slack
if you want slack plugin, it can be done later - Run
docker-compose restart sentry
- Sentry is now running on public port
9000
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/sh | |
certbot certonly \ | |
--manual \ | |
-d '*.yourdomain.com' \ | |
-d yourdomain.com \ | |
--agree-tos \ | |
--no-bootstrap \ | |
--manual-public-ip-logging-ok \ | |
--preferred-challenges dns-01 \ |
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
unbind-key C-b | |
set-option -g prefix C-a | |
bind-key C-a send-prefix | |
# split commands | |
unbind-key '%' | |
unbind-key '"' | |
bind-key '/' split-window -h | |
bind-key '-' split-window -v |
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
[unix_http_server] | |
file=/var/run/supervisor.sock | |
chmod=0770 | |
chown=root:supervisor | |
[supervisord] | |
pidfile=/var/run/supervisord.pid | |
nodaemon=false | |
logfile=/var/log/supervisord/supervisord.log | |
loglevel=error |
NewerOlder