Skip to content

Instantly share code, notes, and snippets.

View Committing's full-sized avatar
😴
Snoozing.com

Jack Committing

😴
Snoozing.com
View GitHub Profile
<?php
//https://steamtimeidler.com/tinderusernamechecker.php/tinderusernamechecker.php?usernames=test,life,thanks,fantast,helo,pro,wow,earth,eyybbwudup,hacker
$usernames = array();
if (isset($_GET['usernames']) && !empty($_GET['usernames'])) {
$usernames = explode(',', $_GET['usernames']);
@Committing
Committing / add_people.py
Last active March 8, 2022 01:57
Richard homework - You're welcome ;)
def addPerson(user_number):
print "Enter person #" + str(x)
name = raw_input('Enter name: ')
if name.isalpha() :
print "Name accepted"
else :
print "Please enter a valid name."
return False
@Committing
Committing / server.py
Last active December 3, 2015 16:27
Easily ssh into servers
import subprocess
print ""
print "Please type in server choice."
print "s1,s2,s4,s5,vm1,vm2,vm3,vm4,vm5,node,web etc..."
print ""
server = raw_input()
print ""
@Committing
Committing / .hgignore
Last active May 6, 2023 02:07
.hgignore specifically for Wordpress
# Compiled by Jack (Committing)
# https://gist.github.com/Committing/7bd55ff4615248b7cea0
# GIT version: https://gist.github.com/Committing/24700559b3c05bdd2e3921c12c16f134
#################################
## Target root files/folders
#################################
syntax: regexp
@Committing
Committing / Compare Regex
Last active January 6, 2016 13:18
Test file to compare regex strings against different data.
<?php
$regex = '/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/';
@Committing
Committing / auto-refresher.js
Last active January 24, 2016 22:06
CSGO Lounge Auto-Refresher
$(function() {
if (window.location.pathname == '/mytrades') {
function log_message(message, color) {
var sm = $('#submenu');
sm.prepend('<strong style="border-top: 1px solid white;width:188px;display:inline-block;padding:8px 0 8px 10px;color:white;background-color: ' + color + ';">' + message + '</strong><br />');
console.log(message);
$('title').html(message);
@Committing
Committing / petition.php
Last active June 25, 2016 19:08
Order parliament.uk votes by country
<?php
$res = file_get_contents('https://petition.parliament.uk/petitions/131215.json');
$select = json_decode($res);
$output = array();
$count = 0;
@Committing
Committing / user.json
Last active August 2, 2022 11:54
My Sublime User Settings
{
"auto_close_tags": false,
"auto_complete": false,
"disable_completions": true,
"scroll_past_end": true,
"tab_completion": false,
"word_separators": "./\\()\"'-:,.;<>~!@%^&*|+=[]{}`~?",
"tab_size": 4,
"translate_tabs_to_spaces": true
"update_check": false,
@Committing
Committing / encoding.sql
Created October 10, 2016 09:17
Updating encoding on table if multibyte encoding
alter table <some_table> convert to character set utf8 collate utf8_unicode_ci;
@Committing
Committing / example_js.js
Created October 10, 2016 16:28
Example JS that fails to Minify
/*!
* The Final Countdown for jQuery v2.2.0 (http://hilios.github.io/jQuery.countdown/)
* Copyright (c) 2016 Edson Hilios
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without restriction, including without limitation the rights to
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
* the Software, and to permit persons to whom the Software is furnished to do so,
* subject to the following conditions: