Skip to content

Instantly share code, notes, and snippets.

View murano500k's full-sized avatar

Artem Radchenko murano500k

View GitHub Profile
Operator Precedence
1 :: //Scope resolution
2
a++ a-- //Suffix/postfix increment and decrement
type() //type{} Functional cast
a() //Function call
a[] //Subscript
. -> //Member access
3
++a --a// Prefix increment and decrement
geth --rpc --rpcaddr "127.0.0.1" --rpcport "8545"
ethminer -G
git clone ssh://[email protected]:29418/renesas/device/renesas/salvator/common
git checkout r-ncar
gitdir=$(git rev-parse --git-dir); scp -p -P 29418 [email protected]:hooks/commit-msg ${gitdir}/hooks/
git add [changes]
git commit -s #-s for signed by
git push gl-mirror HEAD:refs/for/r-car-7.1
#repo init
repo init -u ssh://[email protected]:29418/renesas/platform/manifest -b r-car-7.1
repo init -u ssh://[email protected]:29418/renesas/platform/manifest -b r-car-7.1.2
find /home/artem/projects/libgdx/Runner/core/src/ -type f -exec \
> sed -i 's/com\.gamestudio24\.martianrun/com.stc.runner/g' {} +
console=ttymxc1,115200 init=/init nosmp
video=mxcfb0:dev=hdmi,1280x720M@60,bpp=32 video=mxcfb1:off
fbmem=10M vmalloc=400M androidboot.console=ttymxc1 androidboot.hardware=freescale
dumpsys window displays
dumpsys display
Intent intent = new Intent(Intent.ACTION_SEND); intent.setType("text/html"); intent.putExtra(Intent.EXTRA_EMAIL, "[email protected]"); intent.putExtra(Intent.EXTRA_SUBJECT, "Subject"); intent.putExtra(Intent.EXTRA_TEXT, "I'm email body."); startActivity(Intent.createChooser(intent, "Send Email"));Jan 2, 2012
http://umeshisran4android.blogspot.com/2015/11/how-to-readparse-ussd-messages.html
read sms
Intent intent = getIntent();
Bundle bundle = intent.getBundleExtra("mySMS");
if (bundle != null) {
@murano500k
murano500k / tensorflow_help.txt
Last active April 11, 2017 10:37
Tensorflow
sudo docker images
export CONTAINER
export FILE
docker save CONTAINER > /media/artem/hddgl/tf.tar
docker cp FILE CONTAINER:/notebooks
docker run -it -v /media/artem/hddgl/tf/tf_files:/tf_files gcr.io/tensorflow/tensorflow:latest-devel
docker run -it -v $TF:/tf_files gcr.io/tensorflow/tensorflow:latest-devel
python tensorflow/examples/image_retraining/retrain.py \
--bottleneck_dir=/tf_files/bottlenecks \
@murano500k
murano500k / gerrit_repo_push.sh
Created April 3, 2017 10:11
repo push gerrit git help
git clone ssh://[email protected]:29418/renesas/device/renesas/salvator/common
git checkout r-ncar
gitdir=$(git rev-parse --git-dir); scp -p -P 29418 [email protected]:hooks/commit-msg ${gitdir}/hooks/
git add [changes]
git commit -s #-s for signed by
git push gl-mirror HEAD:refs/for/r-car-7.1
public class ExampleUnitTest {
@Test
public void testSelenium() throws IOException {
Element body = Jsoup.connect("http://172.22.89.65/litecart/admin").get().body();
driver.get("http://localhost/litecart/admin/login.php");
driver.findElement(By.name("username")).sendKeys("admin");
driver.findElement(By.name("password")).sendKeys("admin");
for(Element e : driver.findElements(By.className("li"))){
for(Element child : e.findElements(By.className("li"))){
@murano500k
murano500k / BackpressureMode.java
Last active March 29, 2017 09:58
RxAndroid_samples
{
BackpressureMode.NONE,
BackpressureMode.ERROR,
BackpressureMode.BUFFER,
BackpressureMode.DROP,
BackpressureMode.LATEST
}