Skip to content

Instantly share code, notes, and snippets.

View shemmjunior's full-sized avatar
🎯
Focusing

Shemm Junior shemmjunior

🎯
Focusing
View GitHub Profile
@klemensz
klemensz / hide-header.directive.ts
Last active September 30, 2023 20:35
Hide header on scroll in Ionic 5
import { Directive, HostListener, Input, OnInit, Renderer2 } from '@angular/core';
import { DomController } from '@ionic/angular';
/**
* Moves away the header when scrolling down.
*/
@Directive({
selector: '[appHideHeader]',
})
export class HideHeaderDirective implements OnInit {
@shemmjunior
shemmjunior / README.md
Created September 30, 2020 10:47 — forked from mbleigh/README.md
Firebase Hosting Fetch All Files

Fetch All Files from Firebase Hosting

This script fetches all of the files from the currently deployed version of a Firebase Hosting site. You must be signed in via the Firebase CLI and have "Site Viewer" permission on the site in question to be able to properly run the script.

Running via NPX

npx https://gist.github.com/mbleigh/9c8680cf319ace2f506f57380da66e7d <site_name>
@johnatandias
johnatandias / DatabaseService.js
Created July 11, 2019 22:32
A simple example of indexedDB for KaiOS devices
class DatabaseProvider {
constructor() {
this.db = {};
this.dbName = 'todos';
this.dbVersion = 1;
this.stores = { TODOS: 'todos' };
this.init();
}
init() {
@kksrini89
kksrini89 / app.component.ts
Last active August 17, 2021 10:21
Downloading file in Angular - from Node.js
downloadFile(token: string, url: string) {
try {
let headers = new HttpHeaders()
.set(
'Authorization',
`Bearer ${token}`
)
.set('Accept', 'text/csv');
this.http
.get(`${url}`, {
@nitred
nitred / ssh_utils.md
Last active July 30, 2025 09:56
SSH Tunneling (port forwarding + reverse port forwarding + SOCK5)

About

SSH tunneling and port forwarding snippets and utils

Table of Contents

  • SOCK5 tunnel everything: Link
  • Local port forwarding: Link
  • Remote port forwarding: Link
NetLimiter 3
Registration name: Peter Raheli
Registration code: C99A2-QSSUD-2CSBG-TSRPN-A2BEB
NetLimiter 4
Registration Name: Vladimir Putin #2
Registration Code: XLEVD-PNASB-6A3BD-Z72GJ-SPAH7
https://www.netlimiter.com/download
# Netlimiter Full Netlimiter Activated Netlimiter cracked Netlimiter Full Version Netlimiter Serial Netlimiter keygen Netlimiter crack Netlimiter 4 serial Netlimiter 4 Crack Netlimiter 4 register Netlimiter 4 patch Netlimiter full Full version Netlimiter 4 Activated Netlimiter 4 Cracked Netlimiter Pro
@skbr1234
skbr1234 / default nginx configuration file
Last active August 7, 2025 09:20
The default nginx configuration file inside /etc/nginx/sites-available/default
# Author: Zameer Ansari
# You should look at the following URL's in order to grasp a solid understanding
# of Nginx configuration files in order to fully unleash the power of Nginx.
# http://wiki.nginx.org/Pitfalls
# http://wiki.nginx.org/QuickStart
# http://wiki.nginx.org/Configuration
#
# Generally, you will want to move this file somewhere, and start with a clean
# file but keep this around for reference. Or just disable in sites-enabled.
#
@ultrasamad
ultrasamad / Cart.js
Created August 14, 2017 12:41
A simple shopping cart implementation in javascript based on es6.
class Cart{
constructor(products) {
if (!this.storageSupported()){
throw "Browser doesn't support localStorage"
}
this.products = products;
//this.items = JSON.parse(localStorage.getItem('cart'))
}
git log --all --grep="search text"
@borlaym
borlaym / animals.json
Created December 15, 2014 13:38
Array of animal names
[
"Aardvark",
"Albatross",
"Alligator",
"Alpaca",
"Ant",
"Anteater",
"Antelope",
"Ape",
"Armadillo",