Skip to content

Instantly share code, notes, and snippets.

Avatar

David Strencsev PhiSYS

  • Cartagena, Spain
View GitHub Profile
@FrancisTurner
FrancisTurner / checkv6cfd.sh
Created Jun 7, 2021
Script to autoupdate armv6 cloudflared
View checkv6cfd.sh
#!/bin/bash -e
# checkv6cfd.sh
# Copyright (c) 2021, Francis Turner
# All rights reserved.
#
# Script that automates checking and if required downloading and replacing of the
# latest armv6 cloudflared as built by Darren Hobin (https://github.com/hobindar)
# for use on pi zeros and other armv6 devices
@MatteoOreficeIT
MatteoOreficeIT / Integrating_Guzzle_6_Asynchronous_Requests_with_ReactPHP.php
Last active Nov 23, 2021
Integrating Guzzle 6 Asynchronous Requests with ReactPHP
View Integrating_Guzzle_6_Asynchronous_Requests_with_ReactPHP.php
<?php
/**
* Credits to :
* @see https://gist.github.com/psampaz/7f2aad5d1d54eeeec8ae
*/
use GuzzleHttp\Handler\CurlMultiHandler;
use GuzzleHttp\HandlerStack;
use GuzzleHttp\Middleware;
@bgunebakan
bgunebakan / umurmur_raspi.sh
Created May 19, 2016
Umurmur server installer script for Raspberry Pi boards.
View umurmur_raspi.sh
#!/bin/sh
# umurmur_raspi . sh
#
# Copyright (c) 2016 Bilal Tonga
#
#
echo "building Dependencies . . . "
sudo apt-get install git
@mmstick
mmstick / transcode-install.sh
Last active Oct 20, 2022
Ubuntu 10-bit HEVC Transcoding Tools -- Contains a script to install x265-10bit-git, libass-git, ffmpeg-git and bomi-git; another for updating everything; as well as scripts for transcoding videos with ffmpeg. Transcoding scripts require the fish shell to be installed.
View transcode-install.sh
#!/bin/bash
sourcedir="$HOME/.local/src/"
mkdir "$sourcedir"
export CFLAGS='-march=native -O3 -pipe -fstack-protector -Wall'
export CXXFLAGS='-march=native -O3 -pipe -fstack-protector -Wall'
function install-dependencies() {
# Install build tools and Mesa VDPAU support.
sudo apt-fast install -y cmake yasm autoconf build-essential mesa-vdpau-drivers \
libvdpau-va-gl1
@irazasyed
irazasyed / spintax.php
Last active Jul 5, 2022
PHP: Text Spinner Class - Nested spinning supported.
View spintax.php
<?PHP
/**
* Spintax - A helper class to process Spintax strings.
*
* @author Jason Davis - https://www.codedevelopr.com/
*
* Tutorial: https://www.codedevelopr.com/articles/php-spintax-class/
*
* Updated with suggested performance improvement by @PhiSYS.
@soarez
soarez / ca.md
Last active Nov 28, 2022
How to setup your own CA with OpenSSL
View ca.md

How to setup your own CA with OpenSSL

For educational reasons I've decided to create my own CA. Here is what I learned.

First things first

Lets get some context first.

@Suave
Suave / gist:6127873
Created Aug 1, 2013
mysql: truncate all tables in one command line
View gist:6127873
mysql -Nse 'show tables' DATABASE_NAME | while read table; do mysql -e "truncate table $table" DATABASE_NAME; done