Skip to content

Instantly share code, notes, and snippets.

@gorborukov
gorborukov / russia
Created April 16, 2015 01:43
Регионы и города россии в формате JSON
[
{
"region": "Москва и Московская обл.",
"city": "Москва"
},
{
"region": "Москва и Московская обл.",
"city": "Абрамцево"
},
@grhbit
grhbit / 24-bit-color.sh
Last active April 16, 2024 22:09 — forked from lifepillar/24-bit-color.sh
Test 24 bit colors in terminals
#!/bin/bash
#
# This file echoes a bunch of 24-bit color codes
# to the terminal to demonstrate its functionality.
# The foreground escape sequence is ^[38;2;<r>;<g>;<b>m
# The background escape sequence is ^[48;2;<r>;<g>;<b>m
# <r> <g> <b> range from 0 to 255 inclusive.
# The escape sequence ^[0m returns output to default
setBackgroundColor()
@azagniotov
azagniotov / download.all.adp.paystubs.js
Last active April 16, 2024 22:08
Downloads all pay-slips from ADP website
/*
This has been tested in Chrome v55.0.2883.95 (64-bit)
1. Log into ADP website using the URL: https://my.adp.com/static/redbox/login.html (Make sure you are NOT in Incognito mode)
2. Open Developer Tools console
3. Run the following code in the console:
*/
var xhr = new XMLHttpRequest();
xhr.open('GET', 'https://my.adp.com/v1_0/O/A/payStatements?adjustments=yes&numberoflastpaydates=300');
@neiker
neiker / cuil-validator.ts
Last active April 16, 2024 22:08
Validación de CUIL (Argentina) en TypeScript / JavaScript
export function cuilValidator(cuil: string): boolean {
if (cuil.length !== 11) {
return false;
}
const [checkDigit, ...rest] = cuil
.split('')
.map(Number)
.reverse();
@bbrodriges
bbrodriges / gist:1844867
Created February 16, 2012 13:35
Setup nullmailer with Amazon SES
Integrating nullmailer with Amazon Simple Email Service (SES)
Sometime you need just to allow system tools (i.e. cron) to send mail to the hostmaster. Setting up (and maintaining) a smtp server like sendmail, Postfix or Exim is too much. What you need is nullmailer, a sendmail/qmail/etc replacement MTA for hosts which relay to a fixed set of smart relays.
Here are some notes about how to setup nullmailer to use Amazon SES (Simple Email Service). This guide applies to Ubuntu boxes, but you can easily adapt it to other Linux flavors.
I assume that you already know how to setup an Amazon Simple Email Service account and how to test it in the sandbox . This means that you have signed the service, verified and tested at least a couple of e-mail address using Amazon Management Console facility. If this is not your case, please refer to this guide.
To begin, you will need to set up a secure tunnel using stunnel package. In the following procedure, we use port 2525 as your stunnel port. If you are using a differe
@GusGA
GusGA / pt_guide.md
Last active April 16, 2024 22:02
Guía de configuración de equipos en packet tracer

Script de comandos de packet tracer

Equipo Switch

Entrar en modo EXEC privilegiado

Ejecutar el comando enable

Switch> enable
@opastorello
opastorello / sublime text 4143 license key
Last active April 16, 2024 22:02
sublime text 4143 license key
> * Go to [hexed.it](https://hexed.it/)
> * Click "Open File" and choose your sublime_text.exe **(DON'T FORGET TO BACKUP YOUR EXE FILE)**
> * Go to Search and in "Search for" put: 80 78 05 00 0F 94 C1
> * In Search Type select "Enable replace" and put: 80 78 05 00 0F 94 C1
> * Click "Find next" then "Replace"
> * Do the same thing with: C6 40 05 01 48 85 C9 => C6 40 05 01 48 85 C9
> * Click "Save as" then name it: sublime_text
> * Copy your modified sublime_text.exe to directory Sublime Text
@kalibek-epam
kalibek-epam / wsl-docker-how-to.md
Last active April 16, 2024 22:01
Docker installation guide for WSL2 with Debian

Installation

Prerequisites

  • Windows 11, or Windows 10 version 1903 or higher, with Build 18362 or higher, for x64 systems, and Version 2004 or higher, with Build 19041 or higher, for ARM64 systems
  • Basic linux command line understanding
  • Optional: Windows terminal application

On host machine

@smx-smx
smx-smx / XZ Backdoor Analysis
Last active April 16, 2024 21:59
[WIP] XZ Backdoor Analysis and symbol mapping
XZ Backdoor symbol deobfuscation. Updated as i make progress
@AlexArcPy
AlexArcPy / gdb2elastic.py
Last active April 16, 2024 21:59
Convert geodatabase feature class features into GeoJSON strings for loading into elastic search database (bulk api)
'''
Convert file geodatabase feature class features into GeoJSON and
then construct text file for loading into elastic search bulk api
'''
import json
import arcpy
arcpy.env.overwriteOutput = True
#create a geojson file