Skip to content

Instantly share code, notes, and snippets.

Showfom Showfom

Block or report user

Report or block Showfom

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View IP Service for Cloudflare Worker.js
addEventListener('fetch', event => {
event.respondWith(fetchAndApply(event.request))
})
async function fetchAndApply(request) {
if(request.url === 'https://api.tloxygen.com/ip' || request.url === 'http://api.tloxygen.com/ip') {
const ip = request.headers.get('cf-connecting-ip')
return new Response(ip)
} else if (request.url === 'https://api.tloxygen.com/country' || request.url === 'http://api.tloxygen.com/country') {
const ip = request.headers.get('cf-ipcountry')
@Showfom
Showfom / Analyticus
Created Sep 10, 2017
InstantClick with Google Analytic Integration
View Analyticus
// Google Analytic
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-54138102-1', 'auto');
ga('send', 'pageview');
// Disqus Comment
var disqus_shortname = "riespandi";
@Showfom
Showfom / dropbox
Created Aug 11, 2017 — forked from thisismitch/dropbox
/etc/init.d/dropbox
View dropbox
#!/bin/sh
### BEGIN INIT INFO
# Provides: dropbox
# Required-Start: $local_fs $remote_fs $network $syslog $named
# Required-Stop: $local_fs $remote_fs $network $syslog $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# X-Interactive: false
# Short-Description: dropbox service
### END INIT INFO
@Showfom
Showfom / unu-api-sample.php
Last active Apr 29, 2019
U.NU Sample Remote API Call
View unu-api-sample.php
<?php
/*
* YOURLS : sample file showing how to use the API
* This shows how to tap into your YOURLS install API from *ANOTHER* server
* not from a file hosted on the same server. It's just a bit dumb to make a
* remote HTTP request to the server the request originates from.
*
* Rename to .php
*
View keybase.md

Keybase proof

I hereby claim:

  • I am Showfom on github.
  • I am showfom (https://keybase.io/showfom) on keybase.
  • I have a public key whose fingerprint is A735 3812 3F45 E4F0 2D5F F5D2 C97D 25E7 B953 CF69

To claim this, I am signing this object:

@Showfom
Showfom / 2-char-je-domains.txt
Created Dec 16, 2015
Available 2-char .je domains
View 2-char-je-domains.txt
02.je
03.je
04.je
05.je
06.je
07.je
08.je
09.je
14.je
17.je
@Showfom
Showfom / Fuckgfw.conf
Created Oct 12, 2015 — forked from jason5ng32/surge.conf
Surge Config
View Fuckgfw.conf
[General]
loglevel = notify
bypass-tun = 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12,127.0.0.0/24
[Proxy]
// ADD YOUR PROXY HERE, DON'T FORGET TO REMOVE #
# Proxy = http,$IP,$PORT,$USERNAME,$PASSWORD
# Proxy = https,$IP,$PORT,$USERNAME,$PASSWORD
You can’t perform that action at this time.