Skip to content

Instantly share code, notes, and snippets.

@l0ki000
l0ki000 / app.js
Last active December 6, 2023 01:12
Script for automated check for foreign passport status in Russian MID / Скрипт для проверки статуса зявления на заграничный паспорт в МИД РФ
// usage:
// 1) npm install
// 2) node ./app.js <YOUR_SUBMISSION_ID>
// or add something like this in your crontab/anacron
// 1 0 mid.pass.check node <FULL_PATH>/app.js <YOUR_SUBMISSION_ID>
// app will create YOUR_SUBMISSION_ID.txt on the first run, and than will write you an email after any changes in status
const process = require('node:process');
@l0ki000
l0ki000 / cygwinFixSymlinks.pm
Last active June 13, 2016 22:47
Script is going to find broken cygwin soft links, and repair it. Fixing issue which is described here: https://www.cygwin.com/faq.html#faq.using.symlinkstoppedworking
@l0ki000
l0ki000 / accurev_to_git.sh
Last active August 29, 2015 14:22
script that is intended to get everything new from local dir and prepare commit to git repo, i.e all "untracked files" or "changed but not updated"
#!/bin/bash
# script is intended to get everything new from local dir and prepare commit to git repo
# i.e all untracked files or changed but not updated
# bash 0 is true
# 1 is false (yeah, feel the pain!)
ask_user()
{
echo $1;
select yn in "Yes" "No"; do
@l0ki000
l0ki000 / csd-wrapper.sh
Last active January 19, 2024 11:56 — forked from zer4tul/gist:6477470
Cisco Anyconnect CSD wrapper for OpenConnect (exhanced to autodownload and autoupdate hostscan)
#!/bin/bash
# Cisco Anyconnect CSD wrapper for OpenConnect
# Enter your vpn host here
CSD_HOSTNAME=
if [[ -z ${CSD_HOSTNAME} ]]
then
echo "Define CSD_HOSTNAME with vpn-host in script text. Exiting."
exit 1
fi