sh -c "$(curl -fsSL https://github.com/Cabbagec/termux-ohmyzsh/raw/master/install.sh)"
https://realpython.com/vim-and-python-a-match-made-in-heaven/
run
| // ==UserScript== | |
| // @name Anime Series Downloader | |
| // @namespace https://gist.github.com/lshaf | |
| // @version 1.0.1 | |
| // @description try to take over the world! | |
| // @author L Shaf | |
| // @match http*://animeseries.io/watch/* | |
| // @match http*://*.animeseries.io/watch/* | |
| // @run-at document-end | |
| // @grant none |
| // ==UserScript== | |
| // @name Digital Ocean Notification Reader | |
| // @namespace https://gist.github.com/lshaf | |
| // @version 1.0.2 | |
| // @description try to take over the world! | |
| // @author L Shaf | |
| // @match https://cloud.digitalocean.com/notifications* | |
| // @run-at document-end | |
| // @grant none | |
| // @downloadURL https://gist.github.com/lshaf/3f0ff89d97c296a2e53b2e5a4b1e6573/raw/924299546536a4febab8c2628697668aa6863ed2/do_notification.user.js |
| #! /bin/bash | |
| ### BEGIN INIT INFO | |
| # Provides: yourapp | |
| # Required-Start: nginx | |
| # Required-Stop: | |
| # Default-Start: 2 3 4 5 | |
| # Default-Stop: 0 1 6 | |
| # Short-Description: The main django process | |
| # Description: The gunicorn process that receives HTTP requests | |
| # from nginx |
| Install http://download-us.sourcegear.com/DiffMerge/4.2.0/DiffMerge_4.2.0.697.stable_x64.msi | |
| // this is an adaptation of http://adventuresincoding.com/2010/04/how-to-setup-git-to-use-diffmerge | |
| Then run the following commands from the git bash | |
| git config --global merge.tool diffmerge | |
| git config --global mergetool.diffmerge.cmd "sgdm --merge --result=\$MERGED \$LOCAL \$BASE \$REMOTE" |
| { | |
| "$schema": "https://aka.ms/terminal-profiles-schema", | |
| "globals" : | |
| { | |
| "alwaysShowTabs" : true, | |
| "defaultProfile" : "{2c4de342-38b7-51cf-b940-2309a097f518}", | |
| "initialCols" : 120, | |
| "initialRows" : 30, | |
| "keybindings" : | |
| [ |
| sudo apt-key adv --refresh-keys --keyserver keyserver.ubuntu.com |
| RewriteEngine on | |
| # Option 1: To rewrite "www.domain.com -> domain.com" uncomment the following lines. | |
| RewriteCond %{HTTPS} !=on | |
| RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC] | |
| RewriteRule ^(.*)$ https://%1/$1 [R=301,L] | |
| # If a directory or a file exists, use the request directly | |
| RewriteCond %{REQUEST_FILENAME} !-f | |
| RewriteCond %{REQUEST_FILENAME} !-d | |
| # Otherwise forward the request to index.php | |
| RewriteRule . index.php |
| using System; | |
| using System.Collections; | |
| using System.Linq; | |
| public class Program | |
| { | |
| class StringHelper | |
| { | |
| public static ArrayList WordWrap(string text, int maxLength = 86) | |
| { |
| -- /usr/share/vernemq/lua/auth/mysql.lua | |
| -- Only replace the function | |
| function auth_on_register(reg) | |
| if reg.username ~= nil and reg.password ~= nil then | |
| raw_client_id = reg.client_id | |
| form_client_id = raw_client_id:gsub("#", "%") | |
| results = mysql.execute(pool, | |
| [[SELECT publish_acl, subscribe_acl | |
| FROM vmq_auth_acl |