Skip to content

Instantly share code, notes, and snippets.

View powolnymarcel's full-sized avatar
:octocat:
⭐️ Stay hungry. Stay foolish. ⭐️

Talk is cheap show me the code powolnymarcel

:octocat:
⭐️ Stay hungry. Stay foolish. ⭐️
View GitHub Profile
@jakebellacera
jakebellacera / ICS.php
Last active October 11, 2024 10:58
A convenient script to generate iCalendar (.ics) files on the fly in PHP.
<?php
/**
* This is free and unencumbered software released into the public domain.
*
* Anyone is free to copy, modify, publish, use, compile, sell, or
* distribute this software, either in source code form or as a compiled
* binary, for any purpose, commercial or non-commercial, and by any
* means.
*
@jchatard
jchatard / countries.iso-3166-1.inc.php
Created December 14, 2011 09:59
ISO-3166-1 (ALPHA 2) countries list in french
<?php
/**
* Country list ISO-3166-1 (ALPHA 2) in french
*/
function countries() {
$countries = array(
'AF' => 'Afghanistan',
'ZA' => 'Afrique Du Sud',
'AX' => 'Åland, Îles',
@pitch-gist
pitch-gist / gist:2999707
Created June 26, 2012 22:21
HTML: Simple Maintenance Page
<!doctype html>
<title>Site Maintenance</title>
<style>
body { text-align: center; padding: 150px; }
h1 { font-size: 50px; }
body { font: 20px Helvetica, sans-serif; color: #333; }
article { display: block; text-align: left; width: 650px; margin: 0 auto; }
a { color: #dc8100; text-decoration: none; }
a:hover { color: #333; text-decoration: none; }
</style>
@varunkumar
varunkumar / tweet-notifier.js
Created September 23, 2012 19:50
Arduino tweet notifier
var five = require("johnny-five"),
twitter = require('ntwitter'),
board, lcd, mentions = 0;
board = new five.Board();
board.on("ready", function() {
lcd = new five.LCD({
pins: [ 8, 9, 10, 11, 12, 13 ],
@nikcub
nikcub / README.md
Created October 4, 2012 13:06
Facebook PHP Source Code from August 2007
@irazasyed
irazasyed / reset_id_column.sql
Last active February 1, 2023 19:23
MySQL: Reset id column to auto increment from 1
-- your_table: The table to modify
-- id: The id field/column to reset
SET @num := 0;
UPDATE your_table SET id = @num := (@num+1);
ALTER TABLE your_table AUTO_INCREMENT =1;
@wqweto
wqweto / check_vat.php
Last active December 14, 2023 11:00
Check company VAT number using SOAP service at http://ec.europa.eu and return JSON encoded result
<?php
header('Content-type: application/json; charset=utf8');
$vatno = str_replace(array(' ', '.', '-', ',', '"'), '', $_GET['vatno']);
echo serviceCheckVat($vatno, &$name, &$address, &$error);
/*
include "connect.php";
mysql_query("SET NAMES utf8");
$vatno = mysql_real_escape_string($_GET['vatno']);
@sweetports
sweetports / phpstorm-FTPerror(timestamp)
Last active March 3, 2021 08:18
Phpstorm FTP uploading error(timestamp)
PhpstormでFTPアップロードで以下のエラーが出るとき
Failed to change timestamp of the file
Tool - Deployment -Optionsにて、「Preserve files timestamps」のチェックを外す
@pmoranga
pmoranga / README.md
Last active April 8, 2020 07:18 — forked from blackjid/README.md
Raspberry pi dashboard rpi screens

Raspberry pi dashboard

This is what we did to setup a few dashboards at platanus

You'll need

  • Raspberry Pi
  • Dashing Service
  • Wifi stick (optional)
@j3j5
j3j5 / gist:8b3e48ccad746b90a54a
Last active November 16, 2023 15:11
Adyen Test Card Numbers
Adyen Test Card Numbers
These cards are only valid on our TEST system and they will never involve any actual transaction or transfer of funds. The TEST card numbers will not work on the Adyen LIVE Platform.
For all cards use the following expiration and CVV2/CVC2/or CID for Amex.
For all cards:
Expiration Dates CVV2 / CVC3 CID (American Express)
08/2018 OR 10/2020 737 7373