Page 7 of 30

Learning programming languages

learn programming

challenges


mentoring

Optimizations

Algorithms

Функционално програмиране

Academies

Online help

Conferences

quizes

  • https://projecteuler.net/

 

Remove the mysql root password on development

The world is going crazy. The mysql manual for 5.7.3 is not working.

Here is how to remove the password…

Continue reading

Jailbreak 9.3.3 and afterwards

imageIt is easy. You have to do it! Just save the jailbreak and the Cydia impactor so that you can do the Jailbrake in April 2017.

What I have installed again and is working was:

Name What it does? From repo
Activator Shortcuts everywhere
OpenSSH
iCleaner Pro 7.3.0 Claims it free disks space http://exile90software.com/cydia/beta
FlipControlCenter Manage shortcut icons
AppCake Download pirate games http://cydia.iphonecake.com/
AudioRecorder 2 $ call recorder http://limneos.net/repo
Alternative apps:
Call Recorder
http://hacx.org/repo/
dnscrypt-proxy  crypt your dns  http://limneos.net/repo
 albumshot Smart albums for all apps  http://limneos.net/repo
 SpringBoard  move fast through the screens  http://limneos.net/repo

Thireus Extra Recommended Tools

 http://limneos.net/repo
 IPPeek  show the IP on the clock. Use it from activator
 Aquaboard  Fencypency effects  http://limneos.net/repo
Spоtilife
alternatives:
SpotiuM
BDaySpotify 2
Unlocks some features on the spotify app http://repo.hackyouriphone.org/
GameGem
and
GamePlayer
Game cheating tool  research more here
 SystemSoundDisabler Disable all kind of anoying sounds
 LocalIAPStore iOS 9  Inapp purchases for free  Canolli
Minimal hosts blocker  Ads blocker  https://reddestdream.github.io/

No time to install

Bridge – import music to Music from http://canolli.yourepo.com/
from: https://cydia.angelxwind.net/
https://www.yourepo.com/repo/canolli/pack/bridge – tring now and want to try those also
AppSync Unified – you need this to install unsinged ipa files.

iFile – from here http://www.sinfuliphonerepo.com/
PhotosLive from http://limneos.net/repo

https://appaddict.org/ios-app/ – trying now

TERMINALS

it has nice list of shortcuts, works bad on ios 9.3.3
MobileTerminal (mine bad choice)  from Karens repo https://cydia.angelxwind.net/    which is on the same code base iOS Terminal form BigBoss

MTerminal works good –  from the BigBoss repo.

http://repo.thireus.com – install recommended ios9/ios8/ios7 hacker tools, this includes “newterm” which is updated through ios9. The hacker package installs a bunch of command line utilities like ping, nmap, get, top wget, etc as well. otherwise if you just want terminal just install newterm.

Tried but not using

vShare
killbackground8
BioProtect – protect apps with the touch ID
Cameratweak4 http://repo.hackyouriphone.org/ (the release there is not properly cracked)

Filesystem

How to clean your photos:

  1. Backup/Delete /private/var/mobile/Media/DCIM
  2. Delete /private/var/mobile/Media/PhotoData

SQLite

Emails database:  /private/var/mobile/Library/Mail/Envelope Index 
  sqlite> pragma table_info(messages);

Calendar database: /private/var/mobile/Library/Calendar/Calendar.sqlitedb
  pragma table_info(ABPerson);

Phone numbers database: /private/var/mobile/Library/AddressBook/AddressBook.sqlitedb 
  pragma table_info(event);

Call History database: /private/var/mobile/Library/CallHistory/call_history.db 
  sqlite> pragma table_info(call);

SMS database: /private/var/mobile/Library/SMS/sms.db
  sqlite> pragma table_info(message);

More on this on limneos blog

plutil from Erica Utillities – is used to modify the .plist files

Links

https://twitter.com/limneos – the author of audiorecord2

http://dantheman827.github.io/ios-app-signer/

http://iphone.mob.org/ nice source of game downloads

Pirate Sources

http://quanganh9x.info/quanganh9x.php

Latest iphones jailbrake

https://github.com/axi0mX/ipwndfu

https://github.com/LukeZGD/Legacy-iOS-Kit

case vs if

I notice that a lot of people are writing tons of ifs instead of use the case operator.

The case operator is much more readable. It can do more work than the ifs. And it should be faster by definition. Unfortunately in ruby it is faster only in > 2.x

With case you compare objects and match multiple values.

Continue reading

Good readings for today

https://github.com/karldray/quantum




Valid docker container/image names

Valid container names are: [a-zA-Z0-9][a-zA-Z0-9_.-]
as pointed here

And probably the valid container names are

hostnameComponentRegexp = match(`(?:[a-z0-9]|[a-z0-9][a-z0-9-]*[a-z0-9])`)

as pointed
here

Ansible multistage vault file

in ‘staging’ file

---
vault_file: 'vault_staging'

in ‘production’ file

---
vault_file: 'vault_production'

in the tasks

- include_vars: "group_vars/{{ vault_file }}"

Building docker image with host network aka –net=host

There is no option to provide the net as param while building the docker images.
So the container doesn’t have internet from inside.
and is common to get this kind of errors

Running in NNNNNNNNN
Err http://http.debian.net wheezy Release.gpg
  Could not resolve 'http.debian.net'

One (stupid) solution is to put in the Docker file

RUN echo "nameserver 8.8.8.8" > /etc/resolv.conf; cat /etc/resolv.conf

Another is to help Docker with the networking.

