Skip to content

Instantly share code, notes, and snippets.

View alikrc's full-sized avatar

Ali alikrc

View GitHub Profile
@alikrc
alikrc / fogbugz dark theme.txt
Last active January 24, 2023 23:08
stylish extension fogbugz dark theme
.filterbar-refine-further-popup .list-choices-item{
color:inherit;
}
#mainArea a,
#mainArea input,
#mainArea td{
font-size:medium;
}
.event .body, .case .field {
font-size: medium
@alikrc
alikrc / gist:eaf1c3f6d07395d2c6ed8a1432670f4d
Created October 17, 2019 15:00
example youtube mp3 command
youtube-dl --extract-audio --audio-format mp3 URLHERE

Keybase proof

I hereby claim:

  • I am Alikrc on github.
  • I am ejder (https://keybase.io/ejder) on keybase.
  • I have a public key whose fingerprint is 0E93 E913 5257 2ABF 2B28 9620 48C8 5453 4F28 2957

To claim this, I am signing this object:

git reset head~ --soft
Undo your NOT pushed commit, keep changes
SOURCE: remote
Target: Mine
https://blogs.endjin.com/2014/06/using-git-for-net-development-part-4-resolving-merge-conflicts/
@alikrc
alikrc / resx duplicate finder
Created April 14, 2019 21:12
this snippet finds duplicate keys on resx file
var path = @"D:\XXX.resx";
var keyList = new List<string>();
var doc = new XmlDocument();
doc.Load(path);
foreach (XmlNode node in doc.DocumentElement.ChildNodes)
{
if (node.Name != "data")
{
continue;
}
@alikrc
alikrc / big file find
Created April 13, 2019 08:59
find files bigger then 1gb (1e+9 bytes) on windows 10 cmd
forfiles /S /M * /C "cmd /c if @fsize GEQ 1000000000 echo @path"
@alikrc
alikrc / maven.txt
Last active March 29, 2019 07:04
IntellJ IDEA maven debug for jenkins plugin
on terminal run this, then add a new remote config listen port 8000.
d:
cd D:\NS Projects\NCJenkinsPlugin
set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,address=8000,suspend=n
mvn hpi:run
https://wiki.jenkins.io/display/JENKINS/Plugin+tutorial#Plugintutorial-SettingupaproductiveenvironmentwithyourIDE
@alikrc
alikrc / groovy log.groovy
Last active March 13, 2019 13:34
groovy log
println "asdsa"
@alikrc
alikrc / gist:8f7aacf828f3f827d5082a823a3911bc
Created January 3, 2019 13:39 — forked from jpoehls/gist:2030795
Using CTRL+W to close tabs in Visual Studio

In Tools | Options | Keyboard...

  1. Add CTRL+W as a Global shortcut for Window.CloseDocumentWindow
  2. Remove the CTRL+W shortcut for Edit.SelectCurrentWord

The caveat to this is if you are used to using CTRL+W to select the current word. If you do, find another shortcut that works for that.