Skip to content

Instantly share code, notes, and snippets.

View kekbait's full-sized avatar
🐱
Happy !

kekbait

🐱
Happy !
View GitHub Profile
@marcelrv
marcelrv / Bluez Install.txt
Created December 12, 2018 12:06
Installation Bluez 5.46 on Ubuntu 16.04
Based on https://askubuntu.com/questions/883713/using-bluez-5-43-on-ubuntu-16-04
sudo apt-get install debhelper dh-autoreconf flex bison libdbus-glib-1-dev libglib2.0-dev libcap-ng-dev libudev-dev libreadline-dev libical-dev check dh-systemd libebook1.2-dev devscripts
#unless you have already a gpg key
sudo apt-get install rng-tools
gpg --gen-key
@froulet
froulet / gist:417b87ed61c0a28df5f247a8849f087c
Last active July 2, 2018 07:43
Bulma.io v0.6.2 Twig template for Symfony 3.4 pagination
{# bulma Sliding pagination control implementation #}
{% if pageCount > 1 %}
<div class="columns">
<div class="column">
</div>
<div class="column">
<ul>
<span>
@froulet
froulet / save_docker-compose_images.bash
Last active June 21, 2018 19:31
Bash script to save all images used in a docker-compose.yml file
#!/usr/bin/env bash
for img in $(docker-compose images | tail -n +3 | awk '{print $2 ":" $3}'); do
echo "Saving $img ...";
images="$images $img"
done
docker save -o services.img $images
@enricofoltran
enricofoltran / main.go
Last active April 1, 2024 00:17
A simple golang web server with basic logging, tracing, health check, graceful shutdown and zero dependencies
package main
import (
"context"
"flag"
"fmt"
"log"
"net/http"
"os"
"os/signal"
@gotev
gotev / preBuildGradleTask.groovy
Created December 21, 2016 18:24
Pre build gradle task
// add this after dependencies section in a module
// this script has to be in the same path as the module
// otherwise, relative or absolute paths has to be used
task someScript(type: Exec) {
commandLine 'sh', '-c', './some_script.sh'
}
preBuild.dependsOn someScript
@yangxuan8282
yangxuan8282 / muttrc
Created December 9, 2016 08:56
Hotmail template config for mutt, just insert your mail account and password to "imap_user" and "imap_pass", if 2-factor is enable, generate an app password.
set ssl_starttls=yes
set ssl_force_tls=yes
set imap_user = 'user_name@hotmail.com'
set imap_pass = 'password_here'
set from= $imap_user
set use_from=yes
set realname='Your_Name'
set folder = imaps://imap-mail.outlook.com:993
set spoolfile = "+INBOX"
@kiview
kiview / docker_volume_backup.sh
Last active January 18, 2024 12:25
Docker-Compose volume backup
#!/bin/bash
compose_file_path=$1
project_name=$2
backup_path=$3
function backup_volume {
volume_name=$1
backup_destination=$2
@kaleb
kaleb / .vscode\settings.json
Created July 21, 2016 18:40
Lint Old PHP Using Docker For Visual Studio Code
{
"php.validate.executablePath": "scripts/php.sh"
}