Skip to content

Instantly share code, notes, and snippets.

@moalex
moalex / document.ready.ts
Created April 1, 2019 22:58 — forked from supermoos/main.ts
TypeScript jQuery document ready
///<reference path="./typings/jquery/jquery.d.ts"/>
'use strict';
class Main {
constructor() {
jQuery(document).ready(() => {
console.log('Hello from app/scripts/ts/Main.ts');
});
}
}
@moalex
moalex / sublime-text-4-4098-license.md
Last active February 22, 2022 13:57 — forked from JerryLokjianming/Crack Sublime Text Windows and Linux.md
Sublime Text 4 Alpha 4098 with Hex

Crack Sublime Text 3 & 4 Alpha 4094 with Hex Editor (Linux & MacOS | With License) ↓

  1. Download & Install Sublime Text 3 or 4
  2. Visit https://hexed.it/
  3. Open file select sublime_text
    • Linux Location: /opt/sublime_text/sublime_text
    • MacOS Location: /Application/Sublime Text [version].app (Correct Me If I'm Wrong)
  4. Search 97 94 0D and Change to 00 00 00
  5. Export File and save it to location you want
  6. Backup sublime_text file (just rename)
@moalex
moalex / aria2.conf
Created January 16, 2022 14:26 — forked from dinigo/aria2.conf
Aria2c config files and init scripts
# place under ${HOME}/.aria2/
# Daemonize, rpc and session save.
# The daemon is launched by the rpc query and
# stops when all downloads are completed.
continue
daemon=true
on-download-complete=exit
dir=/home/**youruser**/path/to/download/folder
@moalex
moalex / composer-devhints.md
Last active February 22, 2022 14:18 — forked from robdecker/1.md
[Composer commands] #composer #d8
<?php
// autoload_namespace.php generated by Composer
$vendorDir = dirname(__DIR__);
$baseDir = dirname($vendorDir);
return array(
'Volcanus\\Validation' => $vendorDir . '/volcanus/validation/src/',
'Symfony\\Component\\HttpFoundation' => $vendorDir . '/symfony/http-foundation/',
@moalex
moalex / gist:b48816a07da1ba1b24745e6c1c9f6e36
Created April 14, 2022 23:07 — forked from beh/gist:3549933
Add bookmark to pinbord.in with predefined tag, without user intervention
javascript:q=location.href;if(document.getSelection){d=document.getSelection();}else{d='';};p=document.title;void(open('https://pinboard.in/add?later=yes&noui=yes&jump=close&tags=TAGS GO HERE&url='+encodeURIComponent(q)+'&description='+encodeURIComponent(d)+'&title='+encodeURIComponent(p),'Pinboard','toolbar=no,width=100,height=100'));
// Copy and paste the above into a new bookmark. Replace "TAGS GO HERE" with your tags. Presto!
@moalex
moalex / youtube_watch_later.js
Created August 22, 2022 15:15 — forked from spyesx/youtube_watch_later.js
Get URLs of your youtube watch later playlist
// Execute this in the console of on your own playlist
var videos = document.querySelectorAll('.yt-simple-endpoint.style-scope.ytd-playlist-video-renderer');
var r = [];
var json = [];
r.forEach.call(videos, function(video) {
var url = 'https://www.youtube.com' + video.getAttribute('href');
url = url.split('&list=WL&index=');
url = url[0];
@moalex
moalex / youtube_watch_later.js
Created August 22, 2022 15:15 — forked from spyesx/youtube_watch_later.js
Get URLs of your youtube watch later playlist
// Execute this in the console of on your own playlist
var videos = document.querySelectorAll('.yt-simple-endpoint.style-scope.ytd-playlist-video-renderer');
var r = [];
var json = [];
r.forEach.call(videos, function(video) {
var url = 'https://www.youtube.com' + video.getAttribute('href');
url = url.split('&list=WL&index=');
url = url[0];