Skip to content

Instantly share code, notes, and snippets.

View TheBITLINK's full-sized avatar
🤔
working, maybe

TheBITLINK aka BIT TheBITLINK

🤔
working, maybe
View GitHub Profile
@TheBITLINK
TheBITLINK / Latest Uploaded Image
Last active August 29, 2015 14:21
This PHP script displays the last image uploaded to the server, simply. When somebody uploads an image, the next visitor (or person who reloads the page) will see that image. It was made Just For Fun, and you can do anything with the code.
<?php
$html = '<!DOCTYPE html>
<html>
<head>
<title>Latest Uploaded Image</title>
<meta charset="utf-8">
<meta property="og:title" content="Latest Uploaded Image" />
<meta property="og:type" content="website" />
<meta property="og:description" content="It shows the last image uploaded.
Upload your own image and give a surprise to the next visitor." />
@TheBITLINK
TheBITLINK / .bashrc
Created October 16, 2016 19:08
.bashrc
#
# ~/.bashrc
#
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
alias ls='ls --color=auto'
PS1='[\u@\h \W]\$ '
@TheBITLINK
TheBITLINK / archuser.js
Last active November 28, 2016 17:57
Node.js Arch User
const getDistro = require('linus');
const isRoot = require('is-root');
const timeout = require('timeout-as-promise');
const chalk = require('chalk');
const truthy = require('truthy');
const execa = require('execa');
const terminate = require('terminate');
const Log = require('log');
const Promise = require('bluebird');
const pacmanCmd = require('system-install')().split(' ')[1];

Keybase proof

I hereby claim:

  • I am TheBITLINK on github.
  • I am thebitlink (https://keybase.io/thebitlink) on keybase.
  • I have a public key whose fingerprint is EFDB 6E9D 00BD 8D33 5610 28CC 00F9 A505 26B6 D0B3

To claim this, I am signing this object:

############
# Settings #
############
background yes
use_xft yes
xftfont Liberation Sans:size=9
xftalpha 1
update_interval 1.0
total_run_times 0
own_window yes
@TheBITLINK
TheBITLINK / FocaBot Changelog.md
Last active March 3, 2017 17:11
FocaBot changelog

FocaBot Changelog (Older Releases)

Here are the changelogs for all versions prior to FocaBot 0.5.5.

Changelogs for version 0.5.5 onwards are on the releases page.

Version 0.5.4 (December 15, 2016)

This is the biggest update FocaBot has got in a while.

@TheBITLINK
TheBITLINK / discordfb2k.js
Created September 10, 2017 10:00
Update discord's game status according to foobar2k's window title.
/**
* @file Updates Discord's game status according to foobar2k's window title.
* @author TheBITLINK aka BIT <me@thebitlink.com>
* @license MIT
*
* To use:
* - Set foobar2k's window title to "%artist% - %title%" (Preferences -> Display -> Default User Interface)
* - Edit the line bellow with your discord user token
* - Run those commands (in the same folder discordfb2k.js is in):
* - npm install discord.js node-process-windows
@TheBITLINK
TheBITLINK / btc-convert-azarasi.coffee
Created October 27, 2017 02:11
FocaBot module to check the price of the bitcoin
##
# FocaBot 1.x / Azarasi
##
btcAverage = require('request-promise').defaults {
baseUrl: 'https://apiv2.bitcoinaverage.com'
json: true
simple: true
}
class BtcConvert extends BotModule
@TheBITLINK
TheBITLINK / discord.css
Last active April 20, 2018 05:11
Discord Theme
.new-messages-bar, .jump-to-present-bar {
left: 0!important;
right: 0!important;
border-radius: 0!important;
}
.new-messages-bar {
background: rgba(14,161,182, .75)!important;
}