This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
RUN TO_SEARCH="curl"; echo $(apt --installed list $(echo $TO_SEARCH) 2>/dev/null | grep installed | awk -F'[/| ]' '{print $1"="$3}' | tr '\n' ' ') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git clone https://key@github.com/bqcuong/repo.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# print registers | |
info registers | |
# print buffer address | |
p &buffer | |
# print memory page, 12 words (1 word = 4 bytes) from buffer address | |
x/12x &buffer | |
https://www.rapidtables.com/convert/number/hex-to-decimal.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
grep -rnw -e 'defaultThem' themes/hf/layouts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
for brname in `git branch -r | grep origin | awk '{gsub(/[^\/]+\//,"",$1); print $1}'`; do git checkout $brname;git pull; done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
task copyClasspath { | |
def runtimeClasspath = sourceSets.test.runtimeClasspath | |
inputs.files( runtimeClasspath ) | |
doLast { | |
new File(projectDir, "classpath.info").text = runtimeClasspath.join( File.pathSeparator ) | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import javafx.application.Application; | |
import javafx.beans.value.ChangeListener; | |
import javafx.beans.value.ObservableValue; | |
import javafx.fxml.FXML; | |
import javafx.fxml.FXMLLoader; | |
import javafx.scene.Scene; | |
import javafx.scene.control.ListView; | |
import javafx.scene.layout.AnchorPane; | |
import javafx.scene.web.WebView; | |
import javafx.stage.Stage; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <bits/stdc++.h> | |
using namespace std; | |
class Array { | |
private: | |
int n; | |
vector<int> data; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
task copyToLib(type: Copy) { | |
from configurations.testCompile.allArtifacts.files | |
from configurations.testCompile | |
into "$buildDir/dependency-libs" | |
} |
NewerOlder