Skip to content

Instantly share code, notes, and snippets.

View AkashMartin1's full-sized avatar
💻

Akash Martin AkashMartin1

💻
  • Freelancer
  • INDIA
  • 21:53 (UTC +05:30)
View GitHub Profile
@AkashMartin1
AkashMartin1 / gist:6870840
Created October 7, 2013 16:30
Error while running bundle command ! Gem::RemoteFetcher::FetchError: too many connection resets (http://production.cf.rubygems.org/gems/rake-10.1.0.gem)
Gem::RemoteFetcher::FetchError: too many connection resets (http://production.cf.rubygems.org/gems/rake-10.1.0.gem)
An error occurred while installing rake (10.1.0), and Bundler cannot continue.
Make sure that `gem install rake -v '10.1.0'` succeeds before bundling.
@AkashMartin1
AkashMartin1 / gist:20ab002e7f5785ae778e
Created August 17, 2014 03:30
Gmail API Send message : ArgumentError: no method name given
@email = @google_api_client.execute(
api_method: @gmail.users.messages.send,
parameters: {
userId: 'me',
message: {
raw: {
payload: {
body: { date: 'aGVsbG8=' },
headers: [{ name: 'to',
value: 'akash@gmail.com'},
@AkashMartin1
AkashMartin1 / gist:034878956fde42191dbf
Last active March 3, 2021 15:35
Wifi stops working after some time on ubuntu 14.10 and ubuntu 14.04 (RTL8723BE PCIe Wireless Network Adapter)
problem fixed with this solution.
git clone https://github.com/rtlwifi-linux/rtlwifi_new.git
cd rtlwifi_new
make
sudo make install
@google_api_client = Google::APIClient.new(
application_name: 'Example',
application_version: '1.0.0Alpha'
)
@google_api_client.authorization.access_token = user.google_token
@gmail = @google_api_client.discovered_api('gmail', 'v1')
@AkashMartin1
AkashMartin1 / gist:c3fd2723fd206ddf0a0e
Created August 27, 2015 17:39
Unable to find the requested Boost libraries.
Solution on Debian / Ubuntu
$ sudo apt-get install libboost-all-dev
$ reboot
its work in my case / Ubuntu 12.04
@AkashMartin1
AkashMartin1 / demo.sh
Created August 27, 2015 18:06
installing yaml-cpp on ubuntu from source
$ sudo apt-get install libboost-all-dev
$ git clone https://github.com/jbeder/yaml-cpp yaml-cpp
$ cd yaml-cpp && mkdir -p build && cd build && cmake -DBUILD_SHARED_LIBS=ON .. # last two dots are important
$ make
$ sudo make install
@AkashMartin1
AkashMartin1 / .profile
Last active August 27, 2015 19:24
error while loading shared libraries: libyaml-cpp.so.0.5: cannot open shared object file: No such file or directory
Solution:
$ LD_LIBRARY_PATH=/usr/local/lib
$ export LD_LIBRARY_PATH
or
$ vi ~/.profile
add line in last of file
['ConfiguredStatus', 'DatePreset', 'DeleteStrategy', 'EffectiveStatus', 'ExecutionOptions', 'Field', 'Objective', 'Operator', 'Status', '_MutableMapping__marker', '__abstractmethods__', '__class__', '__contains__', '__delattr__', '__delitem__', '__dict__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__getitem__', '__gt__', '__hash__', '__init__', '__iter__', '__le__', '__len__', '__lt__', '__module__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__setitem__', '__sizeof__', '__slots__', '__str__', '__subclasshook__', '__unicode__', '__weakref__', '_abc_cache', '_abc_negative_cache', '_abc_negative_cache_version', '_abc_registry', '_api', '_assign_fields_to_params', '_changes', '_clear_history', '_data', '_default_read_fields', '_field_checker', '_field_types', '_get_field_enum_info', '_include_summary', '_isCampaign', '_json', '_parent_id', '_set_data', 'add_labels', 'api_create', 'api_delete', 'api_get', 'api_update', 'assure_call', 'clear',
@AkashMartin1
AkashMartin1 / readme.md
Last active November 14, 2017 10:14 — forked from techgaun/readme.md
OpenSSH 7.4 on Ubuntu 14.04

Installing OpenSSH 7.4 on Ubuntu 14.04

sudo apt install -y build-essential libssl-dev zlib1g-dev
wget "https://fastly.cdn.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-7.4p1.tar.gz"
tar xfz openssh-7.4p1.tar.gz
cd openssh-7.4p1
./configure
make
sudo make install && sudo service ssh restart && ssh -V
@AkashMartin1
AkashMartin1 / MySql-5.6-installation guide.md
Created May 18, 2022 14:20 — forked from vinodpandey/MySql-5.6-installation guide.md
Install MySQL 5.6.xx on Ubuntu 18.04 & Ubuntu 20.04

MySQL Download URL

https://dev.mysql.com/get/Downloads/MySQL-5.6/mysql-5.6.46-linux-glibc2.12-x86_64.tar.gz

Open the terminal and follow along:

  • Uninstall any existing version of MySQL
sudo rm /var/lib/mysql/ -R