Skip to content

Instantly share code, notes, and snippets.

View nerzid's full-sized avatar

Eren YILDIZ nerzid

  • Umea University
  • Sweden
View GitHub Profile
python git_filter_repo.py --commit-callback "
if commit.author_name == b'full name of the previous author':
commit.author_name = b'username of the new author'
commit.author_email = b'email of the new author'
if commit.committer_name == b'full name of the previous author':
commit.committer_name = b'username of the new author'
commit.committer_email = b'email of the new author'
"
@nerzid
nerzid / will_be_redacted.txt
Created October 30, 2024 00:23
text file to use delete or redact ips, urls, and ports for git filter repo command
regex:\bhttps?://[^\s]+==>[REDACTED_URL]
regex:\b\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\b==>[REDACTED_IP]
regex:\b:\d{1,5}\b==>[REDACTED_PORT]
@nerzid
nerzid / Antonyms.md
Created March 13, 2018 06:46 — forked from maxtruxa/Antonyms.md
A list of common terms used in programming and their respective antonyms.

Antonym List

Note: The table headings (positive/negative) are not necessarily meaningful.

Positive Negative
acquire release
add remove (e.g. an item), subtract (arithmetic)
advance retreat
allocate deallocate (correct), free (common)
assemble disassemble
http://www.oreilly.com/data/free/files/2014-data-science-salary-survey.pdf
http://www.oreilly.com/data/free/files/2015-data-science-salary-survey.pdf
http://www.oreilly.com/data/free/files/Data_Analytics_in_Sports.pdf
http://www.oreilly.com/data/free/files/advancing-procurement-analytics.pdf
http://www.oreilly.com/data/free/files/ai-and-medicine.pdf
http://www.oreilly.com/data/free/files/analyzing-data-in-the-internet-of-things.pdf
http://www.oreilly.com/data/free/files/analyzing-the-analyzers.pdf
http://www.oreilly.com/data/free/files/architecting-data-lakes.pdf
http://www.oreilly.com/data/free/files/being-a-data-skeptic.pdf
http://www.oreilly.com/data/free/files/big-data-analytics-emerging-architecture.pdf

NOTE -

  • Remove -h option if you are doing operation on same machine
  • Remove -u , -p option if your database don't have username and password

Binary

Import database

mongorestore -h IP:port -d DB_Name -u user_name -p password <input db directory>

NOTE -

  • Remove -h option if you are doing operation on same machine
  • Remove -u , -p option if your database don't have username and password

Binary

Import database

mongorestore -h IP:port -d DB_Name -u user_name -p password <input db directory>
@nerzid
nerzid / turkce_isimler.sql
Created February 23, 2018 16:14 — forked from ismailbaskin/turkce_isimler.sql
Türkçe isim veritabanı
-- Turkce isimler sozlugu twitter : http://twitter.com/baskindev
CREATE TABLE `isimler` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`isimler` varchar(255) DEFAULT NULL,
`cinsiyet` varchar(255) DEFAULT NULL COMMENT 'erkek : E , kadın : K , uniseks : U',
PRIMARY KEY (`id`)
) ENGINE=InnoDB;
-- ----------------------------
@nerzid
nerzid / antlr4.bat
Created April 19, 2017 06:21
Running ANTLR4 from terminal using .bat
java -cp C:\Users\nerzid\Documents\ANTLR4\antlr-4.6-complete.jar org.antlr.v4.Tool %*
/*
* Copyright 2016 nerzid.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
/*
* Copyright 2016 nerzid.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software