Skip to content

Instantly share code, notes, and snippets.

View neesonqk's full-sized avatar
🎯
Focusing

N.z neesonqk

🎯
Focusing
View GitHub Profile
@neesonqk
neesonqk / mac-vendor.txt
Created September 24, 2024 03:17 — forked from aallan/mac-vendor.txt
List of MAC addresses with vendors identities
000000 Officially Xerox
000001 SuperLAN-2U
000002 BBN (was internal usage only, no longer used)
000003 XEROX CORPORATION
000004 XEROX CORPORATION
000005 XEROX CORPORATION
000006 XEROX CORPORATION
000007 XEROX CORPORATION
000008 XEROX CORPORATION
000009 powerpipes?
@neesonqk
neesonqk / Server.kt
Created July 5, 2024 05:20 — forked from Silverbaq/Server.kt
A simple socket-server written in Kotlin
package dk.im2b
import java.io.OutputStream
import java.net.ServerSocket
import java.net.Socket
import java.nio.charset.Charset
import java.util.*
import kotlin.concurrent.thread
@neesonqk
neesonqk / public_enc_example.sh
Created December 4, 2023 07:12 — forked from thinkerbot/public_enc_example.sh
Public-key encryption example using OpenSSL
#!/bin/bash
#
# Public-Key Encryption and Decryption
# * http://www.openssl.org/
# * http://barelyenough.org/blog/2008/04/fun-with-public-keys/
#
# Mac OS X 10.6.4
# OpenSSL 0.9.8l 5 Nov 2009
# Generate keys
@neesonqk
neesonqk / pom.xml
Created June 21, 2020 13:29 — forked from timmolderez/pom.xml
Adding dependencies to local .jar files in pom.xml
If you'd like to use a .jar file in your project, but it's not available in any Maven repository,
you can get around this by creating your own local repository. This is done as follows:
1 - To configure the local repository, add the following section to your pom.xml (inside the <project> tag):
<repositories>
<repository>
<id>in-project</id>
<name>In Project Repo</name>
<url>file://${project.basedir}/libs</url>
@neesonqk
neesonqk / delete.bat
Created October 1, 2018 10:15 — forked from lichengwu/delete.bat
win7/win8强制删除文件夹
@echo off
set /p path=path:
set /p user=user:
rem 我们需要修改文件或目录的所有者
takeown /F %path% /R
rem 给用户授权文件夹或文件的完全控制权限
@neesonqk
neesonqk / sites-available-ghost
Created May 20, 2017 11:39 — forked from robotnealan/sites-available-ghost
DigitalOcean LetsEncrypt Nginx Config
server {
listen 80;
server_name yourdomain.com www.yourdomain.com;
location ~ ^/.well-known {
root /var/www/ghost;
}
location / {
return 301 https://$server_name$request_uri;
@neesonqk
neesonqk / CORSFilter.java
Created May 2, 2017 15:31 — forked from zeroows/CORSFilter.java
To enable CORS support in Spring MVC 4 - Access-Control-Allow-Origin
package com.elm.mb.rest.filters;
import java.io.IOException;
import javax.servlet.FilterChain;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.commons.logging.Log;
@neesonqk
neesonqk / maintenance-mode.conf
Created November 13, 2016 07:26 — forked from rictorres/maintenance-mode.conf
nginx maintenance mode
server {
listen 80;
server_name mysite.com;
root /var/www/mysite.com/;
location / {
if (-f $document_root/maintenance.html) {
return 503;
}
... # the rest of your config goes here