Skip to content

Instantly share code, notes, and snippets.

@shamun
shamun / kannel.conf
Created October 29, 2021 08:05 — forked from srugano/kannel.conf
Example of Kannel configurations to be used with a Huawei modem.
# CONFIGURATION FOR USING SMS KANNEL WITH RAPIDSMS
#
# For any modifications to this file, see Kannel User Guide
# If that does not help, see Kannel web page (http://www.kannel.org) and
# various online help and mailing list archives
#
# Notes on those who base their configuration on this:
# 1) check security issues! (allowed IPs, passwords and ports)
# 2) groups cannot have empty rows inside them!
# 3) read the user guide
@shamun
shamun / iptables.sh
Created July 13, 2020 12:49 — forked from esmiz/iptables.sh
iptable rules to allow outgoing DNS lookups, outgoing icmp (ping) requests, outgoing connections to configured package servers, outgoing connections to all ips on port 22, all incoming connections to port 22, 80 and 443 and everything on localhost
#!/bin/bash
IPT="/sbin/iptables"
# Server IP
SERVER_IP="$(ip addr show eth0 | grep 'inet ' | cut -f2 | awk '{ print $2}')"
# Your DNS servers you use: cat /etc/resolv.conf
DNS_SERVER="8.8.4.4 8.8.8.8"
# Allow connections to this package servers
@shamun
shamun / curl.md
Created October 23, 2019 20:19 — forked from subfuzion/curl.md
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.

@shamun
shamun / curl.md
Created October 23, 2019 20:19 — forked from subfuzion/curl.md
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.

@shamun
shamun / epson.py
Created September 13, 2017 19:31
epson.md
import twain
import sys
from PIL import Image
index = 0;
import urllib2
import os
import zipfile
import requests
scan_path = 'C:/scan/a/'
@shamun
shamun / test.js
Created September 12, 2017 12:53
test.md
/*
[Error]
Message=Unable to open TWAIN source
[Scan]
Pages=0
*/
// Basic loads
var fs = require("fs");
@shamun
shamun / fail.md
Created March 27, 2017 08:54
fail.md

Make the Software 1024x768 and screen resolution same.

Step 1:

A) Download, Install https://nwjs.io/,

B) make a file package.json with following content and put it in same directory where nw.exe is

/*
* libjingle
* Copyright 2013 Google Inc.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright notice,
@shamun
shamun / bug.ipadPro.md
Created March 11, 2017 04:10
iPad pro frozenissue

/*

  • libjingle
  • Copyright 2013 Google Inc.
  • Redistribution and use in source and binary forms, with or without
  • modification, are permitted provided that the following conditions are met:
    1. Redistributions of source code must retain the above copyright notice,
  • this list of conditions and the following disclaimer.
    
    1. Redistributions in binary form must reproduce the above copyright notice,
@shamun
shamun / git.md
Last active January 14, 2018 10:43
Details about git

Project management with git

original https://github.com/jp9000/obs-studio, now i want to fork it.

a) have master brance

here keep as it is just for pulling the latest

b) have nightly brance

here work daily