-
Enable
#enable-devtools-experimentsflag inchrome://flagssection. -
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 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/env python | |
| import os | |
| import re | |
| import sys | |
| def generate_new_name(filename): | |
| """ | |
| Generates a new name for a file by removing a pattern matching the regular | |
| expression ' \[A-Za-z0-9\]+ - handbroken.*', cleaning up symbols, |
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
| # 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 |
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
| 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_KEYto random 32 char string - Run
docker-compose up -d - Run
docker-compose exec sentry sentry upgradeto setup database and create admin user - (Optional) Run
docker-compose exec sentry pip install sentry-slackif 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 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
| #!/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 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
| 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 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
| [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 |
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
| package main | |
| import ( | |
| "encoding/hex" | |
| "log" | |
| "net" | |
| "time" | |
| ) | |
| const ( |
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
| class SomeClass { | |
| public void SomeMethod() { | |
| Class<?> clazz = bluetoothSocket.getRemoteDevice().getClass(); | |
| Class<?>[] paramTypes = new Class<?>[]{Integer.TYPE}; | |
| @SuppressWarnings("JavaReflectionMemberAccess") | |
| Method m = clazz.getMethod("createRfcommSocket", paramTypes); | |
| Object[] params = new Object[]{1}; | |
| bluetoothSocket = (BluetoothSocket) m.invoke(bluetoothSocket.getRemoteDevice(), params); | |
| } | |
| } |
NewerOlder