Skip to content

Instantly share code, notes, and snippets.

View bisseri's full-sized avatar
👨‍💻
Working

Biser Cheshmedjiev bisseri

👨‍💻
Working
View GitHub Profile
@bisseri
bisseri / MigrateAll.java
Created January 4, 2021 18:03 — forked from tnsingle/MigrateAll.java
Migrate Content Script
import com.hanleywood.antispam.*;
import com.hanleywood.antispam.akismet.*;
import com.hanleywood.api.newsletter.*;
import com.hanleywood.api.newsletter.models.*;
import com.hanleywood.api.newsletter.models.components.*;
import com.hanleywood.api.newsletter.models.results.*;
import com.hanleywood.api.newsletter.throwables.*;
import com.hanleywood.architect.*;
import com.hanleywood.builder.*;
import com.hanleywood.debug.*;
#!/usr/bin/env bash
# Use this script to test if a given TCP host/port are available
WAITFORIT_cmdname=${0##*/}
echoerr() { if [[ $WAITFORIT_QUIET -ne 1 ]]; then echo "$@" 1>&2; fi }
usage()
{
cat << USAGE >&2
@bisseri
bisseri / wait_for_http_200.sh
Created October 24, 2020 01:37 — forked from rgl/wait_for_http_200.sh
Wait for an HTTP endpoint to return 200 OK with Bash and curl
bash -c 'while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' localhost:9000)" != "200" ]]; do sleep 5; done'
# also check https://gist.github.com/rgl/c2ba64b7e2a5a04d1eb65983995dce76
@bisseri
bisseri / my.cnf
Created January 25, 2020 22:14 — forked from fevangelou/my.cnf
Optimized my.cnf configuration for MySQL/MariaSQL (on Ubuntu, CentOS etc. servers)
# Optimized my.cnf configuration for MySQL/MariaSQL
#
# by Fotis Evangelou, developer of Engintron (engintron.com)
#
# ~ Updated January 2020 ~
#
#
# The settings provided below are a starting point for a 2GB - 4GB RAM server with 2-4 CPU cores.
# If you have different resources available you should adjust accordingly to save CPU, RAM & disk I/O usage.
#
@bisseri
bisseri / deploy.sh
Created December 4, 2019 19:16 — forked from BenSampo/deploy.sh
Laravel deploy script
# Change to the project directory
cd /home/forge/domain.com
# Turn on maintenance mode
php artisan down
# Pull the latest changes from the git repository
# git reset --hard
# git clean -df
git pull origin master
@bisseri
bisseri / tmux.conf
Created November 21, 2019 18:14 — forked from spicycode/tmux.conf
The best and greatest tmux.conf ever
# 0 is too far from ` ;)
set -g base-index 1
# Automatically set window title
set-window-option -g automatic-rename on
set-option -g set-titles on
#set -g default-terminal screen-256color
set -g status-keys vi
set -g history-limit 10000
@bisseri
bisseri / reinvent-2018-session-videos.md
Created August 1, 2019 04:25 — forked from LukasMusebrink/reinvent-2018-session-videos.md
Links to YouTube videos of AWS re:Invent 2018 sessions

The current list contains 438 sessions. The list will be updated regularly, at least once a day during reinvent. Last update: 2018-12-02 06:58 +00:00

Title Description Video
[NEW LANUCH!] Building modern apps using Amazon DynamoDB transactions (DAT374) DynamoDB transactions enables developers to maintain correctness of their data at scale by adding atomicity and isolation guarantees for multi-item conditional ... IMAGE ALT TEXT{:target="_blank"}
[NEW LAUNCH!] AWS License Manager Deep Dive (CMP393) AWS License Manager is a new service that makes it easy to bring your existing licenses to the AWS cloud and reduce licensing costs. This service offers a ... [IMAGE ALT TEXT](http://www.youtube.com/watch?v=r7pdaM3OAAQ "AWS re:Invent 2018: [NEW LA
@bisseri
bisseri / crontab file
Created July 31, 2018 20:11 — forked from josh-padnick/crontab file
Create EC2 AMI from Bash Script; Good for cron jobs
PATH=/bin:/usr/local/bin
# Put this in your crontab file to run the script every day at 01:30 (1:30am). Note the PATH variable above; required for this script.
# m h dom mon dow command
30 01 * * * /bin/bash /home/ubuntu/scripts/ec2-create-image.sh i-8a915682 >> /home/ubuntu/logs/crontab.log 2>&1

Keybase proof

I hereby claim:

  • I am bisseri on github.
  • I am bisseri (https://keybase.io/bisseri) on keybase.
  • I have a public key ASDj7GemaQezRcgxnIvc1PVud5KYXyc311LQ80gQYZmq_go

To claim this, I am signing this object: