Skip to content

Instantly share code, notes, and snippets.

# ==============================================================================
# Don't run this directly!
# Read the script and copy'n'paste the commands you need.
# ==============================================================================
# by CodeBrauer <[email protected]> 2017 v2.0.1
cd hacked_website/public_html/
# ============ Step 0) ============
#> Do a backup! If you have to use this script, it's clear you have no backups,
fps_max_menu "60"
cl_autowepswitch "0"
viewmodel_fov 90
voice_mixer_volume 0.75
cl_cmdrate "128"
cl_updaterate "128"
cl_interp "0"
rate "128000"
cl_radar_scale 0.4
cl_disablefreezecam 1

Easy Linux SSMTP Configuration with Mailgun

You need a domain where you can add:

  • TXT domain records and subdomains for sendings
  • CNAME records for tracking
  • MX records for receiving (optional)
@CodeBrauer
CodeBrauer / checkInternet.command
Created November 9, 2015 10:47
Easy internet-connection checker - If Internet connection works: plays sound
#!/bin/bash
/usr/bin/php /Users/xxx/dev/internetz.php
exit;
# This file can be opened with default Terminal App on Mac OS X
@CodeBrauer
CodeBrauer / composer.json
Created September 30, 2015 16:28
youtube playlist to spotify uri
{
"require": {
"google/apiclient": "^1.1",
"jwilsson/spotify-web-api-php": "^0.10.0"
}
}
@CodeBrauer
CodeBrauer / codecandies_001.php
Last active June 27, 2016 09:10
some codecandies I just find sometimes...
<?php
// most complicated way to reformart a date... also deprecated function
ereg("([0-9]{4}).([0-9]{2}).([0-9]{2})", $value['check_in'], $alter);
$bdate="$alter[3].$alter[2].$alter[1]";
echo $bdate;
@CodeBrauer
CodeBrauer / robotjs-ajax.js
Created July 31, 2015 22:46
just a simple demo for a ajax-usage of robotjs - allows to set the mouse position on a simple request like this: http://localhost:4000/movemouse/200/50
var sys = require('sys');
var http = require('http');
var robot = require('robotjs');
console.log('Starting...');
http.createServer(function(request, response) {
result = 0;
if (request.method === 'GET') {
requestEndpoint = request.url.split('/');
Date Season Serie Lang Source Stream/TV
24 Aug 2015 S01 Fear The Walking Dead DE http://www.amazon.de/b?ie=UTF8&node=7206521031 Amazon Prime Instant Video
12 Okt 2015 S06 The Walking Dead DE/ENG https://de.wikipedia.org/wiki/The_Walking_Dead_(Fernsehserie) Sky
18 Nov 2015 S02 Silicon Valley DE http://www.serienjunkies.de/silicon-valley/season2.html Sky
?? Feb 2016 S04 House of Cards DE https://de.wikipedia.org/wiki/House_of_Cards_(Fernsehserie) Sky(/Netflix?)
?? Feb 2016 S02 Better Call Saul DE estimated Netflix
?? Jun 2016 S04 Orange Is The New Black DE/ENG estimated (http://on.fb.me/1Pd8GLU) Netflix
?? Jun 2016 S03 Silicon Valley ENG estimated Netflix
2016 S23 Top Gear DE/ENG http://goo.gl/P5wg9t BBC
2016 S01 The New Top Gear on Amazon DE/ENG https://goo.gl/vSJ8T0 Amazon
@CodeBrauer
CodeBrauer / osx-for-hackers.sh
Last active August 29, 2015 14:26 — forked from brandonb927/osx-for-hackers.sh
OSX for Hackers: Yosemite Edition. This script tries not to be *too* opinionated and any major changes to your system require a prompt. You've been warned. Also, please don't email me about this script, my poor inbox...
#!/bin/sh
# Alot of these configs have been taken from the various places
# on the web, most from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
red='\033[0;31m'
@CodeBrauer
CodeBrauer / vhost.sh
Last active March 3, 2016 07:17
super simple vhost generator.
#!/bin/bash
# super simple vhost generator.
# @CodeBrauer <https://github.com/CodeBrauer>
# v0.2
if [ -z "$1" ]
then
echo "Error! No domain name given"
exit 1;