Here is a solution is pointed here

# Forward chain between docker0 and eth0
iptables -A FORWARD -i docker0 -o eth0 -j ACCEPT
iptables -A FORWARD -i eth0 -o docker0 -j ACCEPT
# IPv6 chain if needed
ip6tables -A FORWARD -i docker0 -o eth0 -j ACCEPT
ip6tables -A FORWARD -i eth0 -o docker0 -j ACCEPT

And also to configure docker to use a dns server as pointed here

Docker official doc gives instruments to Configure a DNS server for use by Docker

Open the /etc/default/docker file for editing.

$ sudo nano /etc/default/docker

Add a setting for Docker.

DOCKER_OPTS="--dns 8.8.8.8"

Replace 8.8.8.8 with a local DNS server such as 192.168.1.1. You can also specify multiple DNS servers. Separated them with spaces, for example:

–dns 8.8.8.8 –dns 192.168.1.1

Warning: If you’re doing this on a laptop which connects to various networks, make sure to choose a public DNS server.

ps: nm-tool can be used to check local host DNS server

Save and close the file.

Restart the Docker daemon.

$ sudo restart docker

How to ban lol (League of Legends)

If you want your kid to play outside instead in League of Legends this might help you.

You need to find the ip addresses associated with lol. This is done by visiting this url

Then you need to ban all UDP traffic here is how I have done this with iptables.

I understand that there should be much more simpler way.

if true ; then
/sbin/iptables -A INPUT  -p udp  -s 8.23.24.0/23 -j DROP
/sbin/iptables -A INPUT  -p udp  -s 104.160.128.0/19 -j DROP
/sbin/iptables -A INPUT  -p udp  -s 64.124.200.200/29 -j DROP
/sbin/iptables -A INPUT  -p udp  -s 192.207.0.0/24 -j DROP
/sbin/iptables -A INPUT  -p udp  -s 162.249.72.0/21 -j DROP
/sbin/iptables -A INPUT  -p udp  -s 192.64.168.0/21 -j DROP

/sbin/iptables -A OUTPUT  -p udp  -d 8.23.24.0/23 -j DROP
/sbin/iptables -A OUTPUT  -p udp  -d 104.160.128.0/19 -j DROP
/sbin/iptables -A OUTPUT  -p udp  -d 64.124.200.200/29 -j DROP
/sbin/iptables -A OUTPUT  -p udp  -d 192.207.0.0/24 -j DROP
/sbin/iptables -A OUTPUT  -p udp  -d 162.249.72.0/21 -j DROP
/sbin/iptables -A OUTPUT  -p udp  -d 192.64.168.0/21 -j DROP

/sbin/iptables -A FORWARD  -p udp  -s 8.23.24.0/23 -j DROP
/sbin/iptables -A FORWARD  -p udp  -s 104.160.128.0/19 -j DROP
/sbin/iptables -A FORWARD  -p udp  -s 64.124.200.200/29 -j DROP
/sbin/iptables -A FORWARD  -p udp  -s 192.207.0.0/24 -j DROP
/sbin/iptables -A FORWARD  -p udp  -s 162.249.72.0/21 -j DROP
/sbin/iptables -A FORWARD  -p udp  -s 192.64.168.0/21 -j DROP

/sbin/iptables -A FORWARD  -p udp  -d 8.23.24.0/23 -j DROP
/sbin/iptables -A FORWARD  -p udp  -d 104.160.128.0/19 -j DROP
/sbin/iptables -A FORWARD  -p udp  -d 64.124.200.200/29 -j DROP
/sbin/iptables -A FORWARD  -p udp  -d 192.207.0.0/24 -j DROP
/sbin/iptables -A FORWARD  -p udp  -d 162.249.72.0/21 -j DROP
/sbin/iptables -A FORWARD  -p udp  -d 192.64.168.0/21 -j DROP
fi

here is how I block the website of the “great” game.

/sbin/iptables -A INPUT -d 95.172.69.0/24 -j DROP
/sbin/iptables -A INPUT -d 74.201.71.0/24 -j DROP
/sbin/iptables -A INPUT -d 66.151.54.0/24 -j DROP

Create virtual machines from the command line

install the first one with

virt-install --connect qemu:///system --name=lserver1 --os-type=linux --vcpus=3 --memory=746  --disk size=30,sparse=true,cache=unsafe,format=qcow2,bus=virtio,path=/home/guda/images/lserver1.qcow2 --virt-type=qemu --graphics spice --cdrom=/home/guda/Downloads/ubuntu-15.10-server-amd64.iso --os-variant=ubuntuutopic --network=default,model=virtio  --boot cdrom,hd,network,menu=on

Then clone them

  virt-clone --original lserver1 -n lserver3 -f /home/guda/images/lserver3.qcow2 --connect=qemu:///system

Notes:
check some values for the params for virt-install

  • virt-type: virsh capabilities
  • virt-install –os-variant list
  • download image: http://ubuntu.osuosl.org/releases/15.10/ubuntu-15.10-server-i386.iso

If you don’t want to answer questions during the install here is more reading

Preseed

  • https://gist.github.com/smoser/1057704
  • http://blog.dustinkirkland.com/2011/03/ubuntu-server-quick-install-no.html
  • https://help.ubuntu.com/lts/installation-guide/i386/ch04s06.html

Docker stuff

  • https://github.com/dave-tucker/docker-network-demos/blob/master/multihost-local.sh
  • https://docs.docker.com/machine/

© 2024 Gudasoft

Theme by Anders NorénUp ↑