Skip to content

Instantly share code, notes, and snippets.

View hbt's full-sized avatar

Hassen Ben Tanfous hbt

View GitHub Profile
recoll-1.34.6.tar.gz
@hbt
hbt / out
Created January 25, 2022 04:28
vagrant@homestead:~/segmetrics.importer$ phpunit
PHPUnit 6.5.14 by Sebastian Bergmann and contributors.
Tests\Integrations\ActiveCampaignTest
✓ import products [0.228s]
✓ sync contact tags [0.024s]
✓ restart after timeout [0.018s]
✓ import contacts [1.767s]
@hbt
hbt / script.bash
Last active September 29, 2021 19:52
#!/usr/bin/env bash
cp /var/www/vhosts/hassen.tiltedpixeldev.com/gh.pub /tmp/gh.pub
cp /var/www/vhosts/hassen.tiltedpixeldev.com/hbt.pub /tmp/hbt.pub
for entry in "/var/www/vhosts"/*pixeldev.com
do
cd $entry
mkdir -p .ssh &> /dev/null
chmod 700 .ssh
@hbt
hbt / fix-ownership.sh
Last active September 29, 2021 18:58
#!/usr/bin/env bash
set -euo pipefail bash
for entry in "/home"/*pixeldev.com
do
cd $entry
username=$(stat -c "%U" .)
chown $username:psacln -R .ssh
done
@hbt
hbt / script.bash
Last active September 29, 2021 19:12
#!/usr/bin/env bash
for entry in "/var/www/vhosts"/*pixeldev.com
do
cd $entry
mv .ssh/authorized_keys .ssh/auth.bak
done
@hbt
hbt / push.yml
Last active September 19, 2021 06:50
name: push
defaults:
run:
shell: bash
on:
push:
branches: [main, develop, staging] # // TODO(hbt) NEXT rm staging branch - only relevant because we don't want to merge current work into develop
for entry in "/tmp/tmp-1629844739"/*
do
cd $entry
git checkout origin/develop
git switch develop
sed -i 's/PREFIX: release_/PREFIX: v/g' .github/workflows/component_release.yml
git add .github/workflows/component_release.yml
git commit -m "fix composer tag release prefix"
git push
phpinfo()
PHP Version => 7.4.18
System => Linux li2004-54 4.15.0-142-generic #146-Ubuntu SMP Tue Apr 13 01:11:19 UTC 2021 x86_64
Build Date => May 3 2021 11:26:48
Server API => Command Line Interface
Virtual Directory Support => disabled
Configuration File (php.ini) Path => /etc/php/7.4/cli
Loaded Configuration File => /etc/php/7.4/cli/php.ini
Scan this dir for additional .ini files => /etc/php/7.4/cli/conf.d

Awesome Go

Build Status Awesome Slack Widget Netlify Status

Sponsorships

Digital Ocean

We have no monthly cost, but we have employees working hard to maintain the Awesome Go, with money raised we can repay the effort of each person involved! All billing and distribution will be open to the entire community.

A cura

Awesome Go

Build Status Awesome Slack Widget Netlify Status

Sponsorships

Digital Ocean

We have no monthly cost, but we have employees working hard to maintain the Awesome Go, with money raised we can repay the effort of each person involved! All billing and distribution will be open to the entire community.

A cura