Skip to content

Instantly share code, notes, and snippets.

View eugene0928's full-sized avatar
🎯

Eugene eugene0928

🎯
  • Fizmasoft
  • Uzbekistan
View GitHub Profile
@orzklv
orzklv / transfer.js
Created April 24, 2023 14:11
Transfer all repositories of an organization to another
const axios = require('axios');
const GITHUB_TOKEN = 'YOUR_GITHUB_TOKEN';
const SOURCE_ORG = 'SOURCE_ORG';
const TARGET_ORG = 'TARGET_ORG';
const api = axios.create({
baseURL: 'https://api.github.com',
headers: {
'Authorization': `token ${GITHUB_TOKEN}`,
'Accept': 'application/vnd.github+json',
@qoomon
qoomon / conventional-commits-cheatsheet.md
Last active July 22, 2025 09:19
Conventional Commits Cheatsheet
@faim87
faim87 / Uzbekistan_phone_codes_regex_pattern.md
Last active June 27, 2025 09:54
Uzbekistan phone codes - regex pattern.

Mobile = /^9989[012345789][0-9]{7}$/

All = /^998(9[012345789]|6[125679]|7[01234569])[0-9]{7}$/

@balupton
balupton / cors.js
Created September 11, 2012 05:21
Acheiving CORS via a Node HTTP Server
// Create our server
var server;
server = http.createServer(function(req,res){
// Set CORS headers
res.setHeader('Access-Control-Allow-Origin', '*');
res.setHeader('Access-Control-Request-Method', '*');
res.setHeader('Access-Control-Allow-Methods', 'OPTIONS, GET');
res.setHeader('Access-Control-Allow-Headers', '*');
if ( req.method === 'OPTIONS' ) {
res.writeHead(200);