Skip to content

Instantly share code, notes, and snippets.

ston3o

Block or report user

Report or block ston3o

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
@ston3o
ston3o / auto-boost.json
Last active Mar 27, 2019
Auto Boost Mastodon
View auto-boost.json
{
"schema_version": 1,
"name": "Auto Boost",
"description": "Auto Boost Mastodon Accounts",
"source_url": false,
"guid": "a2364ae9eccffe6d6af00f40f1d735eb",
"tag_fg_color": "#ffffff",
"tag_bg_color": "#5bc0de",
"icon": "gear",
"exported_at": "2019-03-25T15:51:31Z",
View reactform.js
'use strict';var _createClass=function(){function a(b,c){for(var f,d=0;d<c.length;d++)f=c[d],f.enumerable=f.enumerable||!1,f.configurable=!0,'value'in f&&(f.writable=!0),Object.defineProperty(b,f.key,f)}return function(b,c,d){return c&&a(b.prototype,c),d&&a(b,d),b}}();function _classCallCheck(a,b){if(!(a instanceof b))throw new TypeError('Cannot call a class as a function')}function _possibleConstructorReturn(a,b){if(!a)throw new ReferenceError('this hasn\'t been initialised - super() hasn\'t been called');return b&&('object'==typeof b||'function'==typeof b)?b:a}function _inherits(a,b){if('function'!=typeof b&&null!==b)throw new TypeError('Super expression must either be null or a function, not '+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}var Form=function(a){function b(){var n,h,j,k;_classCallCheck(this,b);for(var l=arguments.length,g=Array(l),m=0;m<l;m++)g[m]=argumen
View stack.yml
version: '3'
services:
web:
image: ghost:2.2
ports:
- 0:2368
volumes:
- ghost:/var/lib/ghost/content
environment:
View mediaqueries.css
/* Mobile */
@media only screen and (max-width: 767px) {
[class*="mobile hidden"],
[class*="tablet only"]:not(.mobile),
[class*="computer only"]:not(.mobile),
[class*="large screen only"]:not(.mobile),
[class*="widescreen only"]:not(.mobile),
[class*="or lower hidden"] {
display: none !important;
}
@ston3o
ston3o / dashboard.sh
Last active Feb 13, 2018
Rasbperry dashboard script install
View dashboard.sh
#!/bin/bash
if [ "$(whoami)" != "root" ]; then
echo "$0: Permission denied"
exit 1;
fi
# Install dependencies
sudo apt-get update
sudo apt-get install -y i3 dmenu rxvt-unicode xorg xinit xdotool surf
@ston3o
ston3o / install.sh
Created Jan 29, 2018
Kubernetes installation
View install.sh
#!/bin/sh
export DEBIAN_FRONTEND=noninteractive;
if [ "$(whoami)" != "root" ]; then
echo "$0: Permission denied"
exit 1;
fi
# Install kubeadm
if [ -z "$(command -v kubeadm)" ]; then
View disable-webcam.sh
#!/bin/bash
sudo modprobe -r uvcvideo
echo 'blacklist uvcvideo' | sudo tee -a /etc/modprobe.d/blacklist.conf
View matomo.sh
touch /var/www/html/config/config.ini.php;
php /var/www/html/console config:set --section="database" --key="host" --value=$MYSQL_HOST;
php /var/www/html/console config:set --section="database" --key="port" --value="3306";
php /var/www/html/console config:set --section="database" --key="username" --value="root";
php /var/www/html/console config:set --section="database" --key="password" --value=$MYSQL_ROOT_PASSWORD;
php /var/www/html/console config:set --section="database" --key="dbname" --value="matomo";
curl -s -o db_seed.sql https://git.cloudron.io/cloudron/matomo-app/raw/master/db_seed.sql;
apt-get update && apt-get install -y mysql-client;
cat db_seed.sql | mysql -uroot -p$MYSQL_ROOT_PASSWORD -h $MYSQL_HOST -P 3306 "matomo";
chmod -R 777 /var/www/html/tmp/cache/;
View dyndns.sh
#!/bin/bash
DYNHOST_USER="my username"
DYNHOST_PASSWD="my password"
DYNHOST_DOMAINS=(mydomain.com mydomain2.com)
OVH_URL="https://www.ovh.com/nic/update?system=dyndns"
for DYNHOST_DOMAIN in ${DYNHOST_DOMAINS[@]}; do
curl --user "$DYNHOST_USER:$DYNHOST_PASSWD" "${OVH_URL}&hostname=${DYNHOST_DOMAIN}"
done
View keybase.md

Keybase proof

I hereby claim:

  • I am ston3o on github.
  • I am ston3o (https://keybase.io/ston3o) on keybase.
  • I have a public key whose fingerprint is E6E5 14AD F298 493D 3B54 8836 CF53 E458 B82F 3538

To claim this, I am signing this object:

You can’t perform that action at this time.