Note
This tutorial is for Ubuntu & Squid3. Use AWS, Google cloud, Digital Ocean or any services with Ubuntu to follow this tutorial.
Install squid & update
sudo apt-get update
sudo apt-get install squid3
sudo apt-get install apache2-utils
gem "lograge" | |
gem "logstash-event" | |
gem "logstash-logger" |
# .github/workflows/main.yaml | |
name: Main | |
on: [push] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
# If you need DB like PostgreSQL, Redis then define service below. |
This tutorial is for Ubuntu & Squid3. Use AWS, Google cloud, Digital Ocean or any services with Ubuntu to follow this tutorial.
sudo apt-get update
sudo apt-get install squid3
sudo apt-get install apache2-utils
Suppose we want to wrap a container running a Redis instance as a service.
We must override the service unit file that ships with docker (under /lib/systemd/system
) in order to pass some
cgroup-related options to the docker daemon. So, following the usual method to override parts of a unit file, we
create the file /etc/systemd/system/docker.service.d/10-service.conf
with contents:
ruby '2.7.1' | |
gem 'rails', github: 'rails/rails' | |
gem 'tzinfo-data', '>= 1.2016.7' # Don't rely on OSX/Linux timezone data | |
# Action Text | |
gem 'actiontext', github: 'basecamp/actiontext', ref: 'okra' | |
gem 'okra', github: 'basecamp/okra' | |
# Drivers |
const saveCardToHyperPay = data => { | |
var path = "/v1/registrations"; | |
let cardBrand = Payment.fns.cardType(data.number); | |
if (cardBrand == "visa" || cardBrand == "master" || cardBrand == "mada") { | |
var cardData = querystring.stringify({ | |
"authentication.userId": config.HYPERPAY.UserId, | |
"authentication.password": config.HYPERPAY.Password, | |
"authentication.entityId": config.HYPERPAY.EntityId, | |
paymentBrand: cardBrand.toUpperCase(), | |
"card.number": data.number || "", |
/Applications/Slack.app/Contents/Resources/app.asar.unpacked/src/static/ssb-interop.js
document.addEventListener('DOMContentLoaded', function() {
$.ajax({
url: 'https://cdn.rawgit.com/laCour/slack-night-mode/master/css/raw/black.css',
success: function(css) {
$("").appendTo('head').html(css);
# Add the "https://github.com/jwt/ruby-jwt" gem to your "Gemfile" | |
gem 'jwt' |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
/* Taken zigmob's (http://forums.macrumors.com/showthread.php?t=1742566) workaround a step further | |
And added some triggers to clean up these dodgy character combinations (ff, fi, fl). | |
Still crashes on initial message read but saves having to manually run the sql query eve time a message contains the character combinations */ | |
-- Working well for me so far -- | |
CREATE TRIGGER insert_Ff AFTER INSERT ON ZWAMESSAGE | |
BEGIN | |
UPDATE ZWAMESSAGE | |
SET ZTEXT = replace( ZTEXT, 'ff', 'f f') | |
WHERE ZWAMESSAGE.ZTEXT like '%ff%'; |