sort_by_created_at_desc.diff
: sort bycreated_at_asc
instead oflast_activity_at_desc
. See https://github.com/orgs/chatwoot/discussions/10668search_in_email_subjects.diff
: make the search engine work with email subjects
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
HTTP/1.1 200 | |
content-type: text/plain | |
vary: Accept-Encoding | |
x-request-id: ctes5cd3wt8tjd45cj9c99z1eh | |
x-version-id: 7.5.2.7.5.2.6eded827d979ba5811e115a0dba170de.false | |
content-length: 2 | |
date: Wed, 15 Mar 2023 10:39:17 GMT | |
ok |
Ok this is ugly but it fixes the issue and I haven’t found a better solution.
You have to have g++
installed. Then make a symlink from g++-5
to g++
:
cd /usr/bin
sudo ln -s $(which g++) g++-5
And try bundle install
again.
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
# save 1 char by using 'for' instead of 'while' | |
x=42;while(c) | |
for(x=42;c;) | |
# save 1 char by using a missing variable instead of "" | |
split($0,b,"") | |
split($0,b,X) | |
# use ternary operations when possible | |
if(c)a else b |
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
# HAR to EditThisCookie converter | |
def domain: | |
.url | |
| sub("^https?://"; "") | |
| sub("/.*"; ""); | |
def cookies: | |
domain as $d | |
| .cookies|map(. + {"domain": $d, |
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/bash -e | |
# https://wiki.panotools.org/Panorama_scripting_in_a_nutshell | |
# http://hugin.sourceforge.net/tutorials/scans/en.shtml | |
# This is a tool to vertically stitch together screenshots of black and white | |
# scans. | |
# | |
# Install: | |
# | |
# brew cask install hugin |
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
G={} | |
for L in open("T"):a,b=L[5::31];G={a:set(),**G};G[b]=G.get(b,{a})|{a} | |
while G:C=min(c for c in G if not G[c]);G={c:G[c]-{C}for c in G if c!=C};print(C,end="") |
I hereby claim:
- I am bfontaine on github.
- I am bfontaine (https://keybase.io/bfontaine) on keybase.
- I have a public key ASAbQaOETWTGegk7J5bi8AaCgRwog0wUtbAarRRH4cL_Jwo
To claim this, I am signing this object:
Perl:
"test" =~ s/(.*)$/\1s/gr # => "testss
Ruby (same engine as Perl):
"test".gsub(/(.*)$/, "\\1s") # => "testss"
NewerOlder