Skip to content

Instantly share code, notes, and snippets.

View h8nor's full-sized avatar

h8nor

  • GPG: 0xB5DE5869
View GitHub Profile
@Munawwar
Munawwar / httpPing.js
Created April 7, 2023 17:58
Measure Time to first byte
// time to first byte
const https = require('https');
const http = require('http');
/**
* @param {Object} arg
* @param {String} arg.host
* @param {String} arg.path
* @param {{ [k: string]: string }} arg.headers
*/
@MarcoGriep88
MarcoGriep88 / Silent Install Parameter.md
Created May 13, 2021 11:24
Silent Install Parameter
Anwendung Parameter Uninstall
7-zip 7z1900-x64.exe /S C:\Program Files\7-Zip\Uninstall.exe /S
Advanced Auth Enterprise msiexec.exe /i naaf-winclient-x64-release-6.2-101.msi /qn /norestart msiexec.exe /x {937389C1-EB21-4789-BF4E-19A46ADE2792}
Advanced Auth Enterprise Device Service msiexec.exe /i naaf-deviceservice-x86-release-6.2-83.msi /qn /norestart msiexec.exe /x {9EA9B206-923B-4E53-9BF4-6D0ECD2AF77D}
Android Studio 18.1 android-studio-ide-181.5056338-windows.exe /S /AllUsers "C:\Program Files\Android\Android Studio\uninstall.exe" /S
Avaya IP Office msiexec.exe /i IP Office Admin Suite.msi /qn /norestart msiexec.exe /x {4C0A92F9-5075-4BF0-9B13-03B26857DB15}
Bing Desktop BingDesktopSetup.exe /Q msiexec.exe /x {E501B2B23A30D9C42AA1D15E97FD0761}
Cisco WebEx Internet Explorer Plugin regsvr32.exe /S ".\Extern$\ieatgpc.dll"
@xavierfoucrier
xavierfoucrier / gpg-signing.md
Last active May 4, 2024 03:16
GPG signing with Git and Github Desktop

GPG signing – git github-desktop

Here is a short guide that will help you setup your environment to create signed commits or signed tags with Git locally. This has been extensively tested on Windows with Git and the Github Desktop application: I use it every day for my professional development projects.

I you face any issue, feel free to leave a comment below.

Summary

  1. Sign commits or tags
  2. Key passphrase
  3. Disable signatures
  4. Renew a GPG key
@zmts
zmts / removeDuplicates.md
Last active April 12, 2021 22:02
Remove duplicates from array

Remove duplicates from array (ES6)

[ ...new Set([1, 2, 3, 1, 2, 3]) ] // [1, 2, 3]
@Titiaiev
Titiaiev / bash-guide-1.md
Last active May 18, 2024 12:18
шпаргалка по написанию bash скриптов, по ссылке - оригинальная статья на хабре

Бесплатная книга-сайт на русском, полный гайд
Advanced Bash-Scripting Guide

Введение

BASH — Bourne-Again SHell (что может переводится как «перерожденный шел», или «Снова шел Борна(создатель sh)»), самый популярный командный интерпретатор в юниксоподобных системах, в особенности в GNU/Linux. Ниже приведу ряд встроенных команд, которые мы будем использовать для создания своих скриптов.

>break выход из цикла for, while или until

// Discord all events!
// A quick and dirty fleshing out of the discord.js event listeners (not tested at all!)
// listed here -> https://discord.js.org/#/docs/main/stable/class/Client
// Learn from this, do not just copy it mofo!
//
// Saved to -> https://gist.github.com/koad/316b265a91d933fd1b62dddfcc3ff584
// Last Updated -> Halloween 2022
/*
@namoshizun
namoshizun / test.py
Created June 11, 2018 10:56
[Python + FFMPEG] change video speed without affecting pitch and/or concatenate multiple clips
from vid_utils import Video, concatenate_videos
videos = [
Video(speed=1.0, path="C:/temp/my_video_1.mp4"),
Video(speed=2.0, path="C:/temp/my_video_2.mp4"),
Video(speed=0.5, path="C:/temp/my_video_3.mp4"),
]
concatenate_videos(videos=videos, output_file=f"C:/temp/output_video.mp4")
@Ahe4d
Ahe4d / telegram-bridge.js
Last active November 30, 2023 20:37
Node.js program creating a bridge between Telegram and Discord.
// Telegram-Discord bridge
const TelegramBot = require('node-telegram-bot-api'); // https://github.com/yagop/node-telegram-bot-api
const Discord = require('discord.js'); // https://github.com/discordjs/discord.js
/* Values:
token: Telegram bot token (logging into Telegram's API, you can get this from @BotFather on Telegram)
token2: Discord bot token (logging into Discord's API, you can get this from Discord's developer docs > my apps > app)
channelid: Discord channel ID (channel the Discord bot can access, right clicking a channel and clicking copy ID with developer mode enabled)
*/
const token = '';
function logColor(color, args) {
console.log(`%c ${args.join(' ')}`, `color: ${color}`);
}
const log = {
aliceblue: (...args) => { logColor('aliceblue', args)},
antiquewhite: (...args) => { logColor('antiquewhite', args)},
aqua: (...args) => { logColor('aqua', args)},
aquamarine: (...args) => { logColor('aquamarine', args)},
azure: (...args) => { logColor('azure', args)},