Skip to content

Instantly share code, notes, and snippets.

sxss sxss

Block or report user

Report or block sxss

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
sxss / .htaccess
Created Jun 21, 2019 — forked from Guibzs/.htaccess
Symfony 4 ~ .htaccess
View .htaccess
<IfModule mod_rewrite.c>
Options -MultiViews
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php [QSA,L]
<IfModule !mod_rewrite.c>
<IfModule mod_alias.c>
RedirectMatch 302 ^/$ /index.php/
sxss /
Created Sep 8, 2017 — forked from ijy/
My Sublime Text 3 setup.

Sublime Text 3 Setup

Install Package Control

Install Package Control for easy package management.

  1. Open the console with Ctrl+`
  2. Paste in the following:
sxss / config.json
Created Dec 3, 2016 — forked from anonymous/config.json
Bootstrap Customizer Config
View config.json
"vars": {
"@gray-base": "#000",
"@gray-darker": "lighten(@gray-base, 13.5%)",
"@gray-dark": "lighten(@gray-base, 20%)",
"@gray": "lighten(@gray-base, 33.5%)",
"@gray-light": "lighten(@gray-base, 46.7%)",
"@gray-lighter": "lighten(@gray-base, 93.5%)",
"@brand-primary": "darken(#428bca, 6.5%)",
"@brand-success": "#5cb85c",
sxss /
Last active Nov 8, 2019
PHP: CURL Requests with Tor

#CURL Connections with Tor

Install Apache, PHP, CURL & Tor with apt-get

sudo apt-get install -y apache2 php5 php5-curl tor

Tor creates a proxy on your mashine with port 9050 for SOCKS5 connections.

sxss / sxss-featured-feed.php
Last active Nov 11, 2016
Display images from your post in the RSS Feed. Checks for featured images and images in the post content.
View sxss-featured-feed.php
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc
. ~/.bashrc
mkdir ~/local
mkdir ~/node-latest-install
cd ~/node-latest-install
curl | tar xz --strip-components=1
./configure --prefix=~/local
make install # ok, fine, this step probably takes more than 30 seconds...
curl | sh
sxss / aufgabe1a.c
Created May 4, 2014
BS - Übungsblatt 1 - Aufgabe 1 A
View aufgabe1a.c
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <errno.h>
void error(char *str);
int main(void){
find /srv/backup/daily/databases/ -name '*.gz' -mtime +7 | xargs rm -f;
find /srv/backup/daily/websites/ -name '*.gz' -mtime +7 | xargs rm -f;
# Are Weekly Backups Implemented?
# find /srv/backup/weekly/ -name '*.gz' -mtime +30 | xargs rm -f;
sxss / Tooltip
Created Mar 25, 2013
<a href="#" class="tooltip" title="Content of the tooltip"> Style with #tooltip
View Tooltip
function tooltip(obj) {
if (!obj.length) return;
$("body").append('<div id="tooltip" />');
var tooltip = $("#tooltip");
var title;
obj.hover(function() {
title = $(this).attr("title") ? $(this).attr("title") : "No Title";
You can’t perform that action at this time.