Skip to content

Instantly share code, notes, and snippets.

@jackblk
jackblk / squid_proxy_tutorial.md
Last active May 2, 2024 05:35
Tutorial on how to setup a squid proxy with authentication.

Note

This tutorial is for Ubuntu & Squid3. Use AWS, Google cloud, Digital Ocean or any services with Ubuntu to follow this tutorial.

Install squid & update

sudo apt-get update
sudo apt-get install squid3
sudo apt-get install apache2-utils
@raquelhortab
raquelhortab / build.gradle (app)
Last active May 2, 2024 05:35
Crashlytics migration errors
def versionMajor = 1
def versionMinor = 1
def versionPatch = 3
def versionBuild = 0
buildscript {
repositories {
mavenCentral()
// maven { url 'https://maven.fabric.io/public' }
@raquelhortab
raquelhortab / main.yml
Last active May 2, 2024 05:35
Main workflow for test automation with github actions
name: CI
# this will fire the action on any push to the master branch, you can modify the branch or adapt it to be fired on other events (eg. pull requests)
on:
push:
branches:
- master
jobs:
build:
@mage1k99
mage1k99 / how_to_install.md
Last active May 2, 2024 05:33
How to install WordPress with caddy2

How to Install WordPress in Caddy 2

PHP Version : 8.0 Wordpress version : 5.7.2 Caddy version : v2.4.3


Note!

This one is outdated: please check the offical guide here

@bmaupin
bmaupin / gammu-wammu.md
Last active May 2, 2024 05:33
Export feature phone SMS using Gammu/Wammu

General notes

SMS

Gammu/Wammu may not be able to retrieve dates for sent messages, only received messages.

MMS

MMS messages may not be able to be exported using Gammu/Wammu with some phones. If you don't see MMS in the exported messages, you may be able to save the message attachments to the phone's storage and copy them to a PC via a USB cable.

@remarkablemark
remarkablemark / phaser-toss-the-turtle-demo.js
Created April 26, 2024 19:00
Phaser: Toss the Turtle prototype
class Example extends Phaser.Scene
{
preload() {
this.load.image('backdrop', 'assets/pics/platformer-backdrop.png');
this.load.image('cannon_head', 'assets/tests/timer/cannon_head.png');
this.load.image('cannon_body', 'assets/tests/timer/cannon_body.png');
this.load.spritesheet('chick', 'assets/sprites/chick.png', { frameWidth: 16, frameHeight: 18 });
}
create() {

How to add an image to a gist

  1. Create a gist if you haven't already.
  2. Clone your gist:
    # make sure to replace `<hash>` with your gist's hash
    git clone https://gist.github.com/<hash>.git # with https
    git clone git@gist.github.com:<hash>.git     # or with ssh
@bmaupin
bmaupin / free-backend-hosting.md
Last active May 2, 2024 05:31
Free backend hosting
@stevenyap
stevenyap / Capybara.md
Created October 23, 2013 05:03
Capybara Cheatsheet

Refer to: https://github.com/jnicklas/capybara

Note: Capybara does not show exceptions created by app. It will instead only tell you that the element you are searching for is not found.

Setup

  • Gemfile setup
gem "capybara"
gem 'selenium-webdriver' # requires for live browser demostration