Skip to content

Instantly share code, notes, and snippets.

Cipri skyway22

View GitHub Profile
@skyway22
skyway22 / .bash_aliases
Created Dec 14, 2018 — forked from oblique63/.bash_aliases
Bash Aliases for Ubuntu
View .bash_aliases
#----{ Aliases for Ubuntu: }--------------------------------------------------
# Admin
alias update="sudo aptitude update ; sudo aptitude -ZWry safe-upgrade && sudo aptitude -ZWry --purge-unused clean"
alias sources="sudo nano /etc/apt/sources.list"
alias install="sudo aptitude -ZWry install"
alias uninstall="sudo aptitude -ZWry remove"
alias pkgsearch="aptitude search"
alias installed="dpkg --get-selections | grep"
alias add-repo="sudo add-apt-repository"
alias app="apropos"
@skyway22
skyway22 / main.py
Created May 18, 2018 — forked from leandrotoledo/main.py
Webhook using self-signed certificate and Flask (with python-telegram-bot library)
View main.py
#!/usr/bin/env python
'''Using Webhook and self-signed certificate'''
# This file is an annotated example of a webhook based bot for
# telegram. It does not do anything useful, other than provide a quick
# template for whipping up a testbot. Basically, fill in the CONFIG
# section and run it.
# Dependencies (use pip to install them):
# - python-telegram-bot: https://github.com/leandrotoledo/python-telegram-bot
View .rtorrent.rc
directory = /mnt/wd/movies
session = /home/rock64/.rtorrent/.session
# Close torrents when diskspace is low.
schedule = low_diskspace,5,60,close_low_diskspace=20240M
port_range = 51413-51413
port_random = no
encryption = allow_incoming,enable_retry,prefer_plaintext
peer_exchange = no
dht = disable
scgi_port = 127.0.0.1:5000
@skyway22
skyway22 / .bash_aliases
Created Sep 14, 2017
Lenovo bash-aliases
View .bash_aliases
alias pi="ssh osmc@osmc.local" #192.168.1.101
alias rock="ssh rock64@rock64.local" #192.168.1.103
alias paste="nc termbin.com 9999"
alias update="sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get dist-upgrade -y && sudo apt-get autoclean && sudo apt-get autoremove"
View .bash_aliases
alias li="screen -r irssi"
alias rosu="sudo nano /sys/class/leds/led1/brightness"
alias temp="/opt/vc/bin/vcgencmd measure_temp"
alias kstop="sudo systemctl stop mediacenter"
alias kstart="sudo systemctl start mediacenter"
alias paste="nc termbin.com 9999"
export LC_ALL="en_US.UTF-8"
alias tstop="sudo systemctl stop transmission"
alias tstart="sudo systemctl start transmission"
alias treload="sudo systemctl reload transmission"
View trans_to_deluge.php
#!/usr/bin/php
<?php
/* Transmission to Deluge export script
*
* Transmission - transmission-gtk 2.77 (14031)
* Deluge - deluge: 1.3.6
* Script - PHP 5.4.14 (cli)
*
* How to use this script;
* 1) Run `php trans_to_deluge.php` and make sure there aren't any errors.
@skyway22
skyway22 / ircecho.py
Created Oct 18, 2016 — forked from RobertSzkutak/ircecho.py
Echo, a simple IRC bot written in Python 3
View ircecho.py
#!/usr/bin/env python3
# ircecho.py
# Copyright (C) 2011 : Robert L Szkutak II - http://robertszkutak.com
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
You can’t perform that action at this time.