Skip to content

Instantly share code, notes, and snippets.

View suciptoid's full-sized avatar
👋
Hello World

Sucipto suciptoid

👋
Hello World
View GitHub Profile
@damonsk
damonsk / gist:3955099
Created October 25, 2012 20:08
Installing Gammu on Raspberry Pi, Huawei E220
# Send SMS messages using Raspberry Pi.
# Using gammu and Huawei E220
# Prepare SD card with wheezy.
# Login / complete rasp-config / reboot / login
# Set vimrc to prevent annoying ADBC arrow keys
cp /etc/vim/vimrc ~/.vimrc
@evanscottgray
evanscottgray / docker_kill.sh
Last active November 7, 2023 03:40
kill all docker containers at once...
docker ps | awk {' print $1 '} | tail -n+2 > tmp.txt; for line in $(cat tmp.txt); do docker kill $line; done; rm tmp.txt
@joseluisq
joseluisq / xdebug_installation.md
Last active March 20, 2024 14:43
Install PHP Xdebug on Fedora / CentOS x64

PHP Xdebug installation on Fedora/CentOS x64

First, install xdebug package on system:

$ sudo yum install php-pecl-xdebug.x86_64

Or with DNF:

@gggritso
gggritso / nginx_spa.conf
Created December 19, 2014 21:58
Nginx configuration for SPA
root /var/www/your_site;
location / {
try_files $uri /index.html;
}
@vdvm
vdvm / unattended-mysql_secure_installation.md
Created December 23, 2014 14:50
A way to run mysql_secure_installation unattended

anwsers.txt:



mysecret
mysecret


n
@markusos
markusos / KukuKubeSolver.js
Last active July 16, 2016 14:49
Solves the color tests on www.kuku-kube.com automatically
/* KukuKube Solver
*
* Solves the color tests on www.kuku-kube.com automatically.
* To run this, run the javascript code below in the browsers developer console.
* The script identifies the uniquely colored box in the box grid and uses javascript to click on it.
*
* WARNING: Don't run the script if you have epilepsy! It will flash different colors fast when it solves the color tests.
*
* MIT License (MIT)
* Copyright (c) 2015 Markus Östberg
@vluzrmos
vluzrmos / App_Http_VideoStream.php
Last active October 22, 2024 21:47
Laravel VideoStream.
<?php
namespace App\Http;
/**
* Description of VideoStream
*
* @author Rana
* @link https://gist.github.com/vluzrmos/d5682ad426525196d069
*/
<?php
/**
* Description of VideoStream
*
* @author Rana
* @link http://codesamplez.com/programming/php-html5-video-streaming-tutorial
*/
class VideoStream
{
private $path = "";
@vigevenoj
vigevenoj / Instructions for building manually without packaging
Last active April 23, 2021 14:25
Building mosquitto on centos 6 with websocket support
sudo yum install wget mercurial cmake openssl-devel c-ares-devel libuuid-devel
wget https://github.com/warmcat/libwebsockets/archive/v2.1.0.tar.gz
tar xf v2.1.0.tar.gz
cd libwebsockets-2.1.0
mkdir build; cd build
cmake .. -DLIB_SUFFIX=64
sudo make install
echo "/usr/local/lib64" | sudo tee -a /etc/ld.so.conf.d/libwebsockets.conf
sudo ldconfig
ldconfig -p | grep libwebsockets