Skip to content

Instantly share code, notes, and snippets.

View Loopshape's full-sized avatar
🏠
Hunting my achieved Bitcoin

loop.core Loopshape

🏠
Hunting my achieved Bitcoin
View GitHub Profile
@Loopshape
Loopshape / clock.css
Created March 30, 2014 10:41
A simple clock with a date (actual: german language).
.digitalClock {
padding: 10px 20px;
color: #fff;
background-color: #822;
font-family: sans-serif;
line-height: 250%;
text-align: center;
}
p.clockDisplay {
@Loopshape
Loopshape / paypal_summary.txt
Created April 30, 2014 07:08
PHP • PayPal REST API - A small How-To
If you want to use ExpressCheckout via the REST API from Paypal, you can follow these steps to get a working API within your webapp.
1. Install Composer, Curl and PHP on a Webserver
2. a) Create a composer.json file with following data from the top of this page:
https://developer.paypal.com/webapps/developer/docs/api/
2.b) Install the libraries with composer install
2.c) Include the autoload.php from the Composer installation with a require_once.
@Loopshape
Loopshape / SassMeister-input.scss
Created June 5, 2014 21:54
Generated by SassMeister.com.
// ----
// Sass (v3.3.8)
// Compass (v1.0.0.alpha.18)
// ----
@charset "utf-8";
/*
* SASS by Loopshape.com
*
@Loopshape
Loopshape / 0_reuse_code.js
Last active August 29, 2015 14:21
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@Loopshape
Loopshape / gulpfile.js
Last active January 30, 2016 07:43 — forked from kentliau/gulpfile.js
Gulpfile configuration for Laravel
/*
|--------------------------------------------------------------------------
| Elixir Asset Management
|--------------------------------------------------------------------------
|
| Elixir provides a clean, fluent API for defining some basic Gulp tasks
| for your Laravel application. By default, we are compiling the Sass
| file for our application, as well as publishing vendor resources.
|
| This is a fork from: https://gist.github.com/kentliau
<?php
/*
SQLyog
Copyright 2003-2006, Webyog
http://www.webyog.com
HTTP Tunneling Page
This page exposes the MySQL API as a set of web-services which is consumed by SQLyog - the most popular GUI to MySQL.
@Loopshape
Loopshape / sql_replace_data.php
Created March 10, 2016 08:10
MYSQL-DATABASE VALUE REPLACEMENT FOR ALL TABLES OR ONLY ONE
<?php
// MYSQL-DATABASE VALUE REPLACEMENT FOR ALL TABLES OR ONLY ONE
// Based on a script from: Lee Woodman
// http://stackoverflow.com/questions/11839060/find-and-replace-text-in-all-table-using-mysql-query
// Extended functionality added by: Arjuna Noorsanto <awebgo.net@gmail.com>
// https://github.com/Loopshape
@Loopshape
Loopshape / .htaccess
Created June 4, 2016 20:22 — forked from ScottPhillips/.htaccess
Common .htaccess Redirects
#301 Redirects for .htaccess
#Redirect a single page:
Redirect 301 /pagename.php http://www.domain.com/pagename.html
#Redirect an entire site:
Redirect 301 / http://www.domain.com/
#Redirect an entire site to a sub folder
Redirect 301 / http://www.domain.com/subfolder/
#!/bin/bash
#If no argument is specified, ask for it and exit
if [[ -z "$@" ]];
then
echo "An argument is needed to run this script";
exit
else
arg="$@"
#Basic check to make sure argument number is valid. If not, display error and exit
if [[ $(($(echo $arg | grep -o "\s" | wc --chars) / 2 )) -ne 2 ]];
@Loopshape
Loopshape / debian-install-zram.sh
Created May 28, 2017 13:15
Install zRAM on Debian(8)
#!/bin/bash
#
not_root() {
echo "ERROR: You have to be root to execute this script"
exit 1
}
zram_exists() {
echo "ERROR: /etc/init.d/zram already exists"