Skip to content

Instantly share code, notes, and snippets.

View mcnaveen's full-sized avatar
🦄

MC Naveen mcnaveen

🦄
View GitHub Profile
@mcnaveen
mcnaveen / Button
Last active November 24, 2017 14:42
Simple CSS Button
<button style="background: #3498db; background-image: -webkit-linear-gradient(top, #3498db, #2980b9); background-image: -moz-linear-gradient(top, #3498db, #2980b9); background-image: -ms-linear-gradient(top, #3498db, #2980b9); background-image: -o-linear-gradient(top, #3498db, #2980b9); background-image: linear-gradient(to bottom, #3498db, #2980b9); -webkit-border-radius: 5; -moz-border-radius: 5; border-radius: 5px; font-family: Georgia; color: #ffffff; font-size: 20px; padding: 10px 20px 10px 20px; text-decoration: none;"> BUTTON TEXT Goes Here </button>
@mcnaveen
mcnaveen / TitleBarTextChangeOtherTab.txt
Last active January 29, 2019 06:38
Change Title Bar text, When switching to Other Tab
== Place the Below code, Above the </head> Tag. ===
== For WordPress, Use the Plugin. " https://wordpress.org/plugins/code-snippets/ ==
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script>
<script>
$(function () {
var message = "Hey, come back!";
var original;
.posted-on .updated {
display: inline-block;
}
.posted-on .updated + .entry-date {
display: none;
}
.posted-on .updated:before {
content: "Last Updated on ";
@mcnaveen
mcnaveen / Chinese-Apps-Alternatives
Created June 20, 2020 13:18
List of Chinese app and their alternatives
[
{
"id":"14",
"package_name":"com.zhiliaoapp.musically",
"alternative":"com.mobilemotion.dubsmash,com.avcrbt.funimate,co.triller.droid,com.loopnow.kamino,com.facebook.lasso",
"date":"07\/06\/2020 20:39:26"
},
{
"id":"15",
"package_name":"com.zhiliaoapp.musically.go",
{
    "alt-speed-down": 50,
    "alt-speed-enabled": false,
    "alt-speed-time-begin": 540,
    "alt-speed-time-day": 127,
    "alt-speed-time-enabled": false,
    "alt-speed-time-end": 1020,
    "alt-speed-up": 50,
    "bind-address-ipv4": "0.0.0.0",
#!/bin/bash
# Get transmission credentials and ip or dns address
auth=user:password
host=localhost

while true ; do
sleep 25
add_trackers () {
    torrent_hash=$1

Keybase proof

I hereby claim:

  • I am mcnaveen on github.
  • I am mcnaveen (https://keybase.io/mcnaveen) on keybase.
  • I have a public key ASCNlfaPmdurN3gGS0tWiBD4hKUD6xV1CEMiF0D_ZHzsTQo

To claim this, I am signing this object:

@mcnaveen
mcnaveen / URL-encoding : ASCII Character.md
Created October 4, 2020 19:55
HTML Encoding Reference
  • %20 : space
  • %21 : !
  • %22 : “
  • %23 : #
  • %24 : $
  • %25 : %
  • %26 : &
  • %27 : ‘
  • %28 : (
  • %29 : )
#deb cdrom:[Ubuntu 14.04.3 LTS _Trusty Tahr_ - Beta amd64 (20150805)]/ trusty main restricted

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://us.archive.ubuntu.com/ubuntu/ trusty main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty main restricted

## Major bug fix updates produced after the final release of the
## distribution.
@mcnaveen
mcnaveen / Cloudflare Workers Dual Parameter
Created November 4, 2020 15:14
Cloudflare Workers Dual Parameter
addEventListener('fetch', event => {
event.respondWith(fetchAndApply(event.request))
})
async function fetchAndApply(request) {
const init = {
method: 'GET'
}
const { searchParams } = new URL(request.url);
let param1 = searchParams.get('param1');
let param2 = searchParams.get('param2');