Skip to content

Instantly share code, notes, and snippets.

View 0x15f's full-sized avatar
:shipit:
Shipping shit

Jake Casto 0x15f

:shipit:
Shipping shit
View GitHub Profile
@petemcw
petemcw / 2.2.10.patch
Created October 18, 2019 14:44
Template patch for Magento Open Source 2.2.10
--- vendor/magento/module-backup/view/adminhtml/templates/backup//list.phtml 2019-09-19 15:52:44.000000000 -0500
+++ vendor/magento/module-backup/view/adminhtml/templates/backup//list.phtml 2019-10-17 17:37:00.000000000 -0500
@@ -7,4 +7,4 @@
<?= $block->getChildHtml('grid') ?>
<?= $block->getGridHtml() ?>
<?= $block->getDialogsHtml() ?>
-<?php
+
--- vendor/magento/module-bundle/view/base/templates/product/price/selection/amount.phtml 2019-09-19 15:52:44.000000000 -0500

These API docs are outdated. 1MB is launching a new API soon :)

@SOF3
SOF3 / YieldTask.php
Last active May 17, 2023 23:30
Proof of concept for abusing yield as sleep
<?php
namespace SOFe\YieldTask;
use pocketmine\plugin\Plugin;
use pocketmine\scheduler\PluginTask;
class YieldTask extends PluginTask{
const UNIT_TICKS = 1;
const UNIT_SECONDS = 20;
const UNIT_MINUTES = 1200;
private $generator;
private $factor;
@zhiephie
zhiephie / Install.md
Last active May 3, 2020 10:39
Installing nginx, php7-fpm with opcache, memcached, phpredis and xdebug extension on Centos 7

run ./setup.sh

Install Nginx

# yum repository  
$ vim /etc/yum.repos.d/nginx.repo
  [nginx]
  name=nginx repo
  baseurl=http://nginx.org/packages/centos/7/$basearch/
 gpgcheck=0
@0x15f
0x15f / MyPlay.txt
Last active March 23, 2019 15:40
No idea when or why I wrote this
SETTING: 2 dogs walking together in a park
ACTORS: Dog1, Dog2
SCENE ONE:
Dog1: (TALKING TO DOG2) "What do you think of cats?"
Dog2: (RESPONDING TO DOG1) "Cats are horrible creatues! Hissing and clawing!"
@thbkrkr
thbkrkr / Dockerfile
Last active June 8, 2022 21:07
Get containers info and stats using the Docker Remote API
FROM alpine:3.7
RUN apk --no-cache add bash jq netcat-openbsd bc
COPY docker-stats.sh /usr/local/bin/docker-stats.sh
ENTRYPOINT ["docker-stats.sh"]
@maephisto
maephisto / Javascript ISO country code to country name conversion
Last active November 3, 2023 21:05
ISO 3166-1 alpha-2 country code to country name conversion with a simple Javascript implementation, an array and a function.
var isoCountries = {
'AF' : 'Afghanistan',
'AX' : 'Aland Islands',
'AL' : 'Albania',
'DZ' : 'Algeria',
'AS' : 'American Samoa',
'AD' : 'Andorra',
'AO' : 'Angola',
'AI' : 'Anguilla',
'AQ' : 'Antarctica',
@thomasfr
thomasfr / warmly.sh
Last active October 12, 2023 06:17
A wget based easy poor man`s cache warmer script
#!/bin/bash
# warmly.sh
# A wget based, easy, poor man`s cache warmer script
# https://gist.github.com/thomasfr/7926314
# The MIT License (MIT)
#
# Copyright (c) 2013,2014 Thomas Fritz <fritztho@gmail.com> (http://fritzthomas.com)
#
@liuw
liuw / ctype_async_raise.py
Created April 17, 2012 16:02
Nasty hack to raise exception for other threads
#!/usr/bin/env python
# liuw
# Nasty hack to raise exception for other threads
import ctypes # Calm down, this has become standard library since 2.5
import threading
import time
NULL = 0